Math

How many cells are empty

Definition

Counting empty cells in a range means giving COUNTBLANK that range.

Syntax

=COUNTBLANK(range)

Arguments

Argument Meaning
range The block of cells to scan for gaps, such as B2:B5.

Worked example

An attendance list records replies in B2:B5. Two names have no reply yet.

A: Name B: Reply
Ann yes
Bo
Cal yes
Dee

Formula: =COUNTBLANK(B2:B5)

Result: 2. B3 and B5 are empty, so two cells are gaps.

Practice

Cell C2 holds 1. Cells C3:C5 are empty. In D2, write a formula that counts how many cells in C2:C5 are empty.

  1. In D2, write a COUNTBLANK formula for C2:C5.
Step 1 of 2
Formulas here use English function names, such as SUM, and a period as the decimal separator, in every language.
Loading the sheet…

Related functions

COUNTBLANK is the function that counts the empty cells in that range.

Common mistake

Scanning the name column, as in =COUNTBLANK(A2:A5): every name is filled, so the result is 0 instead of 2.

Related functions

These links are related functions.