Exceljet

Quick, clean, and to the point

Highlight blank cells

Excel formula: Highlight blank cells
Generic formula 
=ISBLANK(A1)
Summary 

To highlight cells that are blank (empty) with conditional formatting, you can use a simple formula based on the ISBLANK function. For example, if you want to highlight blank cells in the range B4:G11, just select the range and create a conditional formatting rule based on this formula:

=ISBLANK(B4)

Note: it's important that CF formulas be entered relative to the "active cell" in the selection, which is assumed to be B4 in this case.

Once you save the rule, you'll see the formatting applied to all empty cells.

Explanation 

When you use a formula to apply conditional formatting, the formula is evaluated relative to the active cell in the selection at the time the rule is created. So, in this case the formula =ISBLANK(B4) is evaluated for each cells in B4:G11. Because B4 is entered as a relative address, the address will be updated each time the formula is applied, and ISBLANK() is run on each cell in the range.

Empty vs. blank

The ISBLANK function only returns true when cell are actually empty. If a cell contains a formula that returns an empty string ("") ISBLANK won't see these cells as blank, and won't return true, so they won't be highlighted. In this way, ISBLANK would be better thought of as "ISEMPTY" (Hat tip, Mike Girvin).

If you want to highlight cells that are blank and cells that just appear blank, you can use this formula instead:

=LEN(B4)=0

The LEN formula returns the length of text as a number. A cell that contains an empty string ("") will also have a length of zero, so the formula will TRUE for both "blank" and "empty" cells.

Not blank

To conditionally format cells that are not blank, you can use a formula like this:

=NOT(ISBLANK(A1))

The NOT function reverses the logic.

Author 
Dave Bruns

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

Download 200+ Excel Shortcuts

Get over 200 Excel shortcuts for Windows and Mac in one handy PDF.