Documentation/How Tos/Calc: COUNTA function
From Apache OpenOffice Wiki
COUNTA
Counts the non-empty values in the list of arguments.
Syntax:
COUNTA(value1; value2; ... value30)
value1 to value30 are up to 30 values or ranges representing the values to be counted.
Example:
COUNT(B1:B3) | where cells B1, B2, B3 contain 1.1, =NA(), apple returns 3, because none of the cells in B1:B3 are empty. |
COUNT(2; 4; "six") | returns 4, because 2, 4 and "six" are all numbers or text. |
COUNT(D1) | where cell D1 contains ="", returns 1, because "" is a string (although of zero length). |
See also:
COUNT function, COUNTIF function, COUNTBLANK function, SUM function