1. Home
  2. Functions
  3. Statistical
  4. COUNT

COUNT function

Counts how many numbers are in a list or range.

Syntax

=COUNT(value1, [value2], ...)

Arguments

ArgumentRequiredDescription
value1RequiredA value, cell or range to count
value2OptionalMore values or ranges

How to use COUNT

COUNT takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =COUNT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=COUNT(1, "x", 3)Result 2
=COUNT(A1:A4)Result 2
Data in the sheet
A
15
2text
37
4TRUE

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.