Use conditional formatting when you want Excel to make important values easier to spot without changing the values themselves. Start with a clear question—such as which invoices are overdue or which amounts exceed a target—then choose the simplest rule that answers it.
1. Select the cells to format
Select only the data range the rule should affect. If the table will grow, consider using an Excel Table or verify the rule's Applies to range when adding rows.
2. Choose the rule type
Open Home > Conditional Formatting. For common cases, choose Highlight Cells Rules, Top/Bottom Rules, Data Bars, Color Scales or Icon Sets. Use a numeric threshold for a clear pass/fail condition and a color scale when you want to show relative values.
3. Apply common examples
Highlight duplicates
Select the ID or code column, then choose Highlight Cells Rules > Duplicate Values. Review the records before deleting anything; a repeated customer or product can be legitimate in a transaction list.
Highlight values above a target
Choose the Greater Than rule and enter a threshold based on the real requirement. Test a value below, exactly at and above the threshold to confirm the intended comparison.
Highlight overdue dates
For a date range starting at A2, a formula rule can use =AND(A2<TODAY(),A2<>""). The blank check prevents empty cells from being flagged as overdue.
Highlight a full row based on status
If status is in column C and the first data row is row 2, select the whole data range and use =$C2="Blocked". Lock the status column but let the row number adjust as the rule is applied.
4. Check the range and references
Formula-based rules are evaluated relative to the top-left cell of the selected range. If the rule highlights the wrong rows, open Conditional Formatting > Manage Rules, check the formula and inspect the Applies to range. A correct formula applied to the wrong range can still produce incorrect-looking results.
5. Review rule order and visual clarity
More than one rule may apply to a cell. Review the order in Manage Rules and avoid competing formats that obscure the meaning. Use a small, consistent set of colors and add a legend if readers may not know what each color means.
6. Test the workbook as people will use it
Check blanks, errors and boundary values. Sort and filter the data, add a row, and refresh a PivotTable if applicable. Confirm that the rule still covers the intended records. Highlighting should guide a review; it does not prove the data is accurate.
When to use another method
Conditional formatting is for visual attention, not for reconciling datasets or transforming data. If you need to match records across sheets, calculate differences or repeat a cleanup process, use formulas or Power Query as appropriate. For detailed rule patterns and troubleshooting, see How to Use Conditional Formatting in Excel: Practical Rules.
Quick checklist
- Define the condition before choosing the rule.
- Select the correct range.
- Test one record that should match and one that should not.
- Check blank cells, boundary values and formula references.
- Keep the formatting restrained and meaningful.