To spot incomplete records at a glance — any row missing a value — use a conditional-formatting rule with COUNTBLANK. The whole row lights up the moment a cell in it is empty.
How it works
Rows with any empty cell are flagged. The helper column shows the rule’s TRUE/FALSE.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Phone | Gap? | |
| 2 | Ana | a@x.com | 555-1000 | FALSE |
| 3 | Ben | 555-1001 | TRUE | |
| 4 | Cy | c@x.com | TRUE |
The formula
The rule (applied to A2:C4, the data area):
How it works
The mixed reference is what shades the whole row:
COUNTBLANK($A2:$D2)counts the empty cells in the current row. The columns are locked ($A,$D); the row is relative (2) so it moves down per row.- If that count is greater than 0, at least one field is missing.
- The rule is TRUE for the whole row, so every cell in an incomplete row is shaded — an instant “needs attention” flag.
- Apply it to the full data range so the shading spans all columns.
Flag only specific required fields: swap COUNTBLANK’s range for just the must-have columns, e.g. =COUNTBLANK($A2:$B2)>0 to require only Name and Email.
Try it: interactive demo
Toggle which cells are filled; rows with any gap light up.
Variations
Highlight fully empty rows only
All cells blank, not just one:
Require specific fields
Only Name and Email matter:
Highlight a single empty cell
Cell-level rather than whole-row:
Pitfalls & errors
Only one cell highlights. You locked the row by mistake. For whole-row shading use column-locked, row-relative references: $A2:$D2.
Spaces aren’t blank. A cell with a stray space isn’t counted by COUNTBLANK. Clean with TRIM if “empty-looking” cells slip through.
Formulas returning "" count as blank to COUNTBLANK — usually what you want, but be aware if a column is formula-driven.
Practice workbook
Frequently asked questions
How do I highlight rows with missing data in Excel?
How do I highlight only completely empty rows?
How do I require only certain fields?
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