Excel function

COUNTBLANKfunction

Counts the empty cells in a range.

All versions
=COUNTBLANK(B2:D6)
A
B
C
D
1
2
3
4
5
6

Drag the corner dots to change range. "Absent" is a value, so it is not counted. Check it. Try breaking it on purpose to see the errors.

Result

2

range
B2:D6Drag the corner dots on the table

The range in which to count empty cells.

What is the COUNTBLANK function?

=COUNTBLANK(range)

COUNTBLANK counts the empty cells in a range. Use it to see how many entries are still missing.

A cell containing 0 is not empty, so it is not counted. A cell whose formula returns an empty string ("") is counted as empty.

Arguments

range
The range to count empty cells in. Only one range is allowed.

COUNTBLANK examples

  1. Example 1. Missing scores

    =COUNTBLANK(B2:D6)

    Liam's Test 3 and Olivia's Test 1 are empty, so the result is 2. "Absent" is a value, so it is not counted.

  2. Example 2. Missing Test 3 entries

    =COUNTBLANK(D2:D6)

    D2 is empty, so the result is 1.

  3. Example 3. No blanks

    =COUNTBLANK(A2:A6)

    Every name is there, so the result is 0.

Common mistakes

FAQ

Counting non-empty cells?
Use COUNTA.
Formulas returning ""?
They count as empty, which overlaps with COUNTA.
Empty cells with a condition?
Use "" as a criterion in COUNTIFS, for example =COUNTIFS(A2:A6, "Seoul", D2:D6, "").