Contact

INDEX Function (Gnumeric)

Lookup Intermediate Gnumeric

Learn the INDEX function in Gnumeric: Returns a reference to a cell from a defined range.

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

INDEX selects a cell within a range by row and column positions counted from that range’s upper-left corner. Positions start at 1. Use it for a known location or combine it with MATCH to retrieve a value associated with a lookup key.

Syntax and defaults

=INDEX(array[,row[,col[,area]]])

array is the required reference or inline array. Optional row, col and area default to 1. Use positive whole-number positions for clear formulas. The positions are relative to the supplied range, not absolute worksheet row and column numbers.

area selects an area of a supported reference set. For the single-range examples here, leave it omitted or use 1. Another area number on a single range returns #REF! in the inspected callback. This guide does not demonstrate multi-area syntax or certify every other application’s INDEX form.

Retained practice dataset

Enter the following without inserting a header into row 1:

Row A (Quantity) B (Amount) C (Category)
1 1 10 apple
2 2 20 pear
3 3 30 apple
4 4 40 pear
5 5 50 apple
=INDEX(B1:B5,3)
=INDEX(B1:B5,4)

The results are 30 and 40. The omitted col defaults to the only column. =INDEX(B1:B5) selects its first row and first column, giving 10.

Two-dimensional selection

=INDEX(A1:C5,2,3) gives pear. Row 2 within this range happens to be worksheet row 2, and column 3 is C. If the same table began in row 10, relative row 2 would mean worksheet row 11.

A zero row does not request an entire column in the inspected Gnumeric callback. =INDEX(B1:B5,0) returns #REF!, as does =INDEX(B1:B5,6), because only five rows exist. Do not transfer another application’s zero-index array convention without testing it.

Advanced use with MATCH

=INDEX(B1:B5,MATCH(4,A1:A5,0)) retrieves the amount for quantity 4. MATCH gives relative position 4 and INDEX returns the fourth amount, 40.

Align the lookup and return ranges. Starting one at row 1 and the other at row 2 makes the same position refer to different records. Exact-match mode 0 is appropriate here because quantities are being used as exact keys, not approximate bands.

Errors and troubleshooting

An out-of-bounds position produces #REF!. A missing nested MATCH key can produce #N/A before INDEX receives a valid position. Evaluate the inner lookup separately when diagnosing a combined formula.

Gnumeric can return a reference for a range selection; when displayed by itself, the selected cell’s value is shown. The controls here demonstrate scalar retrieval, not spilling an entire row or column. Keep source records visible so the returned value can be traced to the intended cell.

Availability and verification

Version coverage: Gnumeric 1.12.57 has the scoped checks below. The 1.12.62 evidence is a documentation/source check dated October 14, 2026.

  • Introduced: Original introduction not established. The earliest demonstrated support in this guide is 1.12.57.
  • 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.
  • Checked: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.

The executable contract is also present in the official Gnumeric 1.12.57 fn-lookup source. The saved source was originally retrieved on October 17, 2026 and re-inspected for this guide. The last functioning release is not established; support in a named version is not a retirement claim.

On October 17, 2026, Gnumeric ssconvert 1.12.57 recalculated a synthetic workbook in the C.UTF-8 locale. Scoped controls: =INDEX(B1:B5,3) → 30; =INDEX(B1:B5,4) → 40; =INDEX(A1:C5,2,3) → pear; =INDEX(B1:B5) → 10; =INDEX(B1:B5,0) → #REF!; =INDEX(B1:B5,6) → #REF!; =INDEX(B1:B5,MATCH(4,A1:A5,0)) → 40. These are native calculation-engine results, not GUI tests or screenshots. Other tutorial layouts and displayed outputs are independent expectations unless covered by these exact formulas. Input/output files, preserved formulas, raw values and hashes were retained. The XLSX importer logged an unused workbookProtection-element warning; changed-input controls and recorded results were checked.

Official references