ROWS function
the number of rows in a reference.
Lookup and reference
Where can you use it?
Reporting and operations teams. Use functions in this group to retrieve a field from an item, employee or order list, select the right record, or move values into another report.
Scenario in the workbook
Count the height of a range. Blank cells do not reduce its row count.
A worked example from the workbook
| Row | A |
|---|---|
| 6 | Row |
| 7 | 1 |
| 8 | 2 |
| 9 | 3 |
Record 1
=ROWS($A$7:A7)Expected result1
See the inputs and instructions for all 3 examplesCopyable formulas
English Excel · en-US
=ROWS(A2:A8)Turkish Excel · tr-TR
=SATIRSAY(A2:A8)Expected result
7
Worked examples
Count the height of a range. Blank cells do not reduce its row count.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A |
|---|---|
| 6 | Row |
| 7 | 1 |
| 8 | 2 |
| 9 | 3 |
| Case | Formula | Expected result |
|---|---|---|
| Record 1 | =ROWS($A$7:A7) |
1 |
| Record 2 | =ROWS($A$7:A8) |
2 |
| Record 3 | =ROWS($A$7:A9) |
3 |