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

COUNTA function

Counts the cells and values that are not empty.

Syntax

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

Arguments

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

How to use COUNTA

COUNTA takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =COUNTA( 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.

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

Every formula, right in your browser

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