Statistical Modern

COUNTA

Counts how many cells in a range are not empty.

Available in All versions

Syntax

COUNTA(value1, [value2])

What it returns

The count of non-empty cells.

Arguments

ArgumentRequiredDescription
value1 Yes The first item or range to count.
value2 No Additional items or ranges (up to 255).

Example

A
1City
2Paris
3
4Lyon
5Nice
Count
3

COUNTA counts every non-empty cell, numbers or text, skipping blanks (3).

=COUNTA(A2:A100)

Important to know

Counts cells of any type (text, numbers, errors) — only truly empty cells are skipped.

A formula returning "" counts as non-empty.

Related functions

Related learning