How to use conditional formatting in Excel
Quick answer
Select the cells, open Home > Conditional Formatting, and pick a rule (Highlight Cells, Top/Bottom, Color Scales, or New Rule).
To highlight an entire row based on one cell, use a formula rule with a mixed reference like $A2="Yes". Manage rules under Manage Rules.
Applies to Excel for Microsoft 365, Excel 2016+, Mac and web.
Apply a highlight rule
Highlight values greater than a number
- Select the numeric range.
- Home > Conditional Formatting > Highlight Cells Rules > Greater Than.
- Enter the number and choose a format > OK.
Highlight duplicates
- Select the column or range.
- Highlight Cells Rules > Duplicate Values > OK.
Formula rule for whole rows
- Select the full data range starting at row 2.
- Conditional Formatting > New Rule > Use a formula to determine which cells to format.
- Enter =$C2="Overdue" (adjust column) and set a fill color > OK.
Edit or delete rules
Home > Conditional Formatting > Manage Rules. Set Show formatting rules for the sheet or selection, then Edit or Delete.
Performance tip
Limit the applies-to range to used rows on large sheets.
Frequently asked questions
Formula rule failed?
Usually a missing $ lock on the column, or the applies-to range starts on a different row than the formula assumes.
Copy formatting?
Use Format Painter, or Paste Special > Formats.
Works on Tables?
Yes - rules often auto-expand with the table.
Sources checked: Microsoft Support. Verified October 2026.