Sub topic 1
What Conditional Formatting Does and Where to Find It
Prerequisites
You should know how to enter data, select cell ranges, write simple formulas, and apply basic fill or font formatting. Conditional formatting is automatic formatting that changes when cell values meet a condition.
For example, a sales table can highlight values above 1,000. The formatting updates when you edit, sort, or filter the data.
Select the cells first. Then choose Home > Conditional Formatting. The menu contains built-in rules and an option to create a rule from a formula. The selected cells become the rule's Applies to range.
Highlighting Cells by Value, Text, and Duplicates
Choose Highlight Cells Rules to compare values or text. Common choices include Greater Than, Less Than, Between, Equal To, Text That Contains, and Duplicate Values. Excel applies a preset format, such as a red fill, but you can choose a custom format.
| Rule | Example use |
|---|---|
| Greater Than | Find sales above 1,000 |
| Text That Contains | Find records marked “Review” |
| Duplicate Values | Find repeated invoice numbers |
For a formula-based threshold, select C2:C50, choose New Rule, select Use a formula to determine which cells to format, and enter:
=C2>1000The formula is evaluated for each cell in the selected range. Choose Format to set the appearance.
Highlighting Top and Bottom Values
Top/Bottom Rules identify relative results instead of a fixed threshold. You can highlight the top 10 items, bottom 10 items, top or bottom 10 percent, or values above or below the average. Change the default number or percentage when the preset does not match your goal.
These rules compare the values in the Applies to range. Include only comparable values, not headings or totals.
Showing Magnitude with Data Bars
Data Bars place a horizontal bar inside each cell. Longer bars represent larger values, so you can compare amounts without reading every number. Choose Home > Conditional Formatting > Data Bars, then select a gradient or solid fill.
Data bars work best for nonnegative measurements with a common unit. For mixed units or values where exact thresholds matter, use a formula or highlight rule instead.
Exercise
Which rule would you use to find repeated customer IDs in A2:A100?
Show answer
Select A2:A100, choose Highlight Cells Rules > Duplicate Values, and apply a noticeable format.