Difference between revisions of "Documentation/How Tos/Calc: COUNT function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
(14 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE:COUNT function}} |
+ | {{Documentation/CalcFunc StatisticalTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_AVERAGEA_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_COUNTA_function | ||
+ | }}__NOTOC__ | ||
== COUNT == | == COUNT == | ||
− | Counts the numbers in the list of arguments | + | Counts the numbers in the list of arguments, ignoring text entries. |
=== Syntax: === | === Syntax: === | ||
Line 9: | Line 14: | ||
<tt>'''value1'''</tt> to <tt>'''value30'''</tt> are up to 30 values or ranges representing the values to be counted. | <tt>'''value1'''</tt> to <tt>'''value30'''</tt> are up to 30 values or ranges representing the values to be counted. | ||
− | === | + | === Examples: === |
<tt>'''COUNT(2; 4; 6; "eight")'''</tt> | <tt>'''COUNT(2; 4; 6; "eight")'''</tt> | ||
Line 17: | Line 22: | ||
: where cells <tt>'''B1'''</tt>, <tt>'''B2'''</tt>, <tt>'''B3'''</tt> contain <tt>'''1.1'''</tt>, <tt>'''2.2'''</tt>, and <tt>'''apple'''</tt> returns <tt>'''2'''</tt>. | : where cells <tt>'''B1'''</tt>, <tt>'''B2'''</tt>, <tt>'''B3'''</tt> contain <tt>'''1.1'''</tt>, <tt>'''2.2'''</tt>, and <tt>'''apple'''</tt> returns <tt>'''2'''</tt>. | ||
− | + | <tt>'''COUNT(B1:B3)'''</tt> | |
− | ''' | + | : where cells <tt>'''B1'''</tt>, <tt>'''B2'''</tt>, <tt>'''B3'''</tt> are empty, returns <tt>'''0'''</tt>. |
− | ''' | + | |
− | ''' | + | |
− | ''' | + | |
===Issues: === | ===Issues: === | ||
− | * The | + | * The ODFF standard requires that text representations of numbers are NOT counted. Calc complies to 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. |
+ | |||
+ | |||
+ | {{SeeAlso|EN| | ||
+ | * [[Documentation/How_Tos/Calc: COUNTA function|COUNTA]] | ||
+ | * [[Documentation/How_Tos/Calc: COUNTIF function|COUNTIF]] | ||
+ | * [[Documentation/How_Tos/Calc: COUNTBLANK function|COUNTBLANK]] | ||
+ | * [[Documentation/How_Tos/Calc: SUM function|SUM]] | ||
+ | |||
+ | * [[Documentation/How_Tos/Calc: Statistical functions|Statistical functions]] | ||
+ | |||
+ | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
+ | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
+ | [[Category: Documentation/Reference/Calc/Statistical functions]] | ||
− | + | [[fr:Documentation/FR/Calc:Fonction_NB]] | |
+ | [[nl:NL/Documentation/How_Tos/Calc:_functie_AANTAL]] |