Most Excel files fail quietly. Nobody notices the invoice that went past due three weeks ago, or the stock row that hit zero, until someone asks about it in a meeting. Conditional formatting is the cheapest fix available: the sheet starts telling you what is wrong instead of waiting for you to go looking.

The catch is that most people stop at the built-in presets — highlight greater than, highlight top 10% — and presets do not know your business rules. Formulas do.

Here are the rules I keep in almost every operational sheet, written as formulas you can paste into Home > Conditional Formatting > New Rule > Use a formula.

The setup that makes all of this work

Pick the range once, select the whole data body (not the header), and write every formula against the top-left cell of that range. Excel shifts it down the range automatically. If your range is A2:F500 and your formula starts =, the formula must be written for row 2.

That single convention is the difference between conditional formatting that works and conditional formatting that highlights random things.

Rule 1 — the row is overdue

=AND($E2<>"", $E2<TODAY()) 

$E2 is the due date column. Locked to column E, free to move down rows.

The $E2<>"" guard matters. Without it, every blank cell in the column evaluates as 0, 0 is less than today, and your entire empty bottom half lights up red. This is the number one reason people give up on conditional formatting.

Add a second rule for the warning window:

=AND($E2<>"", $E2>=TODAY(), $E2-TODAY()<=3) 

Now the sheet shows amber three days out and red once it is late. No formulas in the data, no extra columns, no manual checking.

Rule 2 — the whole row, not just one cell

Highlighting a single date cell is easy to miss when you are scanning 400 rows. Highlight the whole row by applying the rule to A2:F500 with the same $E2 reference. The $ in front of E is what makes the whole row respond to one column's value.

Rule 3 — duplicates, but only where they matter

=AND($B2<>"", COUNTIF($B$2:$B$500, $B2) > 1) 

Applied to the whole row, this colours every row whose key repeats. It is a much better tool than Remove Duplicates when you are not sure the duplicates are actually wrong — you see them in context instead of deleting them blind.

If you only want to flag the second and later occurrences:

=AND($B2<>"", COUNTIF($B$2:$B2, $B2) > 1) 

Note the mixed reference: $B$2:$B2 grows as the rule moves down. Row 2 is compared against one cell, row 500 against the whole column above it.

Rule 4 — blank cells in a required column

=AND($C2="", $A2<>"") 

$A2<>"" means "only complain about blanks in rows that actually have data". Without it, the formatting paints a stripe down the bottom of the sheet forever, which looks broken rather than useful.

Rule 5 — a status column driving the colour

=$D2="Blocked" 

Text rules are the easiest win in a shared sheet. Colour-code Open, Blocked, Done with three rules and the status column becomes readable at a glance from across the room.

Keep the colours limited. Green / amber / red for state, grey for inactive, nothing else. A sheet with eight colours has no hierarchy left to communicate.

What not to do

Do not use conditional formatting for arithmetic. If you need a value, put it in a cell. Formatting changes appearance, not data — people export the sheet, lose the colours, and lose the meaning with them.

Do not chain five rules on the same range without checking order. Rules evaluate top to bottom, and Stop If True decides whether later rules run. When two rules fight, the one higher in the list wins.

Do not copy the formatted sheet and expect the rules to travel sanely. Copy-paste across workbooks duplicates rules with their original references, which may point at the wrong columns in the new file. Rebuild them.

A worked example

A vendor payment tracker: A vendor, B invoice no, C amount, D status, E due date.

Rule Applies to Formula Format
Overdue A2:E500 =AND($E2<>"", $E2<TODAY(), $D2<>"Paid") light red fill, dark red text
Due soon A2:E500 =AND($E2<>"", $E2>=TODAY(), $E2-TODAY()<=3, $D2<>"Paid") amber fill
Duplicate invoice A2:E500 =AND($B2<>"", COUNTIF($B$2:$B$500,$B2)>1) bold, purple text
Missing amount A2:E500 =AND($C2="", $A2<>"") yellow fill

Four rules, one range, no helper columns. Open the file and the problems are already visible.

The habit

Set these rules once per template, not once per export. Then every new file inherits the monitoring for free. The point is not the formatting — it is that the sheet stops depending on someone remembering to check it.