Formualizer Docs

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

ArgumentTypeRequiredDefault
referencerange (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, ROW returns the first row in that reference.
  • Without arguments, it uses the row of the formula cell.
  • Full-column references such as A:A return 1.
  • 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?.

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!.

Implementation

Engine source

On this page