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:

  Count (arguments)
  

where arguments is one or more of these 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.

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: GridName.GridElement[segment(range)].Property

function

An embedded function

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 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(grid1.row[3])