In simple words “ROWS” function in excel returns the count of the number of rows selected in the range. It is different from the row function, where row function gave us the row number for the selected cell instead rows function takes an array of rows as an argument and gives us the number of rows in that array, this is also a referencing function to identify the number of rows in a given array.
Syntax:= ROWS (array)
The ROWS function syntax has the following arguments:
- Required. An array, an array formula, or a reference to a range of cells for which you want the number of rows.
Example: Let’s look at some Excel ROWS function examples and explore how to use the ROWS function as a worksheet function in Microsoft Excel:
Based on the Excel spreadsheet above, the following ROWS examples would return:
- Array can be a range or a reference to a single contiguous group of cells.
- Array can be an array constant or an array created by another formula.