Looking for more? Try chatting with the Exceljet Chatbot.
Although Excel ships with many conditional formatting "presets", these are limited. A more powerful way to apply conditional formatting is with formulas, because formulas allow you to apply rules that use more sophisticated logic. This article shows 10 examples, including how to highlight rows,...Read more
Excel contains many built-in "presets" for highlighting values with conditional formatting, including a preset to highlight cells greater than a specific value. However, by using your own formula, you have more flexibility and control.
In this example, a conditional formatting...Read more
In this example, we want to apply three different colors, depending on how much the original date varies from the current date:
When conditional formatting is applied with a formula, the formula is evaluated relative to the active cell in the selection at the time the rule is created. In this case, the active cell when the rule is created is assumed to be cell E5, with the range E5:E14 selected.
As the formula is...Read more
In this example, a conditional formatting rule highlights cells in the range D5:D14 when the value is greater than corresponding values in C5:C14. The formula used to create the rule is:
=$D5>$C5
The rule is applied to the entire range D5:...Read more
This formula uses 4 named ranges, defined as follows:
width=K6
height=K7
widths=B6:B11
heights=C5:H5
Conditional formatting is evaluated relative to every cell it is applied to, starting with the active cell in the selection, which is cell...Read more
Conditional formatting rules are evaluated in order.
If you've ever tried to apply conditional formatting with a formula, you know the hardest part is making sure the formula actually works. Here's an easy way to test the formula, before you use it in a rule.Read more
Consider for a moment how overlapping dates work. For a project to overlap the dates of other projects, two conditions must be true:
In this example, the goal is to calculate a workday n days in the future while excluding weekends and optionally holidays. For convenience, start (B5), days (B8), and holidays (B11:B13) are named ranges. The dates in columns...Read more
To apply conditional formatting to a pivot table, create a new conditional formatting rule and pay particular attention to the "apply rule to" settings as described below. In the example shown, there are two rules applied. The green shows the top 5 values using a rule like this:
...Read more