1. Home
  2. Functions
  3. Lookup and reference
  4. ROW

ROW function

Returns the row number of a reference, or of the cell with the formula when left out.

Syntax

=ROW([reference])

Arguments

ArgumentRequiredDescription
referenceOptionalA cell or range (optional)

How to use ROW

When ROW returns more than one value, the result spills into the cells below and to the right. Keep those cells empty, or you get #SPILL!.

ROW takes no required arguments and 1 optional argument. Type =ROW( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=ROW(C10)Result 10
=ROW(A1:A3)Result 3 by 1 array
Spilled result
A
11
22
33

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.