Contact

MATCH Function in Collabora Office Calc: Formula, Examples & Troubleshooting

Lookup Intermediate Collabora Office Calc

Learn the MATCH formula in Collabora Office Calc: find the relative position of a matching key, with reproducible examples, expected answers and compatibility cautions.

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

Quick answer: MATCH returns the relative position of a key in one row or one column. Type 0 selects exact search and explicitly returns the first matching position when a key is duplicated. The omitted type defaults to 1, which requires ascending order and performs a boundary lookup.

Availability and version history

  • Introduced: original Collabora release and launch date are not established by the sources reviewed.
  • Availability: documented in Collabora Office 26.04 help, scoped to the desktop-help release.
  • Platform scope: online and mobile deployments are not inferred from desktop documentation.
  • Checked: October 14, 2026. Exact function section and independent lookup controls; no native Collabora test was performed.

Syntax and arguments

=MATCH(search; lookup_array; [type])

Search and the one-dimensional lookup array are required. Type 0 finds an exact match. Type 1 or omission assumes ascending order and returns the last position whose value is no greater than the search. Type -1 assumes descending order and returns the last position whose value is no smaller. The official help warns that unsorted arrays produce unpredictable results in the two approximate modes.

Prepare the original inputs

Use English function names and semicolon argument separators. Store the Amount and Units values as actual numbers. The original source table is retained below; each later example explicitly identifies when to use a separate worksheet.

For the formulas that reference cells, enter this small dataset into A1:F9 (the first row contains headings). The Amount and Units columns are numbers; the team, status, item and agent columns are text. Keep the calculation cell outside A1:F9 so it cannot overwrite an input.

Row A · Item B · Team C · Status D · Amount E · Units F · Agent
1 Item Team Status Amount Units Agent
2 Pen East Paid 120 12 Ana
3 Pad West Pending 75 5 Bo
4 Box East Paid 210 7 Ana
5 Tape North Paid 90 0 Cy
6 Folder West Paid 150 3 Bo
7 Pen East Pending 60 8 Dee
8 Pad West Paid 125 12 Ana
9 Box North Pending 80 4 Cy

Example 1: original control

=MATCH("Box";A2:A9;0)

Expected result: 3. Box first appears as the third value of A2:A9, at A4.

Example 2: original comparison

=MATCH("West";B2:B9;0)

Expected result: 2. West first occurs as the second team value, at B3.

Example 3: return a position before retrieving a value

In the original table:

=MATCH("Box";A2:A9;0)
=INDEX(D2:D9;MATCH("Box";A2:A9;0);1)

Expected results are 3 and 210. MATCH counts Box as the third entry of A2:A9; INDEX uses that same position in D2:D9. Both ranges begin in worksheet row 2 and contain the same eight records.

Using D1:D8 as the return range would shift the reference origin and return 75 instead. An error-free number is not proof that the row alignment is correct. See INDEX for positional retrieval.

Example 4: expose the documented first-duplicate rule

The original Item column contains Pen twice, at A2 and A7:

=MATCH("Pen";A2:A9;0)

Expected result: 1, the first matching position. Searching for Box gives 3 rather than the later position 8. The MATCH section states this exact-mode rule explicitly.

If a different record is required, do not use a repeated item label as though it were a unique identifier. Create a stable unique key or use a separately documented operation designed to return every matching row. MATCH alone returns one position, not an array of all duplicates.

Advanced example: use ascending boundaries deliberately

Enter numeric 0, 10, 20, 50 in H2:H5:

=MATCH(35;H2:H5;1)
=MATCH(35;H2:H5)

Both expected results are 3, because 20 is the last value no greater than 35. Search value 20 returns position 3; 1 returns position 1; 75 returns position 4.

The returned number is a position, not the boundary itself. =INDEX(H2:H5;MATCH(35;H2:H5;1);1) has expected result 20. Keep the ascending sort requirement visible beside any maintained boundary table.

Advanced example: descending mode selects the other boundary

Enter numeric 50, 20, 10, 0 in J2:J5:

=MATCH(35;J2:J5;-1)
=MATCH(15;J2:J5;-1)
=MATCH(5;J2:J5;-1)

Expected positions are 1, 2 and 3, corresponding to boundary values 50, 20 and 10. Each is the last value in this descending list that is no smaller than the search value.

For an exact search of 20, type -1 returns position 2. These distinct, correctly ordered controls do not establish behavior for duplicate boundary values, mixed types or arrays sorted in the wrong direction.

Advanced example: locate a header horizontally

=MATCH("Amount";A1:F1;0)
=MATCH("Agent";A1:F1;0)

Expected results are 4 and 6. A horizontal lookup still returns a relative position, not the worksheet column letter. The one-row range is an allowed alternative to a one-column range.

To return the original second order’s amount with a header-driven index:

=INDEX(A2:F9;2;MATCH("Amount";A1:F1;0))

Expected result: 75. Header positions and data-table columns have the same origin, so position 4 refers to Amount in both places.

Pattern mode is separate from exact-position mode

The official help permits regex or wildcard searches only with type 0, and only when the relevant calculation option is enabled. For a regex-specific example on the original Item column:

=MATCH("^Ta.*$";A2:A9;0)

Under enabled regular-expression matching, the unique Tape entry has expected position 4. With regular expressions disabled, the characters need not be interpreted as that pattern. Do not substitute a wildcard-style pattern without checking the selected mode.

The source also warns that numeric-looking search strings can be converted before pattern matching. The anchored alphabetic control above avoids that particular ambiguity; it is not a universal case-sensitivity or Unicode test.

Missing keys and troubleshooting

A missing exact key has no matching position, but the selected MATCH section does not specify a full displayed-error table. This guide does not invent a code for every absent, malformed or out-of-range case. Inspect the array dimension, type argument, sort direction, key type and matching settings before adding an error fallback.

Use VLOOKUP or HLOOKUP for directly returning a table value when their search layout is suitable. Their optional flags are Boolean sorted-range controls, not MATCH’s three-valued type argument.

References and verification

The complete older manuscript, original dataset and worked formulas were reviewed. The function-specific section replaces an unrelated mathematical-functions citation. Results are independent expectations under the stated settings and qualifications; no native execution or cross-product equivalence is claimed.