FormulaCraft

COUNTBLANK

COUNTBLANK returns the number of empty cells in a range. It is the inverse of COUNTA and a quick way to flag gaps in a dataset.

Excel
=COUNTBLANK(A2:A5)
Google Sheets
=COUNTBLANK(A2:A5)

Verified example

Computed by a real spreadsheet engine on the sample data below.

Value
a
b

=COUNTBLANK(A2:A5)2

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1A2:A5 is the range to check.
  2. 2Each empty cell adds one to the count.
  3. 3Here two cells are blank, so the result is 2.

Need a version for your data?

Try: “Count how many cells in column A are empty

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: