TX Sheet Control

ROWS Function

Function

Return the number of rows in a range or an array. reference is the range, such as A1:C4, or an array constant, such as {1,2;3,4;5,6} (3 rows). The argument is required: ROWS() returns #VALUE!.

Syntax

ROWS(reference)

Category: Lookup. Minimum arguments: 0. Maximum arguments: 1.

Available for supported offline calculation.

Examples

=ROWS(A5)

The formula returns 1, because A5 is a single cell.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also