0Pricing
Excel Formulas Academy · Lesson

Finding Empty Cells With COUNTBLANK

Measure how many cells in a range are blank.

Finding Empty Cells With COUNTBLANK is a free Excel Formulas Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Counting the Gaps

Sometimes the useful question isn't "how many cells are filled?" but "how many are empty?"

Maybe you want to know how many survey questions were skipped, or how many days have no sales logged yet.

The COUNTBLANK function answers this directly: it counts the empty cells in a range. Let's see how it works.

Meet the COUNTBLANK Function

COUNTBLANK returns the number of empty cells in a single range.

Its shape is:

  • =COUNTBLANK(range)

Unlike COUNT and COUNTA, COUNTBLANK takes just one range. It looks inside that range and tallies the cells with nothing in them.

=COUNTBLANK(A1:A10)

A Worked Example

Suppose A1:A5 holds 120, (blank), 200, (blank), 80.

The formula =COUNTBLANK(A1:A5) returns 2, because two cells are empty.

Notice the pattern: COUNT here returns 3 (the numbers) and COUNTBLANK returns 2 (the gaps). Together they add up to the 5 cells in the range.

=COUNTBLANK(A1:A5)

Empty Strings Count as Blank

Here's an important contrast with COUNTA. A cell holding an empty text string, like the output of =IF(B1>0, B1, ""), looks empty.

COUNTA treats that cell as filled. But COUNTBLANK treats it as blank and counts it.

So COUNTBLANK matches what your eyes see: if the cell appears empty, it's counted.

=COUNTBLANK(A1:A10)

Spaces Are Not Blank

Be careful with cells that contain just a space typed by hand. A space is a real character, so the cell is not empty.

COUNTBLANK will not count a cell holding a space, even though it looks empty.

If your blank count seems too low, hidden spaces may be the culprit. Cleaning them with TRIM can help, which you'll see in a later course.

=COUNTBLANK(A1:A10)

A Practical Scenario

You sent a survey, and column C holds answers to one question, from C2 to C101 (100 respondents).

To find how many people skipped that question, use:

  • =COUNTBLANK(C2:C101)

The result is your count of missing answers, an instant measure of how complete your data is.

=COUNTBLANK(C2:C101)

Pairing With COUNTA

COUNTBLANK and COUNTA make a great team. One counts the gaps, the other counts the filled cells.

For a survey range C2:C101, you can describe completeness with two formulas:

  • =COUNTA(C2:C101) for answered.
  • =COUNTBLANK(C2:C101) for skipped.

Together they always add up to the total number of cells in the range.

=COUNTA(C2:C101)

Calculating a Completion Rate

You can turn blank counts into a percentage. To show what fraction of a range is filled in, subtract the blanks from the total and divide.

For C2:C101 (100 cells):

  • =(100 - COUNTBLANK(C2:C101)) / 100

Format the result as a percentage and you have a live completion rate that updates as answers come in.

=(100 - COUNTBLANK(C2:C101)) / 100

One Range Only

Remember the key limitation: COUNTBLANK accepts a single range, not a list of ranges.

Writing =COUNTBLANK(A1:A10, C1:C10) will not work the way COUNT or COUNTA would.

If you need blanks across two separate areas, run COUNTBLANK on each and add the results together: =COUNTBLANK(A1:A10) + COUNTBLANK(C1:C10).

=COUNTBLANK(A1:A10) + COUNTBLANK(C1:C10)

Works in Excel and Sheets

COUNTBLANK works the same in both Microsoft Excel and Google Sheets. The same formula gives the same answer in either tool.

So whether you're tracking missing survey answers in Excel or in Sheets, =COUNTBLANK(range) reliably tells you how many cells are still empty.

=COUNTBLANK(C2:C101)

Blanks in a Whole Table

COUNTBLANK can scan a rectangular block, not just a single column. This is handy for spotting missing data across a whole table at once.

For a data table in A2:E50, the formula =COUNTBLANK(A2:E50) counts every empty cell in those five columns and many rows combined.

A high number is a quick warning that your table has gaps worth filling before you analyze it.

=COUNTBLANK(A2:E50)

Quick Check

Test your understanding of COUNTBLANK.

Recap: Counting Blanks

You now know how to measure the empty cells in your data. Key points:

  • =COUNTBLANK(range) counts the empty cells in one range.
  • It treats empty strings ("") from formulas as blank.
  • A cell with a space is not blank, so it isn't counted.
  • It takes a single range; add separate calls for multiple areas.
  • Pair it with COUNTA to track data completeness or completion rates.

Next, we'll find the biggest and smallest values with MAX and MIN.

=COUNTBLANK(C2:C101)

Frequently asked questions

Is the “Finding Empty Cells With COUNTBLANK” lesson free?

Yes — the full text of “Finding Empty Cells With COUNTBLANK” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.

What will I learn in “Finding Empty Cells With COUNTBLANK”?

Measure how many cells in a range are blank. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Excel Formulas Academy?

No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Finding Empty Cells With COUNTBLANK” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Excel Formulas Academy lesson?

Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Counting Numbers With COUNT
  2. Counting Anything With COUNTA
  3. Finding Empty Cells With COUNTBLANK
  4. Spotting MAX and MIN Values
← Back to Excel Formulas Academy