CountA is a mathematical function that returns the number of values in a group of numeric values, rows, columns, or cells. CountA includes #missing and #error cells when obtaining the count only for rows or columns that are not suppressed. The function syntax is:
CountA(arguments)
where arguments is expressed by one or more of the following arguments:
A numeric value. For example, CountA(10,20,30,50) returns the value 4. Numeric values can include decimals and negative values. For a description of numeric arguments, see Numeric Arguments. | |
A pointer to a row, column, or cell within a grid. References can be specified in several ways. The reference syntax is: CountA(GridName.GridElement[segment(range)]).property For more information, see Row, Column, or Cell Reference Arguments. | |
An embedded function. For a list of mathematical functions, see Mathematical Functions. |
In the following example, if a grid has 4 rows with the values 10, 20, 30, and, #error. The following formula in the 5th row returns the count of four rows:
CountA([1:4])
The following example returns the count of four rows:
CountA(row[1], row[6], row[8] row[where data yields #error])