Conditional Format Blank Cells: Easy Excel Guide

How-to basics · Updated November 23, 2026

Yes, you can conditionally format blank cells in Excel using the built-in Format only cells that contain rule with Blanks, or by writing a formula like =ISBLANK(A1) for more control. The quickest method: select your range, go to Home > Conditional Formatting > New Rule > Format only cells that contain, choose Blanks from the dropdown, set a format, and click OK. This highlights every empty cell in the selection, making gaps obvious at a glance.

Why Highlight Blank Cells?

Blank cells often hide problems in a spreadsheet. A missing value in a budget can silently skew totals; an empty cell in a contact list means an incomplete record. Highlighting blanks turns them into visual flags, so you can spot incomplete data, missing entries, or areas that need attention without scanning every row manually. It’s a simple way to enforce data quality—if you see a colored cell, you know something’s missing.

Method 1: Using the Built-in “Blanks” Rule (Easiest)

This is the fastest approach and works in Excel 2010 through Microsoft 365, on both Windows and Mac.

  1. Select the range you want to check (for example, B2:B20).
  2. Go to Home > Conditional Formatting > New Rule.
  3. Choose Format only cells that contain.
  4. Under “Format only cells with,” set the first dropdown to Blanks (the other two dropdowns disappear).
  5. Click Format…, pick a fill color (like light yellow) or a font color, then click OK twice.

That’s it. All blank cells in the selected range get the formatting. If you add new blank cells later, they’ll automatically be highlighted as long as they’re within the range you selected.

Method 2: Using a Formula for More Flexibility

The built-in rule is limited—it only checks if a cell is truly empty. If you need to treat cells with spaces or formulas that return empty text as “blank,” use a formula rule.

For example, to highlight cells in A2:A100 that are empty or contain only spaces, select that range, go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, and enter:

=TRIM(A2)=""

This formula works because TRIM removes extra spaces, so a cell with only spaces becomes an empty string. It also treats cells with formulas that return "" as blank, which the built-in rule won’t catch.

Another common formula uses ISBLANK:

=ISBLANK(A2)

This only highlights truly empty cells—no spaces, no formulas. Use it when you want to ignore cells that contain a formula that returns an empty string.

How to Choose the Right Method

Your choice depends on what you mean by “blank.”

  • Built-in Blanks rule: Best for quick checks on truly empty cells. Simple, no formula knowledge needed.
  • =ISBLANK(A2): Same as the built-in rule, but useful if you need to combine with other conditions (e.g., highlight blanks only in a certain column).
  • =TRIM(A2)="": Use when cells might contain spaces or formulas returning empty text. This is the most robust for real-world data.
  • =AND(A2="",B2=""): To highlight rows where multiple columns are blank, use an AND formula. For example, to flag rows where both column A and B are empty, select A2:B100 and use =AND($A2="",$B2="")—note the dollar signs to lock the column references.

Common Problems and Fixes

Here are typical issues users run into:

  • Blanks not highlighting: Check if the cells contain spaces. Use =TRIM(A2)="" instead of the built-in rule.
  • Highlighting wrong cells: Make sure your formula uses relative references correctly. For a range like A2:A100, the formula should reference the top-left cell of the selection (e.g., A2), not an absolute reference like $A$2.
  • Rule not updating when data changes: Conditional formatting recalculates automatically, but if you have manual calculation mode (Formulas > Calculation Options > Manual), press F9 to recalculate.
  • Rule applies to entire row instead of cell: If you want to highlight the whole row when a cell is blank, use a formula like =$A2="" and apply it to the entire row range (e.g., A2:Z100).

Comparing Excel and Google Sheets

Google Sheets offers a similar feature under Format > Conditional formatting. In the “Format cells if” dropdown, select Is empty. For formulas, you can use =ISBLANK(A2) or =TRIM(A2)=""—the syntax is identical. The main difference: in Excel, the built-in rule is under “Format only cells that contain,” while in Sheets it’s a simple dropdown. Also, Sheets applies rules to the entire range by default, whereas Excel requires you to specify the range.

Advanced: Highlighting Blank Cells with VBA

If you need a one-time macro to highlight blanks (for example, to process a large report), you can use a simple VBA routine. Warning: Macros cannot be undone with Ctrl+Z, so save a copy of your workbook before running.

Sub HighlightBlanks()
    Dim rng As Range
    Dim cell As Range
    
    ' Set the range you want to check (change as needed)
    Set rng = Selection
    
    ' Loop through each cell in the selection
    For Each cell In rng
        If IsEmpty(cell) Then
            ' Apply a yellow fill to blank cells
            cell.Interior.Color = RGB(255, 255, 0)
        End If
    Next cell
End Sub

This macro highlights all truly empty cells in the selected range. To run it, press Alt+F11 to open the VBA editor, insert a new module, paste the code, and press F5. Remember to save as a macro-enabled workbook (.xlsm).

Frequently Asked Questions

Why doesn’t the built-in “Blanks” rule highlight cells that look empty but contain a space?
Because a space character is not blank—it’s text. The built-in rule only checks if the cell is truly empty. Use a formula like =TRIM(A2)="" to catch spaces.

Can I highlight blank cells only in a specific column while ignoring others?
Yes. Select the column range (e.g., C2:C100) and apply the rule. If you want to highlight the entire row when column C is blank, select the whole row range and use =$C2="".

How do I remove conditional formatting from blank cells?
Select the range, go to Home > Conditional Formatting > Clear Rules > Clear Rules from Selected Cells. Or manage rules via Manage Rules and delete the specific rule.

Does conditional formatting slow down my spreadsheet?
Usually not, but if you have thousands of rules or very large ranges, it can. Keep rules limited to the actual data range, and avoid using volatile functions like NOW() in formulas.

Can I highlight blank cells based on another cell’s value?
Yes, use a formula rule. For example, to highlight blank cells in column A when column B says “Review”, select A2:A100 and use =AND(ISBLANK(A2),$B2="Review").

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.