COUNTBLANK Function in Excel: Count Empty Cells

COUNTBLANK Function in Excel: Count Empty Cells featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 3 min readUpdated 3 November 2026

Excel Core FunctionsLevel: Foundational β†’ IntermediateCompatibility: All Excel Versions

In this article
  1. Syntax & Parameter Breakdown
  2. Where You Will Use It
  3. Practical Worked Examples
  4. Mistakes People Make & How to Avoid Them
  5. Frequently Asked Questions
  6. Does COUNTBLANK work across multiple non-contiguous ranges?
  7. Does a cell with a space count as blank?
  8. How do you find and highlight blank cells visually?
  9. COUNTBLANK in practice
  10. Where you will use it
  11. Worked example
  12. Mistakes people make
  13. Continue learning

The COUNTBLANK function in Excel is an essential spreadsheet tool designed to Count the number of empty cells in a range, essential for identifying missing records, incomplete audit checklists, and data hygiene gaps.

Advertisement

Syntax & Parameter Breakdown

=COUNTBLANK(range)
Argument Requirement & Description
range Required. The range of cells from which you want to count blank cells.

Where You Will Use It

Used by compliance, payroll, and HR teams to flag missing PAN/Aadhaar numbers, unsubmitted timesheets, and blank survey responses.

Practical Worked Examples

Here are common real-world formula scenarios utilizing COUNTBLANK:

Formula Expected Behavior & Purpose
=COUNTBLANK(B2:B500) Counts how many rows in column B have missing employee ID numbers.
=IF(COUNTBLANK(A2:G2) > 0, "Missing Info", "Ready") Checks if any mandatory field in a 7-column form is blank.
=COUNTBLANK(C2:C100) / ROWS(C2:C100) Calculates the percentage of missing values in a data column.

Mistakes People Make & How to Avoid Them

Cells containing formula empty strings (“”) are counted as blank by COUNTBLANK, whereas cells containing spacebar characters are not.

Frequently Asked Questions

Does COUNTBLANK work across multiple non-contiguous ranges?

No, COUNTBLANK requires a single contiguous range. To count across multiple ranges, add them: =COUNTBLANK(A2:A50) + COUNTBLANK(C2:C50).

Does a cell with a space count as blank?

No, a spacebar press is a valid text character (ASCII 32), so COUNTBLANK will not count it as blank.

How do you find and highlight blank cells visually?

Select your range, press F5 (Go To) > Special > Blanks, and apply a fill color.

πŸ“š Master spreadsheet formulas with our Free Excel Course or explore related functions in the Formula Lab.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

COUNTBLANK in practice

Where you will use it

  • Find missing entries in a checklist
  • Count unanswered survey questions
  • Data-quality checks before a report

Worked example

EntryFormulaResult
120=COUNTBLANK($A$2:A2)0
Absent=COUNTBLANK($A$2:A3)0
(blank)=COUNTBLANK($A$2:A4)1
95=COUNTBLANK($A$2:A5)1

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Cells with spaces look blank but aren'tUse TRIM/clean data; COUNTBLANK doesn't count a space
Expecting zeros to count as blankZeros are values; they are not counted

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Statistics basics22 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 34 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong