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.

All current Excel versions. Also in Excel for the web and Google Sheets.

Syntax =ROW([reference])

ROW
=ROW(B6)

Arguments

NameRequiredWhat to pass
referenceOptionalThe 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

=ROW(B6)D2
Rates
ABCD
1StateRateRow of B6
2CA7.25%6
3FL6.00%
4MA6.25%
5NY4.00%
6TX6.25%
A picture of the sheet, not a live calculator. ROW() with no argument, placed in D2, would return 2, the row of the formula.

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.