SheetsLessons
Lesson 5 · Basics

COUNT, COUNTA & COUNTBLANK

Learn the difference between COUNT, COUNTA and COUNTBLANK in Google Sheets with hands-on practice problems.

Task 1 of 3

Some days are marked "Sick" or "PTO" instead of hours. Count how many days have actual hours logged (numbers) 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.

Three ways to count cells

FunctionCounts…
COUNTcells containing numbers only
COUNTAcells that are not empty (numbers, text, anything)
COUNTBLANKcells that are empty
=COUNT(B2:B10)
=COUNTA(B2:B11)
=COUNTBLANK(B2:B11)

The classic mix-up is using COUNT on a column of names and getting 0. Names are text, so you need COUNTA.

Want to count only cells that match a condition (like "Yes")? That's COUNTIF.