Category: FUNCTION | Updated: 2026-11-20

How to Use the COUNT Function in Google Sheets | Count Cells Containing Numbers

How to Use the COUNT Function

The COUNT function counts the number of cells in a specified range that contain “numeric values.”

Syntax

=COUNT(value1, [value2, ...])
  • value1: The first value, cell reference, or range in which to count numeric values (required).
  • value2, …: Additional values or cell ranges to include in the count, separated by commas (optional).

Table Example

Here is an example of counting the number of participants who have an actual numeric score recorded from the participant list below.

Row Column A (Name) Column B (Score)
1 Name Score
2 Ito 85
3 Watanabe Absent
4 Yamamoto (Blank)
5 Nakamura 92
6 Numeric Count =COUNT(B2:B5)
  • Formula: =COUNT(B2:B5)
  • Result: 2
  • Explanation: Only the 2 cells B2 (85) and B5 (92) are counted as numbers. The text "Absent" (B3) and the blank cell (B4) are not counted.

Common Errors and Notes

  • Numbers formatted as text are not counted: Numbers with their format set to “Plain text” or numbers prefixed with an apostrophe (') to force them into text are excluded from the count.
  • When you also want to count text: If you use COUNT to count cells containing text such as names or product names, the result will be 0. In that case, use the COUNTA function instead.
  • Passing numbers directly as arguments: If you pass a number directly as an argument, such as =COUNT(A2:A5, 100), that number itself is also counted as 1 item.

Frequently Asked Questions

Q. What is the difference between the COUNT and COUNTA functions?

A. The COUNT function counts only cells containing "numbers (including dates and times)", whereas the COUNTA function counts "all non-blank cells", including text and error values.

Q. Are cells containing dates counted by the COUNT function?

A. Yes, they are counted. Internally, Google Sheets stores dates and times as numeric serial values, so they are included in the COUNT function's tally.