Highlight Rows with Missing Data

Excel Formulas › Conditional Formatting

All versionsCOUNTBLANKCF rule

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.


Quick formula: select the table and add a formula rule:
=COUNTBLANK($A2:$D2) > 0
COUNTBLANK counts empty cells across the row; if it’s more than 0, the row has a gap and gets shaded.

Functions used (tap for the full reference guide):

How it works

Rows with any empty cell are flagged. The helper column shows the rule’s TRUE/FALSE.

ABCD
1NameEmailPhoneGap?
2Anaa@x.com555-1000FALSE
3Ben555-1001TRUE
4Cyc@x.comTRUE

The formula

The rule (applied to A2:C4, the data area):

=COUNTBLANK($A2:$D2) > 0 // any blank in the row → shade it

How it works

The mixed reference is what shades the whole row:

  1. 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.
  2. If that count is greater than 0, at least one field is missing.
  3. The rule is TRUE for the whole row, so every cell in an incomplete row is shaded — an instant “needs attention” flag.
  4. 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

Live demo

Toggle which cells are filled; rows with any gap light up.

Variations

Highlight fully empty rows only

All cells blank, not just one:

=COUNTA($A2:$D2) = 0

Require specific fields

Only Name and Email matter:

=COUNTBLANK($A2:$B2) > 0

Highlight a single empty cell

Cell-level rather than whole-row:

=A2=""

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

📊
Download the free Highlight Rows with Missing Data practice workbook
A contact list with a live gap-flag helper, the fully-empty and required-fields variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I highlight rows with missing data in Excel?
Select the table and add a conditional-formatting formula rule: =COUNTBLANK($A2:$D2)>0. It shades any row that has at least one empty cell. Lock the columns, keep the row relative.
How do I highlight only completely empty rows?
Use COUNTA: =COUNTA($A2:$D2)=0 is TRUE only when every cell in the row is blank.
How do I require only certain fields?
Point COUNTBLANK at just those columns, e.g. =COUNTBLANK($A2:$B2)>0 flags rows missing Name or Email but ignores other columns.

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

Related formulas: Highlight rows with a formula · Count blank cells · Check if a cell is blank

Function references: COUNTBLANK · COUNTA