
The Excel ROWS function returns the count of rows in a given reference. For example, ROWS(A1:A3) returns 3, since the range A1:A3 contains 3 columns.
Get the number of rows in an array or reference.
A number representing row count.
=ROWS (array)
Use ROWS to get the column count of a reference. For example, the formula =ROWS(A1:A10) returns the number 10.
Array can be an array, an array formula, or a reference to a single contiguous group of cells.

The Excel ROWS function returns the count of rows in a given reference. For example, ROWS(A1:A3) returns 3, since the range A1:A3 contains 3 columns.
Get the number of rows in an array or reference.
A number representing row count.
=ROWS (array)
Use ROWS to get the column count of a reference. For example, the formula =ROWS(A1:A10) returns the number 10.
Array can be an array, an array formula, or a reference to a single contiguous group of cells.