Difference between revisions of "Documentation/How Tos/Calc: COUNTA function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 22: | Line 22: | ||
{{Documentation/SeeAlso| | {{Documentation/SeeAlso| | ||
− | * [[Documentation/How_Tos/Calc: COUNT function|COUNT]] | + | * [[Documentation/How_Tos/Calc: COUNT function|COUNT]] |
− | * [[Documentation/How_Tos/Calc: COUNTIF function|COUNTIF]] | + | * [[Documentation/How_Tos/Calc: COUNTIF function|COUNTIF]] |
− | * [[Documentation/How_Tos/Calc: COUNTBLANK function|COUNTBLANK]] | + | * [[Documentation/How_Tos/Calc: COUNTBLANK function|COUNTBLANK]] |
* [[Documentation/How_Tos/Calc: SUM function|SUM]] | * [[Documentation/How_Tos/Calc: SUM function|SUM]] | ||
Revision as of 13:58, 26 February 2009
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:
COUNTA(B1:B3)
- where cells B1, B2, B3 contain 1.1, =NA(), apple returns 3, because none of the cells in B1:B3 are empty.
COUNTA(2; 4; "dog")
- returns 3, because 2, 4 and "dog" are all numbers or text.
COUNTA(D1)
- where cell D1 contains ="", returns 1, because "" is a string (although of zero length).