ROW returns the row number of a reference — most often used to auto-number lists that stay correct even after sorting or deleting rows.
ROW returns the row number of a given reference. With no argument, it returns the row number of the cell the formula itself is in.
The most common real use is auto-numbering a list (1, 2, 3...) in a way that automatically stays correct if rows are inserted, deleted, or the list is sorted.
=ROW([reference])| Argument | Description |
|---|---|
| reference optional | A cell or range. If omitted, returns the row number of the cell containing the formula. |
=ROW()If this formula sits in row 7, it returns 7.
=ROW()-1Placed in row 2 of a list with headers in row 1, this returns 1, then 2, then 3 as you copy it down — numbering stays correct even if rows are later inserted.
=ROW(C10)Returns 10, regardless of which cell the formula itself is typed into.
ROW returns a single row number. ROWS (plural) counts how many rows are in a range. They solve different problems.
ExcelPro has 700+ hands-on Excel exercises across 7 career tracks — free to start, no download needed.
Start practicing free →