Difference between revisions of "Documentation/How Tos/Calc: COUNT function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
m
Line 2: Line 2:
  
 
== COUNT ==
 
== COUNT ==
Counts the numbers in the list of arguments. Text entries are ignored.
+
Counts the numbers in the list of arguments, ignoring text entries.
  
 
=== Syntax: ===
 
=== Syntax: ===
Line 18: Line 18:
  
 
=== See also: ===
 
=== See also: ===
'''[[Documentation/How_Tos/Calc: COUNTA function|COUNTA]]''',
+
[[Documentation/How_Tos/Calc: COUNTA function|'''COUNTA''']],
'''[[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''']]
 +
 
 +
[[Documentation/How_Tos/Calc: Statistical functions|'''Statistical functions''']]
  
 
===Issues: ===
 
===Issues: ===

Revision as of 05:22, 17 March 2008


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.

See also:

COUNTA, COUNTIF, COUNTBLANK, SUM

Statistical functions

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, in apparent contrast to Excel.
Personal tools