Contact

ROW Function (OpenOffice Calc)

Lookup Intermediate OpenOffice Calc

Learn the ROW function in Apache OpenOffice Calc: Defines the internal row number of a reference.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Availability and version history

  • Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
  • Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

ROW returns a worksheet row coordinate, counted from 1. The contents of the referenced cell do not determine the result. ROW(C9) is 9 whether C9 contains text, a number or nothing. Use ROW to describe position; use ROWS to describe the height of a range.

Syntax and arguments

=ROW(reference)
=ROW()

The reference is optional. A single-cell reference returns its row number. With no argument, an ordinary scalar formula returns the row containing the formula itself. A range has additional array behavior: the documented array-entry form produces the range’s row numbers as a single column, while ordinary scalar entry returns its first row number. Examples use English function names and semicolon separators.

Worked example

=ROW(C9)

Expected result: 9.

Why it works: Return the row number of a reference.

Example evidence

This original example retains its historical comparable LibreOffice 25.2 checking scope; it was not an OpenOffice native test. The reference controls below are independently checked source/documentation expectations, not new application captures.

Additional reference controls

Formula Reference result
=ROW(C9) 9
=ROW(A1) 1
=ROW($B$12) 12
=ROW(C5:E5) 5
=ROW(D5:D8) 5

Quoted results are text. ERROR means the source’s error path without claiming a newly observed localized error message. Range formulas here use ordinary scalar entry unless the array form is explicitly discussed.

Practical worksheet

Put =ROW() in E5 and copy through E8. The expected values are 5,6,7,8, because the formula position changes. In F5 enter =ROW()-ROW($E$5)+1 and copy through F8. Results are 1,2,3,4. The absolute anchor identifies the first row of the block and the final +1 changes a zero-based offset to a one-based sequence.

This sequence describes current row position. It is not a persistent record identifier: sorting, insertion or moving the underlying records can change which record receives which number. Keep a separate stored key when identity must survive rearrangement.

Advanced applications and distinctions

Build a relative position from a reference. For C9 relative to C5, =ROW(C9)-ROW(C5)+1 gives 5. The result counts C5 as position 1. Subtracting the coordinates without +1 would measure the four-row displacement instead.

Distinguish a range from its size. For D5:D8, ordinary =ROW(D5:D8) returns 5, while =ROWS(D5:D8) returns 4. Under the documented array-entry workflow, ROW(D5:D8) instead supplies the vertical values 5,6,7,8. The pinned interpreter constructs a one-column result for a multi-row range. No native array-entry or spill workflow was executed for this guide.

Separate value changes from structure changes. Replacing C9’s value does not change ROW(C9). Inserting rows can adjust formula references and coordinates. Absolute dollar signs prevent relative translation when a formula is copied; they do not promise that structural edits can never update the reference.

Errors and troubleshooting

Pass a real reference, not the quoted address text “C9”. The interpreter accepts cell and range references in this path; it does not treat arbitrary numeric or text values as references. A formula error caused by an invalid reference must be repaired at the reference itself.

The displayed row coordinate is one-based even though source internals store a zero-based coordinate. Do not subtract one unless the consumer explicitly requires zero-based offsets. A multi-column range does not turn ROW into a column counter, and repeated columns do not multiply the vertical list of row numbers.

Named references, multi-sheet ranges and external links need their own scope checks. The examples use one sheet and bounded references, without relying on a product’s maximum worksheet size. Array entry is documented separately from scalar results; a result visible in one cell is not proof that a full array was entered or saved. Preserve the formula’s address and entry mode when diagnosing a different result.

Documentation and verification

The official ROW function reference was retrieved October 15, 2026. The pinned 4.1.16 interpreter and function descriptions retain their October 13 source retrieval dates. These support scalar branch selection, reference dimensions, lookup modes and the limitations stated here. Original introduction and last functioning version remain unestablished, separate from documented release support. No new native, GUI, array-entry or import/export test was performed.