Syntax
| Parameter | Description |
|---|---|
| [reference] | (Optional.) Parameter of the ROW function. |
Examples
Auto-numbering
=ROW()-1
Get row of reference
=ROW(C15)
Alternating row shading
=MOD(ROW(), 2)=0
Common Errors
ROW rarely errors, but will return #VALUE! if passed an invalid reference argument.
Tips
=ROW() with no argument returns the row number of the cell containing the formula. This is the most common usage.
=ROW()-ROW($A$1) gives you a 0-based counter relative to your data start. Add 1 for 1-based numbering.
ROW is often used with INDEX/MATCH to determine which row a match was found in, or to drive helper formulas that depend on position.
Try ROW in Viztab
Import your data and use ROW with 370+ other formulas. No signup required.
Open Viztab