Make whole rows light up when a status, priority, or flag matches. The secret is a mixed reference — lock the column, let the row float — applied across the full table.
$ before the column ($D) but not the row means every cell in a row checks that row’s column D. Matching rows are fully shaded.
The example
Tasks where Status = “Overdue” get the whole row highlighted.
| A | B | C | |
|---|---|---|---|
| 1 | Task | Owner | Status |
| 2 | Invoice | Ann | Overdue |
| 3 | Report | Bo | On track |
| 4 | Audit | Cy | Overdue |
The formula
The rule, applied to the whole table:
How it works
Mixed references make the whole row respond to one column:
- Select the entire data range (all columns), e.g. A2:D20 — not just the status column.
- Add a formula rule:
=$D2 = "Overdue". The$Dlocks the column so every cell looks at column D; the bare2lets the row move. - Excel evaluates the rule per cell. In row 2 every cell checks
$D2; in row 3 every cell checks$D3— so the entire matching row formats together. - Choose a fill and click OK. Change a status and the whole row updates instantly.
Multiple conditions? Combine with AND/OR: =AND($D2="Overdue", $C2>1000) highlights only overdue rows above $1,000. Point the comparison at a dropdown cell (=$D2=$F$1) to make the highlight interactive.
Try it: interactive demo
Pick the status to highlight.
Variations
Two conditions (AND)
Overdue AND high value:
Match a dropdown
Interactive highlight from F1:
Blank-row check
Shade rows missing an owner:
Pitfalls & errors
Mixed reference is everything. Use $D2 — column locked, row free. D2 (relative) shifts per column; $D$2 (absolute) checks only one cell for the whole table.
Select all columns first. The rule only formats cells inside the selected range. Select the full table so the whole row can light up.
Text must match exactly. Trailing spaces or different casing can stop a match — though CF text comparisons are case-insensitive, stray spaces still break them.
Practice workbook
Frequently asked questions
How do I highlight an entire row based on one cell in Excel?
Why does only one cell highlight instead of the whole row?
How do I highlight rows based on a dropdown?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class