SheetsLessons
Math & Counting function

COUNT function in Google Sheets

COUNT tells you how many cells contain numbers. It ignores text and blanks, which makes it useful for counting how many entries have actually been filled in with a value.

Syntax

=COUNT(value1, [value2, ...])
value1
A cell, range or value to count.
value2, ...
Optional. More ranges or values.

Practice COUNT

Task 1 of 1

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.

COUNT 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
=COUNT(C2:C7)5Scores entered (the blank is not counted).
=COUNT(A2:A7)0Names are text, so COUNT finds none.
=COUNT(A1:D7)5Only the score cells in the whole table are numbers.

Tips and common mistakes

  • To count cells containing anything at all (including text), use COUNTA.
  • To count only cells that match a condition, use COUNTIF or COUNTIFS.
  • TRUE/FALSE values in a range are not counted.

Related functions