Difference between revisions of "Documentation/How Tos/Calc: COUNT function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
m |
||
Line 35: | Line 35: | ||
[[fr:Documentation/FR/Calc:Fonction_NB]] | [[fr:Documentation/FR/Calc:Fonction_NB]] | ||
[[nl:Documentation/nl/How_Tos/Calc:_functie_AANTAL]] | [[nl:Documentation/nl/How_Tos/Calc:_functie_AANTAL]] | ||
− | [[Category: Documentation/Reference/Calc]] | + | [[Category: Documentation/Reference/Calc/Statistical functions]] |
Revision as of 11:44, 17 May 2010
COUNT
Counts the numbers in the list of arguments, ignoring text entries.
Syntax:
COUNT(value1; value2; ... value30)
value1 to value30 are up to 30 values or ranges representing the values to be counted.
Example:
COUNT(2; 4; 6; "eight")
- returns 3, because 2, 4 and 6 are numbers ("eight" is text).
COUNT(B1:B3)
- where cells B1, B2, B3 contain 1.1, 2.2, and apple returns 2.
Issues:
- The draft ODFF standard requires error values to be ignored, not propagated as in Calc. See issue 51068.
- The draft ODFF standard requires that text representations of numbers are NOT counted. Calc complies for text representations of numbers in cells, in contrast to Excel. However, COUNT(4; "4") will return 2, as inline strings are converted to numbers if possible. This is described in the ODFF standard (28Dec07) in section 2.2 page 35.