SheetRocks
Documentation/Formulas/COUNTA

COUNTA

Returns the count of values in a list of arguments including text, logical values, error values, and empty text.

Syntax

COUNTA(value1, [value_n])

Arguments

Argument Description Required
value1 The first value or range in which to count the values. Required
value_n Additional values or ranges in which to count the number of values. Optional

Examples

Count all non-empty values

=COUNTA(A1:A4)
Result ⇒ 3
A
1 7
2 abc
3
4 100

Count values with additional arguments

=COUNTA(A1:A3, 4, 5)
Result ⇒ 5
A
1 19
2 22.24
3 true

Count text values

=COUNTA("Hello", "World")
Result ⇒ 2

Related Functions

Other Statistical functions:


← Back to Formula Reference