Lookup and reference

ROWS

Measure an array or reference’s height in rows.

Syntax

=ROWS(array)

Worked example

Measure the number of rows in the reference.

=ROWS(A2:D9)

Result 8

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor