Select the range, then go to Home → Conditional Formatting → New Rule → Format only cells that contain, set the first box to Blanks, click Format, choose a fill and click OK.
For more control, use a formula rule instead. With the top-left cell of your selection active, go to New Rule → Use a formula to determine which cells to format and enter =ISBLANK(A1) to catch only truly empty cells.
To treat cells holding only spaces as blank too, use =LEN(TRIM(A1))=0. This catches one, two or more spaces, whereas =OR(A1="",A1=" ") matches only a single space.
Reference the active cell exactly: if your range starts at B2, the formula must read B2, not A1. Excel adjusts it across the rest of the range for you.
Watch for formulas that return "": =A1="" treats those as blank but ISBLANK does not. Use ISBLANK when you mean genuinely empty cells, and copy formulas with straight quotes, not the curly quotes shown on this page.
In Excel, you can use conditional formatting to highlight blank cells with a cell color or a different font color. In this tutorial, you will learn to do it with two different methods.
For example, below are a few dates; some of the cells are blank between dates, and you need to highlight blank cells.
Steps to Use Blank Cell Option in Conditional Formatting
- First, select the range where you have data.

- Afterward, go to the Home Tab > Conditional Formatting > Highlight Cells Rules > More Rules.

- In the New Formatting Rule dialog box, select “Blanks” from the “Format only cells with” drop-down.

- Next, click the “Format…” button and specify the format you want to apply to the blank cells.

- In the end, click OK to apply.
Once you click OK, all the blank cells will be highlighted with the specified color.

There are a few ways to highlight blank cells, but this conditional formatting option works better. Let me show you an example to explain why I’m saying this.

In the above example, the selected cell has a few spaces, but conditional formatting still considers it blank. That’s because the Blanks option checks the cell with TRIM, so a cell with only spaces (or a formula that returns “”) counts as blank too.
Using a Custom Formula in the Conditional Formatting for Blank Cells
- Select the range (starting from cell A1 for the formula below), and go to the Home Tab > Conditional Formatting > New Rule to use a custom formula.

- In the New Formatting Rule dialog box, click on “Use a formula to determine which cells to format” and enter the formula =OR(A1=””,A1=” “).

- Now click on the “Format…” button and specify the format to apply to the blank cells.

- And then click OK to apply.
And once you click OK, you get all the cells highlighted.

The formula we used tests two conditions: the first is whether a cell is blank, and the second is whether the cell has a single space.
But I’d suggest you use the first method.
The reason is that this formula only catches a cell with exactly one space. A cell with two or more spaces doesn’t match A1=” “, so it isn’t highlighted. If you want to use a formula, use this one instead, which treats empty cells, any number of spaces, and formulas that return “” as blank:
=LEN(TRIM(A1))=0
Highlight the Entire Row with a Blank Cell
To highlight the whole row when a cell in a specific column is blank, select the full data range (for example, A2:D20) and use this formula in the rule. The $ before C locks the column, so every cell in the row checks column C:
=LEN(TRIM($C2))=0
And to highlight a row when any of its cells is empty, use COUNTBLANK. Note that COUNTBLANK counts formulas that return “” but not cells with spaces:
=COUNTBLANK($A2:$D2)>0
Highlight Cells That Are Not Blank
For the opposite, follow the same steps as the first method and select “No Blanks” in the “Format only cells with” drop-down. Or use this formula in a custom rule:
=LEN(TRIM(A1))>0
Frequently Asked Questions
Why is a blank-looking cell not highlighted?
If you use a formula like A1=””, a cell with spaces or other invisible characters isn’t blank for the formula. Use the Blanks option or =LEN(TRIM(A1))=0. A cell with a non-breaking space (CHAR(160)) from web data still won’t match; clean it with SUBSTITUTE first.
How do I remove the blank cell highlighting?
Select the range and go to Home ➜ Conditional Formatting ➜ Clear Rules ➜ Clear Rules from Selected Cells. Or use Manage Rules to delete only that rule.
Can I fill the blank cells instead of highlighting them?
Yes. Select the range, press F5 ➜ Special ➜ Blanks to select only the empty cells, type the value, and press Ctrl + Enter to fill them all at once.
Written by
Puneet Gogia
Microsoft MVP — Excel · Founder, Excel Champs
Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.