Working with Excel Conditional Formatting – API Guide
Conditional formatting in Excel enables you to highlight cells with a specific color, depending on the cell’s value.
Use conditional formatting to help you visually explore and analyze data, detect critical issues, and identify patterns and trends.
Conditional formatting makes it easy to highlight interesting cells or ranges of cells, emphasize unusual values, and visualize data by using data bars, color scales, and icon sets that correspond to specific variations in the data.
A conditional format changes the appearance of cells based on the conditions you specify. If the conditions are true, the cell range is formatted; if the conditions are false, the cell range remains unchanged. There are many built‑in conditions, and you can also create your own (including by using a formula that evaluates to TRUE or FALSE).
Summary
- Get Conditional Formattings of Worksheet
- Retrieves all conditional formatting rules applied to a worksheet.
- Get Conditional Formatting
- Returns a specific conditional formatting rule by its identifier.
- Add a Cell Area for Format Condition
- Adds a cell range that the specified conditional format will affect.
- Add a Condition for Format Condition
- Defines a new condition (e.g., value, formula) for an existing format rule.
- Add a Format Condition
- Creates a complete conditional formatting rule, including type and style.
- Clear All Condition Formattings
- Removes every conditional formatting rule from the target worksheet.
- Remove Cell Area from Conditional Formatting
- Deletes a previously defined cell area from a conditional formatting rule.
- Remove Conditional Formatting
- Deletes an entire conditional formatting rule from the worksheet.