VOOZH about

URL: https://www.syncfusion.com/document-sdk/net-excel-library/conditional-formatting

โ‡ฑ Conditional Formatting | .NET Excel Library | Syncfusion


Bold BIยฎUnlock stunning dashboards with Bold BIยฎ โ€” 35+ widgets, 150+ data sources, AI agent & more.

Try it for free!
Find anything about our product, documentation, and more.

๐Ÿ‘ Syncfusion Feedback

.NET Excel Library - Excel Conditional Formatting in C#

  • Format cells based on specific conditions.
  • Add advanced conditional formats such as color scale, data bars, and icons.
  • Use formulas and named ranges in conditional formatting.

Try C# Excel Examples in Playground app.

FREE TRIAL

No credit card required.

Explore Examples

No credit card required.

Trusted by the worldโ€™s leading companies

.NET excel library conditional formatting

Overview

The Syncfusion .NET Excel Library (XlsIO) enables users to apply formatting to cells based on specific conditions dynamically. This feature improves the readability and automation of cell styles in the worksheet.

Conditional formatting Code Example

This example code shows how to apply conditional formatting to an Excel worksheet using the Syncfusion .NET Excel Library with just a few lines of code in C#.

Key features of conditional formatting

Discover how the conditional formatting features in the Syncfusion Excel Library enhance data visualization by applying dynamic formatting rules to highlight key data based on specific conditions.

Highlight cells

Apply conditional formatting to highlight specific cells based on criteria, enhancing data visibility by drawing attention to important values. This makes it easier to identify trends or outliers in your reports.

Top/Bottom

The top/bottom conditional formatting option emphasizes the highest and lowest values within a selected range, making it useful for quickly identifying top performers or areas that need attention, thereby aiding in data analysis.

Data bars

Data bars visually represent the magnitude of values in cells by adding colored bars directly within the cells. This provides a quick, at-a-glance understanding of data distribution and comparison across your dataset.

Color scales

Color scales allow you to apply a gradient color format to cells based on their values, enabling easy comparison and analysis. This helps users visualize data trends and variations effectively.

Icon sets

Icon sets enable you to add visual indicators, such as arrows or symbols, to cells based on their values. This enhances data presentation by providing immediate context and interpretation, making reports more intuitive.

Explore Conditional Formatting References

Discover valuable resources from our blog and knowledge base to enhance your efficiency in using conditional formatting.

๐Ÿ‘ Easiest Ways to Highlight Data in Excel Using C#

Blog

Easiest Ways to Highlight Data in Excel Using C#

๐Ÿ‘ Set criteria for icon set conditional formats in Excel using XlsIO

Knowledge base

How to set criteria for icon set conditional formats in Excel using XlsIO

๐Ÿ‘ Set conditional formatting for text in C#, VB.NET

Knowledge base

Set conditional formatting for text in C#, VB.NET;

๐Ÿ‘ Set conditional formatting for numbers

Knowledge base

How to set conditional formatting for numbers

๐Ÿ‘ Set multiple-condition formatting using C#, VB.NET

Knowledge base

How to set multiple-condition formatting using C#, VB.NET

Syncfusion .NET Excel Library Resources

Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.

Frequently Asked Questions

You need to select the maximum number of rows and column values, which are 1,048,576 rows and 16,384 columns, while creating a conditional format using the Syncfusion Excel Library.

The Syncfusion Excel Library supports 5 arrows, 5 arrows gray, 5 boxes,5 quarters, 5 ratings, 4 arrows,4 arrows gray, 4 ratings, 4 red to black, 4 traffic lights, 3 arrows, 3 arrows gray, 3 flags, 3 signs, 3 stars, 3 symbols, 3 symbols 2, 3 traffic lights 1, 3 traffic lights 2, 3 triangles icon sets for creating or editing conditional formatting in Excel documents.

Yes. You can use negative data bar conditional formatting in the Syncfusion Excel Library.

You can add formulas in conditional formatting using FirstFormula and SecondFormula properties using the Syncfusion Excel Library?

The Syncfusion Excel Library supports 2-color scale and 3-color scale types in conditional formatting.

The Syncfusion Excel Library supports context, right to left, and left to right data bar conditional formatting.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusionยฎ reduces customersโ€™ development time.
Here are some of their experiences.
Love the Excel file format component
The XLSIO component makes it very easy to create a native format Excel file that customers can download, rather than having to create a CSV file or HTML table.
Syncfusion Essential Studio Review
We use Syncfusion Essential Studio for RAD purpose. It has been used for Blazor and .NET Core Razor UI implementations. It really saved time on Web UI development. Additionally PDF & EXCEL components saved time in back-end development as well.
Jaish Mathews,
Chief Applications Architect

See Real Success Stories

Developers around the world trust Syncfusionโ€™s Essential Studio to simplify complex projects and speed up delivery. With a vast library of UI controls, powerful SDKs, and reliable support, Essential Studio helps teams build enterprise-ready applications with confidence.

Read Our Customer Stories

Industry

Software development


75% Cost reduction

50% Faster development

๐Ÿ‘ Customer review

โ€œIf somebody is looking for a great tool to work with? Yes. I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.โ€

- Somnath Maji (Founder of Igniatek Consultancy)

Read Story

Industry

Utilities (oil and gas)


๐Ÿ‘ 450+ hours saved

450+ hours saved

Streamlined processes and hours of development effort saved.

๐Ÿ‘ Flexible features

Advanced, flexible features

Empowered users through robust and versatile functionality.

๐Ÿ‘ Customer review

โ€œSyncfusionโ€™s tools have taken care of many things so I can focus on developing the application, instead of developing tools for the application.โ€

- James Athyal (Software developer, McDaniel & Associates Consultants Ltd)

Read Story

Industry

Software and technology


๐Ÿ‘ Time saving

1000+ of hours saved

Accelerated development with enterprise-ready UI components.

๐Ÿ‘ File management

Efficient file management

Streamlined workflows with document libraries without building them from scratch.

๐Ÿ‘ Customer review

โ€œWe really love when the magic happens.โ€

- Irvin Dominin (BUILDER WEB Development Manager at Sistemi)

Read Story

Industry

Software and technology


๐Ÿ‘ Time saving

2 Years of delay avoided

Two years of delays prevented with proactive planning.

๐Ÿ‘ On-time delivery

On-time delivery

Projects delivered on schedule using trusted controls.

๐Ÿ‘ Customer review

โ€œWe are Syncfusion fans because of the way Syncfusion treats the support.โ€

- Dr. Howard Rybko (CEO of Synchrony Digital)

Read Story

Industry

IT services and IT consulting


๐Ÿ‘ Improved performance

Improved performance

Large datasets handled with easy customization and quick debugging.

๐Ÿ‘ Highly customizable

Highly customizable

Plug-and-play controls with quick template integration.

๐Ÿ‘ Customer review

โ€œI will surely recommend Syncfusion to others as a third-party control because I think itโ€™s very easily customizable.โ€

- Jayesh (Technical Team Lead, Capita)

Read Story

Industry

Professional services


๐Ÿ‘ Instant access

Instant access

Quick availability of features and resources.

๐Ÿ‘ Reduced dependencies

Reduced dependencies

Fewer dependencies for faster development.

๐Ÿ‘ Customer review

โ€œWe definitely wanted Syncfusion to help us with our document processing functionality, and we were happy with and satisfied with Syncfusion.โ€

- Arvind Naik (Engineering Lead, Vialto Partners)

Read Story
๏ปฟ

Rated by users across the globe

Want to create, View, and edit Excel files in C# or VB.NET?

Start a free 30-day evaluation today!
DOWNLOAD FREE TRIAL

No credit card required.

๐Ÿ‘ Mobile Free Evaluation Section

Awards

Greatnessโ€”itโ€™s one thing to say you have it, but it means more when others recognize it. Syncfusionยฎ is proud to hold the following industry awards.

๐Ÿ‘ Scroll up icon
EXPLORE OUR PRODUCTS
FREE TOOLS
RESOURCES
GET PRODUCTS
UI Kits
SUPPORT
LEARNING
WHY WE STAND OUT
COMPANY
CONTACT US

CONTACT US

  • Fax: +1 919.573.0306
  • US: +1 919.481.1974
  • UK: +44 20 7084 6215
  • Toll Free (USA):
  • 1-888-9DOTNET