# 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) |
m |
||

Line 36: | Line 36: | ||

[[fr:Documentation/FR/Calc:Fonction NBVAL]] | [[fr:Documentation/FR/Calc:Fonction NBVAL]] | ||

[[nl:Documentation/nl/How_Tos/Calc:_functie_AANTALARG]] | [[nl:Documentation/nl/How_Tos/Calc:_functie_AANTALARG]] | ||

− | [[Category: Documentation/Reference/Calc]] | + | [[Category: Documentation/Reference/Calc/Statistical functions]] |

## Revision as of 11:45, 17 May 2010

## COUNTA

Counts the non-empty values in the list of arguments.

### Syntax:

**COUNTA(value1; value2; ... value30)**

` value1` to

`are up to 30 values or ranges representing the values to be counted.`

**value30**### Example:

**COUNTA(B1:B3)**

- where cells
,**B1**,**B2**contain**B3**,**1.1**,**=NA()**returns**apple**, because none of the cells in**3**are empty.**B1:B3**

**COUNTA(2; 4; "dog")**

- returns
, because**3**,**2**and**4**are all numbers or text.**"dog"**

**COUNTA(D1)**

- where cell
contains**D1**, returns**=""**, because**1**is a string (although of zero length).**""**