Count

Count is a mathematical function that returns the number of values in a group of numeric values, rows, columns, or cells. Count excludes #missing and #error when obtaining the count. The function syntax is:

  Count (arguments)
  

where arguments is expressed by one or more of the following arguments:

Argument

Description

numeric

A numeric value. For example, Count (10, 20, 30) returns the value 3. Numeric values can include decimals and negative values. For a description of numeric arguments, see Numeric Arguments.

row, column, or cell reference

A pointer to a row, column, or cell within a grid. References can be specified in several ways. The reference syntax is: GridName.GridElement[segment(range)].Property

For more information, see Row, Column, or Cell Reference Arguments.

function

An embedded function. For a list of mathematical functions, see Mathematical Functions.

Examples:

The following example returns the count of three rows, 1, 6, and 8:

  Count(row[1], row[6], row[8])

The following example returns the count of 3 columns:

  Count( column[E], column[G], column[I] )

The following example calculates the count of two columns located on different grids:

   Count( grid1.column[E], grid2.column[E] )

The following example calculates the count of the cell located at row 4, column D:

  Count(cell[D,4]) 

The following example calculates the count of aggregate row 3 in grid 5:

  Count(grid5.row[3])