ROWS

ROWS(array)

Returns the number of rows in a cell range or reference.

arrayThe array or array formula containing the number of rows.

REMARKS
* The "array" can be a cell reference, an array constant or a named range.
* If "array" is not an array, then #VALUE! is returned.
* You can use the ADDRESS function to return the cell reference given a row and column number.
* You can use the COLUMN function to return the column number of a cell reference.
* You can use the COLUMNS function to return the number of columns in a cell range or reference.
* You can use the ROW function to return the row number of a cell reference.
* For the Microsoft documentation refer to support.microsoft.com
* For the Google documentation refer to support.google.com

 AB
1=ROWS(B1:B4) = 45
2=ROWS(B3) = 110
3=ROWS({1, 2, 3;4, 5, 6}) = 215
4=ROWS({1, 2, "some text"}) = 120
5=ROWS("some text") = 1 

1 - How many rows are there in the range "B1:B4".
2 - How many rows are there in the range "B3".
3 - How many rows are there in the array {1,2,3 ; 4,5,6}.
4 - How many rows are there in the array {1,2,"some text"}.
5 - How many rows are there in a text string.

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top