Function · Lookup
Excel ROW function
The Excel ROW function returns the row number of a reference. The Texas rate sits in B6, so ROW of that cell is 6.
Syntax =ROW([reference])
=ROW(B6)Arguments
| Name | Required | What to pass |
|---|---|---|
| reference | Optional | The cell or range. If omitted, ROW returns the row of the cell that holds the formula. A multi-cell range returns the row of the top cell, or spills every row number in Microsoft 365. |
Examples
The row of the Texas rate
=ROW(B6)Result 6
| A | B | C | D | |
|---|---|---|---|---|
| 1 | State | Rate | Row of B6 | |
| 2 | CA | 7.25% | 6 | |
| 3 | FL | 6.00% | ||
| 4 | MA | 6.25% | ||
| 5 | NY | 4.00% | ||
| 6 | TX | 6.25% |
ROW returns the sheet row of a cell. B6 is the Texas rate, so ROW(B6) is 6. With no argument, ROW returns the row of the formula itself. In D2 that would be 2, which is why the grid passes B6 explicitly.
People use it to stripe a list, =MOD(ROW(),2), and to build an address with ADDRESS. ISEVEN of ROW() is TRUE on row 2 and FALSE on row 3. =MOD(ROW(),2)=0 returns those same two answers. It is the worksheet row, not the position inside a table that has a header. Insert a row and every ROW() below the insert increases by one. That is correct for a sheet coordinate and wrong for an ID you meant to keep.