Excel's built-in conditional formatting rules color only the cell that meets the condition. If you want the whole row to light up when one column has a certain value (a "Delayed" status, an amount over a limit, a date that has passed), you need a formula-based rule with one carefully placed dollar sign. This guide shows the exact steps, several ready-to-use formulas, and the two mistakes that cause most "it highlights the wrong cells" problems.
A2:F11), go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, enter =$E2="Delayed", pick a fill color, and click OK. The $ locks the column so every cell in the row checks column E.Sample data
We will use a small order list. Column E holds the status, and we want every row with a "Delayed" status highlighted from column A to column F.
| Order ID | Customer | Region | Amount | Status | Ship By |
|---|---|---|---|---|---|
| SO-1001 | Brightline Co | East | 850 | Shipped | 11/20/2026 |
| SO-1002 | Harbor Foods | West | 1,420 | Delayed | 11/24/2026 |
| SO-1003 | Kestrel Labs | North | 630 | Pending | 12/8/2026 |
| SO-1004 | Maple & Pine | West | 2,100 | Shipped | 11/18/2026 |
| SO-1005 | Orbit Supply | South | 975 | Delayed | 11/27/2026 |
| SO-1006 | Quill Studio | East | 1,180 | Pending | 11/28/2026 |
| SO-1007 | Redwood Dental | West | 540 | Pending | 12/4/2026 |
| SO-1008 | Summit Gear | North | 1,650 | Shipped | 11/25/2026 |
| SO-1009 | Tidewater Inc | South | 720 | Delayed | 12/2/2026 |
| SO-1010 | Vista Print | West | 1,305 | Pending | 11/30/2026 |
The headers are in row 1, so the data runs from row 2 to row 11.
Step by step: highlight rows in Excel
- Select the full range you want colored, A2:F11. Start the selection in row 2 (the first data row), not on the header.
- Go to Home > Conditional Formatting > New Rule.
- Choose Use a formula to determine which cells to format.
- In the box, type the formula below.
- Click Format, open the Fill tab, pick a color, and click OK twice.
=$E2="Delayed"
In our sample, three rows light up: SO-1002, SO-1005 and SO-1009. A quick =COUNTIF(E2:E11,"Delayed") returns 3, which is a handy way to confirm the rule caught every match.
How it works
Excel writes the formula as if it were sitting in the top-left cell of your selection (A2), then applies it to every other cell in the range, adjusting references the same way it would when you copy a formula.
- $E (absolute column): the column never changes. Cell B2, C2, D2 and so on all look at column E.
- 2 (relative row): the row moves with each cell. Cells in row 3 check E3, cells in row 4 check E4, and so on.
So every cell in a row asks the same question, "Is this row's status Delayed?", and either the whole row turns color or none of it does. The formula only needs to return TRUE or FALSE; you do not need an IF.
More row-highlighting formulas
Every formula below assumes the rule is applied to A2:F11. The counts in parentheses are for the sample data.
Highlight rows where a number meets a threshold
=$D2>=1000
Colors every order of 1,000 or more (5 rows: SO-1002, SO-1004, SO-1006, SO-1008, SO-1010).
Two conditions with AND
=AND($C2="West",$D2>=1000)
Only West orders of 1,000 or more (3 rows: SO-1002, SO-1004, SO-1010).
Either condition with OR
=OR($E2="Delayed",$E2="Pending")
Highlights every order that has not shipped yet (7 of the 10 rows).
Overdue rows based on today's date
=AND($F2<TODAY(),$E2<>"Shipped")
Highlights orders whose ship-by date has passed and that are still not shipped. Because TODAY() changes every day, the result changes too. With December 1, 2026 as "today", this rule highlights 4 rows: SO-1002, SO-1005, SO-1006 and SO-1010.
Use a cell instead of typing the value
Put the status you want to find in a cell such as H1, then use:
=$E2=$H$1
Now you can change H1 to "Pending" or "Shipped" and the highlighting updates instantly. Lock both the row and column of H1 so every cell points to the same input.
Common mistakes
Forgetting the dollar sign before the column
With =E2="Delayed" (no $), the column shifts as Excel moves across the row: A2 checks E2, but B2 checks F2, C2 checks G2, and so on. In our sample only the cells in column A of the delayed rows would be colored, because no other column lands on the Status column.
Starting the formula on the wrong row
The row in the formula must match the first row of the selection. If you select A2:F11 but write =$E1="Delayed", each row checks the row above it. In the sample, rows 4, 7 and 11 would be highlighted instead of rows 3, 6 and 10: always one row too low.
Locking the row as well
=$E$2="Delayed" checks only cell E2 for every row, so the result is all-or-nothing for the whole range.
Extra spaces in the data
"Delayed " with a trailing space is not equal to "Delayed". If a row refuses to highlight, check the cell for stray spaces or clean the column with TRIM. The comparison itself is not case-sensitive, so "delayed" and "DELAYED" both match.
Google Sheets version
The same formulas work in Google Sheets. Select the range, go to Format > Conditional formatting, set Format cells if to Custom formula is, paste =$E2="Delayed", choose a fill color, and click Done.
FAQ
Can I apply the rule to a whole table that keeps growing?
Yes. Format the data as an Excel Table (Ctrl+T) before adding the rule, or apply the rule to a larger range such as A2:F500. Empty rows simply evaluate to FALSE and stay uncolored.
How do I edit or remove the rule later?
Go to Home > Conditional Formatting > Manage Rules. Choose This Worksheet in the drop-down to see every rule, then edit the formula, change the Applies to range, or delete the rule.
What happens if two rules match the same row?
Both rules apply, but if they set the same property (for example, both set a fill color), the rule higher in the Manage Rules list wins. Use the arrow buttons there to change the order.
Can I highlight based on text that only contains a word?
Yes. Use =ISNUMBER(SEARCH("delay",$E2)). SEARCH returns a position when the text is found and an error when it is not, and ISNUMBER turns that into TRUE or FALSE.
Summary
To highlight an entire row, select the full data range, create a formula rule, and lock the column but not the row: =$E2="Delayed". Swap in AND, OR or TODAY() for more specific rules, and make sure the formula's row matches the first row you selected. For more on combining conditions, see our Logical Functions tutorials, or browse other Formatting guides.
Comments
Post a Comment