ROW
Returns the row number of a reference, or of the current cell when omitted.
ROW returns a 1-based row index.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=ROW([reference])
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
reference | range (range) | Optional | — |
Differences from Excel
Excel requires a reference when the argument is supplied. Formualizer can also evaluate expressions in that position and propagate their errors.
The examples enter the formula in cell CV100.
Remarks
- With a range argument,
ROWreturns the first row in that reference. - Without arguments, it uses the row of the formula cell.
- Full-column references such as
A:Areturn1. - Invalid references return an error (
#REF!/#VALUE!depending on context).
Examples
Read the coordinate of an explicit cell reference.
Formula =ROW(B4)
Expected result 4
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Omit the reference to use the cell containing the example formula.
Formula =ROW()
Expected result 100
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The first cell has coordinate one along both axes.
Formula =ROW(A1)
Expected result 1
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Row of a single-cell reference
Formula =ROW(B5)
Expected result 5
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Row of a multi-cell range
Formula =ROW(C3:E9)
Expected result 3
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
What does ROW return for a multi-cell reference?
ROW returns the first row index of the reference, not an array of every row number.
What if ROW() is called without arguments?
It uses the formula cell position; if no current cell context exists, it returns #VALUE!.