Contact

ROW Function (Gnumeric)

Lookup Intermediate Gnumeric

Return worksheet row numbers with Gnumeric ROW, including omitted references, absolute references and vertical range vectors.

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

ROW returns the worksheet row of a reference, counting from 1. It does not count populated records, inspect stored contents or return an identifier stored in the cell. A blank reference still has a definite row number.

The reference is optional. In an ordinary scalar formula, omission returns the formula’s own row. A range spanning several rows produces a vertical vector of row numbers; ROWS instead reports the number of rows in a range.

Syntax

ROW([reference])

Worked examples

The original =ROW(C9) returns 9 whether C9 is empty or populated. =ROW($C$9) also returns 9. In D8, =ROW() returns 8; a formula placed on another row gets that row’s number.

=INDEX(ROW(B2:D4),2,1) returns 3, selecting the second member of the vertical vector 2,3,4. =ROWS(ROW(B2:D4)) returns 3. Spanning three columns does not duplicate each row number. INDEX makes the chosen vector element explicit without relying on single-cell display of an array.

When copied down, ROW(C9) normally advances its relative reference; ROW($C$9) fixes the reference. These differ from omission, which follows the formula’s destination rather than a supplied reference.

Advanced use

A table beginning on row 9 can use ROW(C9)-ROW($C$9)+1 as a relative row index. Filling down advances the first reference and retains the fixed starting reference. Decide whether a header belongs in the numbering sequence.

Such numbers are positions, not permanent record IDs. Sorting, inserting or moving records can change their relationship to business identity. Preserve an explicit stable key when downstream work requires identity. Row-position helpers are useful for structural checks and navigation, but do not establish which person or transaction a record represents.

Errors and troubleshooting

ROW(7) returns #VALUE!, since a number is not a reference. Text “C9” is not the same argument as C9. ROW’s range vector is vertical, so COLUMN’s horizontal indexing convention should not be copied unchanged. GUI array entry and multi-cell no-argument array contexts are not certified by the selected tests.

Availability and verification

  • Introduced: Gnumeric 0.19, explicitly listed among new functions in official NEWS.
  • Historical source availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
  • Scope: Desktop; the fn-lookup function module must be included and enabled.
  • Historical check: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.

The selected examples and errors were recalculated with the actual Gnumeric 1.12.57 engine under C.UTF-8 on 17 October 2026. Native workbooks and observed outputs are retained. No GUI array-entry behavior, retirement date or last-functioning release is established. Historical 1.12.62 registration is separate from the pinned 1.12.57 implementation.

For the related operations discussed here, see ROWS, COLUMNS, COLUMN.

VLOOKUP HLOOKUP MATCH INDEX CHOOSE.

Official references