ROWS(array)
=ROWS(A1:F10)
This example returns 10 because there are 10 rows in the range A1:F10
=ROWS(A1:Z100)
This example returns 100 because there are 100 rows in the range A1:Z100.
=ROWS({1;2;3;4;5})
This example returns 5 because the array constant argument has 5 rows.
The ROWS function is used to count the number of rows in an array, array formula, or cell range reference.