ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Data tools
  3. How to Highlight Blank Cells in Excel

How to Highlight Blank Cells in Excel

By ExcelReady Team·Updated November 2, 2026·6 min read

The short answer

To highlight blank cells in Excel, select the range and choose Home > Conditional Formatting > New Rule > Format only cells that contain, then pick Blanks and a fill colour. For more control, use a formula rule such as =A2="" or =ISBLANK(A2). To colour whole rows with any gap, use =COUNTBLANK($A2:$D2)>0.

Key takeaways

  • The quickest way is a conditional formatting rule: Format only cells that contain > Blanks.
  • A formula rule like =A2="" also catches formulas that return an empty string; ISBLANK does not.
  • =COUNTBLANK($A2:$D2)>0 highlights every row that has at least one missing value.
  • Cells holding a space are not blank. Use =LEN(TRIM(A2))=0 to catch them too.
On this page+
  1. How to highlight blank cells with a Blanks rule
  2. How to highlight blank cells with a formula
  3. How to highlight the whole row when a cell is blank
  4. How to stop the rule colouring empty rows below your data
  5. How to select and colour blanks with Go To Special
  6. How to count blank and filled cells
  7. Why blank cells aren't highlighting
  8. Practise it

To highlight blank cells in Excel, use a conditional formatting rule that colours any empty cell in your range. It takes about a minute, and the colour disappears by itself as soon as someone fills the cell in. This guide shows the quick built-in rule, formula rules for whole rows and "fake" blanks, and a one-off method with Go To Special, using a small staff list with gaps.

Here is the sample data in A1:D7:

ABCD
1EmployeeDepartmentExtensionManager
2AishaSales2101Omar
3Ben2102Omar
4CarmenFinance
5DevSales2104Omar
6EmmaLucia
7FemiFinance2106

How to highlight blank cells with a Blanks rule#

The built-in Blanks rule needs no formula:

  1. Select the data, A2:D7. Leave out the headers.
  2. Go to Home > Conditional Formatting > New Rule.
  3. Choose Format only cells that contain.
  4. In the first box, change Cell Value to Blanks.
  5. Click Format, pick a fill colour on the Fill tab, and click OK twice.

The six empty cells turn coloured. Type a value into one of them and its colour goes away. This works the same way on Windows and Mac. Behind the scenes, Excel stores this rule as a formula that trims the cell and checks its length, so cells holding only spaces, or a formula that returns "", are highlighted too. To do the reverse, and colour cells that have something in them, choose No Blanks in step 4.

If conditional formatting is new to you, start with the beginner's guide to conditional formatting.

How to highlight blank cells with a formula#

A formula rule gives you more control. Select A2:D7, go to Home > Conditional Formatting > New Rule, choose Use a formula to determine which cells to format, and enter one of these:

FormulaHighlights
=ISBLANK(A2)Truly empty cells only
=A2=""Empty cells and formulas that return ""
=LEN(TRIM(A2))=0All of the above, plus cells holding only spaces

Write the formula for the top-left cell of the range, A2, with no $ signs. Excel adjusts it for every other cell, so B3 checks B3 and D7 checks D7.

Which one should you use? ISBLANK is TRUE only when a cell is completely empty. A cell with a formula like =IF(C2>0,C2,"") shows nothing but isn't empty, so ISBLANK ignores it, while =A2="" catches it. The IS functions guide explains ISBLANK, ISTEXT and ISNUMBER, and the IS functions lesson lets you test them on real cells.

How to highlight the whole row when a cell is blank#

To colour every row that has a gap, check the row instead of one cell. Select A2:D7 and use:

Excel formula
=COUNTBLANK($A2:$D2)>0

COUNTBLANK counts the empty cells in the row. If there's at least one, the whole row is highlighted: Ben, Carmen, Emma and Femi. The $ before A and D locks the columns, so every cell in the row looks at the same four cells. The row number has no $, so each row checks itself.

To flag rows missing one particular value, such as the manager, lock just that column:

Excel formula
=$D2=""

That colours Carmen's and Femi's rows. For more on locking columns like this, see how to write conditional formatting formulas.

How to stop the rule colouring empty rows below your data#

If you apply a blanks rule to whole columns, such as A:D, every empty row below your data turns coloured too. Either apply the rule only to the rows you use, or add a check that the row has data:

Excel formula
=AND($A2<>"",B2="")

This highlights a blank cell only when the Employee column in that row is filled in. New rows get checked as soon as you type a name. Turning the range into an Excel table (Insert > Table) also helps, because the rule grows with the table.

How to select and colour blanks with Go To Special#

For a one-off check, Go To Special selects every empty cell at once:

  1. Select A2:D7.
  2. Press F5 or Ctrl+G (on Mac, Ctrl+G also works), then click Special. You can also use Home > Find & Select > Go To Special.
  3. Choose Blanks and click OK.
  4. With the blanks selected, apply a fill colour from the Home tab.

This colour is plain formatting, not a rule. It stays even after someone fills the cell in, so use conditional formatting when the sheet is still changing. Go To Special is also the first step to fill blanks with a value or with the cell above; the guide to filling blank cells shows how.

How to count blank and filled cells#

Counting first tells you how big the problem is, and gives you a check after you clean up:

FormulaResult on the sampleMeaning
=COUNTBLANK(B2:D7)6Empty cells
=COUNTA(B2:D7)12Filled cells
=ROWS(B2:D7)*COLUMNS(B2:D7)18All cells

Blanks plus filled cells should equal all cells: 6 + 12 = 18. If they don't add up, some cells contain something you can't see. Watch out for one difference: COUNTBLANK counts formulas that return "" as blank, while COUNTA counts them as filled. The COUNTA function guide and the COUNT, COUNTA and COUNTBLANK lesson cover these functions in detail.

Why blank cells aren't highlighting#

If a cell looks empty but stays white, your rule is probably stricter than you think. ISBLANK and =A2="" rules treat some invisible content as a real value. The usual causes:

  • A space or a few spaces. Someone pressed the spacebar to "clear" the cell. Use =LEN(TRIM(A2))=0 or the built-in Blanks rule, or select the cells and press Delete to clear them properly.
  • A formula returning "". ISBLANK skips it. Use =A2="" or the Blanks rule.
  • An apostrophe. A lone ' can make a cell count as filled for ISBLANK. Clear the cell.
  • A zero hidden by formatting. A number format can hide 0, but 0 is not blank. Check the formula bar.
  • The rule's range is wrong. Open Home > Conditional Formatting > Manage Rules and check the Applies to box.

The same rule ideas work for text, too: see how to highlight cells that contain specific text.

Practise it#

Try the exercise on this page: count the gaps in the staff list with COUNTBLANK, then picture the rule that would colour them. Next, practise conditional formatting in a live spreadsheet, check what's really in a cell with ISBLANK and other IS functions, and count filled and empty cells with COUNTA and COUNTBLANK. Each lesson checks your work instantly.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Before you highlight gaps, count them. In F2, count the empty cells in B2:D7 with =COUNTBLANK(B2:D7), then press Enter.

fx
ABCDEFG
1
Employee
Department
Extension
Manager
Blank cells
2
Aisha
Sales
2101
Omar
3
Ben
2102
Omar
4
Carmen
Finance
5
Dev
Sales
2104
Omar
6
Emma
Lucia
7
Femi
Finance
2106
8
9
10

Tip: Ben is missing a department, Carmen an extension and manager, Emma a department and extension, and Femi a manager: 6 blanks.

Practise this in a lesson

LessonConditional formattingMake important numbers stand out: highlight values over a limit, duplicate IDs and the top 3, then color whole rows with a formula rule and a $ on the column.LessonIS functions and SWITCHCheck what's really in a cell with ISBLANK, ISNUMBER and ISTEXT, and turn short codes into labels with SWITCH.LessonCOUNT, COUNTA and COUNTBLANKCount numbers, filled cells and empty cells, a quick way to audit data.Function guideCOUNTAUse COUNTA to count non-empty cells in Excel. Learn how it differs from COUNT, what it secretly counts, and try a live exercise.

Frequently asked questions

How do I highlight blank cells in Excel?

+

Select the range, go to Home > Conditional Formatting > New Rule, choose Format only cells that contain, set the first box to Blanks, pick a fill colour and click OK. The colour disappears when you fill a cell in.

How do I highlight a row if a cell is blank?

+

Select the whole table, create a formula rule and use =$C2="" to check one column, or =COUNTBLANK($A2:$D2)>0 to check every column in the row. The $ before the column letters keeps each row checking its own cells.

Why is conditional formatting not highlighting blank cells?

+

If you used an ISBLANK rule, the cells probably aren't truly empty. A space, an apostrophe or a formula that returns an empty string all count as content for ISBLANK. Use =LEN(TRIM(A2))=0 or the built-in Blanks rule to treat these as blank too.

How do I select all blank cells at once?

+

Select the range, press F5 or Ctrl+G, click Special, choose Blanks and click OK. Excel selects every empty cell, and you can then fill them with a colour or a value.

How do I count blank cells in Excel?

+

Use =COUNTBLANK(A2:D20). To count filled cells instead, use =COUNTA(A2:D20). Together they should add up to the total number of cells in the range.

Sources

  • Use conditional formatting to highlight information - Microsoft Support
  • COUNTBLANK function - Microsoft Support
  • IS functions - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How to highlight blank cells with a Blanks rule
  2. How to highlight blank cells with a formula
  3. How to highlight the whole row when a cell is blank
  4. How to stop the rule colouring empty rows below your data
  5. How to select and colour blanks with Go To Special
  6. How to count blank and filled cells
  7. Why blank cells aren't highlighting
  8. Practise it

Keep reading

Data tools· 5 min read

Conditional Formatting in Excel: Highlight What Matters

Conditional formatting colors cells automatically when they meet a rule. Select the cells, go to Home > Conditional Formatting, and pick a rule such as Highlight Cells Rules > Greater Than. To color whole rows, use New Rule > Use a formula, with a $ before the column letter: =$E2>5000. Rules update whenever values change.

Data tools· 5 min read

Conditional Formatting With a Formula in Excel

To use a conditional formatting formula in Excel, select the cells, go to Home > Conditional Formatting > New Rule and choose Use a formula to determine which cells to format. Type a formula that returns TRUE or FALSE for the top-left cell, such as =$E2>5, and pick a format. Excel colours every cell where the formula is TRUE.

Logic· 6 min read

ISBLANK, ISNUMBER and ISTEXT in Excel

ISBLANK returns TRUE when a cell is completely empty, ISNUMBER returns TRUE when it holds a real number, and ISTEXT returns TRUE when it holds text. Each takes one cell, like =ISBLANK(C2). They are most useful inside IF, for example =IF(ISNUMBER(C2),"OK","Check"), to catch bad data before you calculate with it.

More on data tools

  • Highlight Cells That Contain Specific Text
  • Find and Highlight Duplicates in Excel
  • Highlight an Entire Row Based on a Cell Value
  • Highlight the Top 10 Values in Excel
  • How to Make a Histogram in Excel
  • Build an Interactive Chart in Excel With a Drop-Down
All data tools articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free