SheetsLessons
Math & Counting function

COUNTBLANK function in Google Sheets

COUNTBLANK counts the empty cells in a range. It's the quickest check for missing data, such as unanswered survey questions or unassigned tasks.

Syntax

=COUNTBLANK(range)
range
The range to check for empty cells.

Practice COUNTBLANK

Task 1 of 1

How many guests are we still waiting on? Count the empty RSVP cells in D2.

D2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

COUNTBLANK examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCD
1StudentClassScorePassed
2PriyaA92TRUE
3LeoB67FALSE
4ChloeA48FALSE
5MateoB81TRUE
6InesCFALSE
7KaiC75TRUE
Test scores (Ines missed the test)
FormulaResultWhat it shows
=COUNTBLANK(C2:C7)1One student has no score.
=COUNTBLANK(A2:D7)1Empty cells across the whole table.
=COUNTA(A2:A7) - COUNTBLANK(C2:C7)5Students who do have a score.

Tips and common mistakes

  • Cells containing an empty string "" from a formula are counted as blank.
  • COUNTBLANK takes exactly one range. To check several, add the results together.

Related functions