Contact

Lookups Β· cross-software comparison

INDEX + MATCH fallback

Use INDEX and exact-match MATCH to migrate a SKU lookup from XLOOKUP without approximate-match surprises.

Task

Locate SKU-103 in D2:D6 and return the corresponding value from E2:E6.

Expected output

Gamma

Compatibility trap: MATCH with a missing third argument may perform an approximate lookup; specify zero.

One shared five-row test dataset

The same source rows make results easier to compare. Use the CSV in any supported spreadsheet application; the ODS workbook also includes LibreOffice formula tests.

Shared formula comparison fixture (columns A through F)
Region (A)Status (B)Amount (C)SKU (D)Label (E)Units (F)
NorthOpen125SKU-101Alpha2
SouthClosed80SKU-102Beta1
NorthOpen75SKU-103Gamma3
NorthClosed50SKU-104Delta4
SouthOpen200SKU-105Epsilon1

Formula syntax and feature differences

β€œDocumented” rows cite official product help, but were not run in the destination software. A formula shown here is a migration candidate, not a guarantee of identical behaviour or file interoperability.

Formulas can be selected and copied manually. Copy buttons become available when JavaScript is ready.

LibreOffice Calc

Native tested

Version: Tested 25.2.3.2.

Arguments: INDEX(return_range;MATCH(key;search_range;0))

=INDEX(E2:E6;MATCH("SKU-103";D2:D6;0))

Native result Gamma; easy fallback on older Calc versions.

Official documentation β†—

Gnumeric

Documented

Arguments: INDEX(array,MATCH(seek,vector,0))

=INDEX(E2:E6,MATCH("SKU-103",D2:D6,0))

Gnumeric MATCH type 0 requires exact match; +1 default is approximate.

Official documentation β†—

Calligra Sheets

Alternative

Arguments: Exact VLOOKUP alternative

=VLOOKUP("SKU-103";D2:E6;2;FALSE)

The KDE handbook documents exact VLOOKUP; INDEX+MATCH behaviour was not separately reviewed.

Official documentation β†—

PlanMaker

Alternative

Arguments: XLOOKUP alternative

=XLOOKUP("SKU-103";D2:D6;E2:E6;"Not found")

Prefer documented XLOOKUP for this current-version example; this does not establish INDEX+MATCH syntax on PlanMaker.

Official documentation β†—

ONLYOFFICE Spreadsheet Editor

Documented

Arguments: INDEX + MATCH

=INDEX(E2:E6,MATCH("SKU-103",D2:D6,0))

Compatible formula family; this exact formula was not runtime-tested in ONLYOFFICE.

Official documentation β†—

Zoho Sheet

Alternative

Arguments: XLOOKUP alternative

=XLOOKUP("SKU-103";D2:D6;E2:E6;"Not found")

Zoho’s documented XLOOKUP handles this task without nested functions.

Official documentation β†—

Microsoft Excel

Documented

Version: Classic Excel versions.

Arguments: INDEX(array, row_num) with MATCH(lookup_value, lookup_array, 0)

=INDEX(E2:E6,MATCH("SKU-103",D2:D6,0))

MATCH with 0 specifies an exact match.

Important: Vendor help checked; example not executed in this program.

Official documentation β†—

Google Sheets

Documented

Version: Documented in Google Sheets online function help; original introduction and exact release/build not established.

Arguments: INDEX(array, row_num) with MATCH(lookup_value, lookup_array, 0)

=INDEX(E2:E6,MATCH("SKU-103",D2:D6,0))

MATCH with 0 specifies an exact match.

Important: Vendor help checked; example not executed in this program.

Official documentation β†—

WPS Spreadsheet

Documented

Version: WPS Academy desktop-oriented documentation; numeric build, operating system and edition not established.

Arguments: INDEX(return_range, MATCH(key, lookup_range, 0), 1)

=INDEX(E2:E6,MATCH("SKU-103",D2:D6,0),1)

The WPS composition lesson combines INDEX with MATCH; its linked MATCH lesson specifies 0 for exact matching.

Alternative: Run the migration controls below in your exact permitted installation before relying on this pattern.

Important: Documentation checked 2026-10-24 (America/Toronto), not native execution. Gamma is independently modeled. Free-edition entitlement, other clients, blank-return rendering and text/number coercion remain unverified.

Official documentation β†—

Collabora Office Calc

Documented

Version: Collabora desktop help labelled 26.04 at the latest URL; exact installed build not established.

Arguments: INDEX(return_range; MATCH(key; lookup_range; 0); 1)

=INDEX(E2:E6;MATCH("SKU-103";D2:D6;0);1)

Desktop help documents MATCH type 0 as exact, returning the first duplicate position; INDEX selects the corresponding row.

Alternative: Run the migration controls below in your exact permitted installation before relying on this pattern.

Important: Documentation checked 2026-10-24 (America/Toronto), not native execution. Online/mobile parity, free entitlement and other releases remain unverified. Pattern matching depends on calculation options; Gamma is independently modeled.

Official documentation β†—

What changes when you migrate?

A robust lookup portfolio includes a deliberate missing-key test and a duplicate-key test so first-match behaviour is visible.

For reverse lookups, build the INDEX return range from the desired output column rather than constructing a VLOOKUP table with a left-edge key.

Do not change 0 to 1 in MATCH unless your key list is sorted and approximate matching is intended.

Actual LibreOffice calculation evidence

The historical results report dated October 10, 2026 records calculation-engine checks in LibreOffice Calc 25.2.3.2 using headless UNO, not a GUI or workbook round-trip check. The published manifest provides the exact input formula, checked result, and whether the test validates a scalar result rather than array spill layout.

Test ID: index-match. See calculation results (JSON).

How the two functions work together

MATCH("SKU-103";D2:D6;0) locates the key within the five-row SKU vector and returns a relative position. INDEX(E2:E6;position) takes the value at the same offset in the label vector. Both vectors must cover the same rows.

The final 0 in MATCH requests exact comparison. Gnumeric’s manual states that an omitted matching type defaults to an approximate mode. This is a particularly useful portability check because the displayed result may look reasonable even when it is wrong.

Why keep this older pattern around?

INDEX+MATCH is a practical fallback when XLOOKUP is absent from the installed edition or incompatible with the save format. It also handles reverse lookups without rearranging columns. That makes it a good target for an upgrade test suite.

If the search value has duplicates, the first-matching-row behaviour matters. If there is no match, a separate error handler may be needed. The test workbook includes an additional IFERROR(VLOOKUP(...)) case to demonstrate the missing-value path in LibreOffice.

WPS and Collabora: scope before migration

WPS’s INDEX MATCH lesson demonstrates composition and reverse lookup. Its MATCH lesson explicitly uses 0 for exact matching. The INDEX argument lesson identifies row and column positions; the comparison uses column 1 because E2:E6 is one column wide. These desktop-oriented lessons do not establish a particular operating system, numeric build, current free-edition entitlement or cross-client parity.

Collabora desktop help, labelled 26.04 when checked on October 24, 2026 (America/Toronto), documents a first-match position for MATCH type 0. Wildcard/regular-expression options still matter for pattern-like keys. Online, mobile and native desktop execution remain unverified here.

A small migration test, not a native pass

Start with the shared five-row fixture above. For SKU-103, the intended result is Gamma. Reset to the original fixture before each control below; do not combine mutations.

  • Missing key: search for SKU-999. There is no matching row. Record the actual error before adding any fallback, rather than hiding a broken reference with a broad error handler.
  • Duplicate key: change D6 to SKU-103, leaving E6 as Epsilon. A first-match policy selects Gamma at D4, not Epsilon at D6. Confirm which row the installed application actually selects.
  • Text versus number: change D2 to numeric 103 and D4 to text 103 (enter '103 to preserve text). Alpha and Gamma now identify different source rows. Test numeric 103 and text "103" separately; record whether the engine coerces types. Do not assume the strict-type reference model describes the application.
  • Blank return: clear E4, then test again with E4 containing ="". The key still exists in both trials. Record zero, empty text, blank appearance or error separately; none of these trials is a missing-key test.

These controls were checked with an independent row-selection model, not WPS or Collabora execution. The model identifies rows and distinguishes a cleared value from empty text; it cannot certify spreadsheet coercion, display formatting or imported-file recalculation. Native results and screenshots for these two products remain unavailable here.

Diagnose the position before the return

For the unchanged fixture, evaluate MATCH on its own: the independently expected position is 3, relative to D2:D6, not worksheet row 4. INDEX then selects the third cell in E2:E6, which contains Gamma. If the position is correct but the label is wrong, check that both ranges begin on the same source row and have the same length. An offset such as D2:D6 paired with E3:E7 can silently select the wrong label.

A first-match policy is not a last-match policy. If duplicate identifiers represent revisions, decide which revision is wanted before migrating; this formula does not deliberately select the newest record. Compare the exact VLOOKUP case when the return column is to the right.

The October 24 editorial update covers only the WPS and Collabora documentary rows and these migration controls. Other software profiles retain their earlier evidence; the date is not a new native-test certification.

Evidence standard: Only LibreOffice rows labelled β€œNative tested” were run as executable fixtures. Other entries reflect vendor help or a separately labelled workaround. Dates and versions are shown when known. Last editorial research: 2026-10-24.

← Back to all comparisons