Contact

MATCH Function in WPS Spreadsheet: Formula, Examples & Troubleshooting

Lookup Intermediate WPS Spreadsheet

Learn the MATCH formula in WPS Spreadsheet: 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 selected value, not the value itself. Mode 0 finds the first exact match and permits unsorted inputs. The omitted default is mode 1, which requires ascending order; mode -1 requires descending order.

Availability and version history

  • Introduced: documented by 2019-08-19 in the official WPS lesson; original introduction is not established.
  • Availability: WPS Office for Windows Personal; no numeric release is stated in the lesson metadata.
  • Scope: current supported builds remain unverified. These historical Windows rules do not establish equivalent behavior in every WPS client.
  • Checked: October 14, 2026. Full function-specific review and independent lookup models; no native WPS test was performed.

Syntax and arguments

=MATCH(lookup_value, lookup_array, [match_type])

The optional match_type is 1, 0 or -1. Mode 1 selects the largest value less than or equal to the requested key; mode -1 selects the smallest value greater than or equal to it. The sorting direction is part of the matching rule.

Examples use English function names and comma separators. Square brackets describe optional arguments and are not typed. Results below are independent documentation-based expectations, with unresolved cases explicitly identified.

Prepare the original table

Enter the original dataset in A1:F9, including its heading row. Row is explanatory and is not an extra worksheet column. Amount and Units are numeric. Keep output cells outside this table.

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.

First matches and relative positions

Unlike the captured VLOOKUP lesson, WPS’s MATCH reference explicitly states that mode 0 returns the first equal value. The original 3 for Box and 2 for West are therefore directly supported first-match expectations, not a claim that keys are unique.

A2:A9 begins at worksheet row 2, so relative position 3 refers to A4. If the range starts at A4 instead, =MATCH("Box",A4:A9,0) returns 1. The selected worksheet cell can stay the same while its relative index changes.

The source documents case-insensitive text matching. =MATCH("box",A2:A9,0) therefore also has expected result 3.

Example 3: return the associated value with INDEX

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

Expected results are 210 and Box. The first uses MATCH’s documented first Box position. The second searches a unique amount and returns a value from a column to its left.

The ranges must describe the same ordered records. For example, using D3:D10 as the return range with the original Box position 3 would select D5, amount 90, rather than D4. Matching lengths alone do not establish alignment.

Advanced example: ascending threshold positions

On a separate worksheet, enter 0, 100 and 200 in A2:A4, ascending. For a key of 150:

=MATCH(150,A2:A4,1)
=MATCH(150,A2:A4)

Both have expected position 2, identifying threshold 100. The omitted mode is not exact matching. Controls 0, 50, 100, 150, 200 and 250 give positions 1, 1, 2, 2, 3 and 3.

The exact formula =MATCH(150,A2:A4,0) instead returns #N/A, because 150 is absent. Position 2 is not the matched value 100; use INDEX when the value is needed.

Advanced example: descending upper-bound selection

Put 200, 100 and 0 in C2:C4, descending. For =MATCH(150,C2:C4,-1), the expected position is 1, selecting 200 as the smallest listed value at least as large as 150.

Controls 200, 150, 100, 50 and 0 produce positions 1, 1, 2, 2 and 3. A key of 250 has no qualifying upper value, so the documented unsuccessful-search result is #N/A.

Sorting this range ascending without changing the formula violates the mode’s contract. No particular wrong answer is promised for an unsorted input; it is simply not a valid use of this approximate rule.

Advanced example: text wildcards in exact mode

The WPS reference explicitly permits * and ? when mode 0 has a text lookup value. Against the original Item range A2:A9:

=MATCH("P*",A2:A9,0)
=MATCH("?ad",A2:A9,0)
=MATCH("*er",A2:A9,0)

Expected positions are 1, 2 and 5. P* first matches Pen, ?ad matches Pad, and *er matches Folder. The first-match rule still matters when several keys fit a pattern.

The captured lesson does not specify a tilde escape convention, so literal wildcard escaping is not certified here. A wildcard pattern is also different from a general regular expression.

Advanced check: expose the two-dimensional coordinates

=MATCH("Folder",A2:A9,0)
=MATCH("Amount",A1:F1,0)
=INDEX(A2:F9,MATCH("Folder",A2:A9,0),MATCH("Amount",A1:F1,0))

The separate positions are 5 and 4, and the final amount is 150. Using one helper cell for each position can make a failed row or column match easier to diagnose than reading a single long expression.

Errors and unresolved input cases

The source documents #N/A for an unsuccessful search. Text-versus-number coercion, empty values, two-dimensional lookup arrays, duplicate handling in approximate modes and every invalid-mode error remain unverified by these scalar controls.

Use mode 0 explicitly for the unsorted original identifiers. Do not transfer a search-direction option from XMATCH or another product’s function into MATCH’s three documented modes.

Related guides already published for this function: Microsoft Excel | Google Sheets | LibreOffice Calc | Apache OpenOffice Calc | Gnumeric

Each product guide has a separate evidence scope; shared function names do not establish identical versions, matching rules or array behavior.

Evidence level: Full article reviewed against complete WPS function references. Original title, publication date, dataset and two formulas are preserved. Additional calculations and reference selections are independently modeled, not captured native results.