WorkbookLogic
FunctionLookup and referenceintermediateMATCHIF

MATCH Function

By WorkbookLogic

The Excel MATCH function returns a value's relative position in a one-dimensional range or array. It supports exact matching and two sorted approximate-match modes.

ExcelLast reviewed Sep 11, 2026
match-function-v1.0.0.xlsx
Excel MATCH Function
Find the relative position of a value in a one-dimensional range using exact or approximate matching.
Sorted thresholds, editableMATCH examples
ThresholdBandExampleLookup valueMatch typeFormula syntaxPosition
0EntryExact threshold700=MATCH(F12,$A$12:$A$16,G12)3
50DevelopingApproximate score821=MATCH(F13,$A$12:$A$16,G13)3
70ProficientExact upper threshold950=MATCH(F14,$A$12:$A$16,G14)5
85Advanced
95ExpertHow to read the examples
MATCH returns a relative position, not the source value.
Match type 0 requires an exact match.
Match type 1 requires ascending order and returns the lower threshold position.
Reliability checks
Exact lookup 70 returns position 3OK
Approximate lookup 82 returns the lower threshold position 3OK

Overview

The Excel MATCH function finds where an item appears within a single row or column. It returns a one-based position—not the matched value and not the worksheet row or column number.

Quick reference

Syntax: =MATCH(lookup_value, lookup_array, [match_type])

Returns: The one-based position of the matched item within lookup_array. (number)

Arguments:

  • lookup_value (required) — The value or pattern to locate.
  • lookup_array (required) — The one-dimensional row or column searched by MATCH.
  • match_type (optional) — 0 finds an exact match; 1 finds the largest value less than or equal to the lookup value; -1 finds the smallest value greater than or equal to it. Omission defaults to 1.

The bracketed match_type argument is optional and defaults to 1, an approximate match. Use 0 for an exact match unless sorted approximate matching is intentional.

Common uses

  • Find the relative position of a code, name, date, or threshold.
  • Supply a dynamic row or column number to INDEX.
  • Assign scores to ascending lower-bound bands.
  • Locate a matching column header for a two-way lookup.

Calculations

MATCH searches lookup_array and reports the matched item's position relative to the start of that array. If the range is A12:A16, cell A12 is position 1 even though it is worksheet row 12.

Match type 0 requires an exact match and does not require sorting. Match type 1 finds the largest value less than or equal to the lookup value and requires ascending order. Match type -1 finds the smallest value greater than or equal to the lookup value and requires descending order.

Because omitted match_type defaults to 1, leaving it out can create a convincing but incorrect approximate result. MATCH is not case-sensitive, returns the first match among duplicates, and supports text wildcards only in exact mode.

Function behavior

Match type

Required order

Result

0

None

First value exactly equal to lookup_value.

1

Ascending

Largest value less than or equal to lookup_value.

-1

Descending

Smallest value greater than or equal to lookup_value.

Omitted

Ascending

Same behavior as match type 1.

Additional behavior:

Situation

Behavior

No valid match

Returns #N/A.

Duplicate exact values

Returns the first match.

Text case

Matching is not case-sensitive.

Wildcards

* and ? work with text in exact mode; ~ escapes a wildcard.

Two-dimensional range

Not accepted as a normal lookup array; select one row or one column.

Value below the smallest ascending threshold

Match type 1 returns #N/A.

Common errors

Omitting match_type for an exact lookup

What happens:
MATCH defaults to approximate mode and can return a nearby position instead of #N/A.

Better approach:
Specify 0 whenever equality is required.

Using match type 1 on unsorted values

What happens:
The returned position can be wrong without an obvious error.

Better approach:
Sort ascending before using 1, or use exact mode.

Treating the result as a worksheet row

What happens:
Downstream formulas point to the wrong location.

Better approach:
Interpret the result relative to the first cell in lookup_array.

Searching a two-dimensional table

What happens:
MATCH cannot determine one linear position.

Better approach:
Select the key column or header row, or use separate MATCH formulas for row and column positions.

Example

Example 1 — Exact Position

=MATCH(F12,$A$12:$A$16,G12)

With lookup value 70 and match type 0, the workbook returns position 3.

Example 2 — Ascending Approximate Position

=MATCH(F13,$A$12:$A$16,G13)

With lookup value 82 and match type 1, MATCH returns position 3, the position of lower boundary 70.

Example 3 — Another Exact Match

=MATCH(F14,$A$12:$A$16,G14)

Threshold 95 is the fifth item in the selected range, so the result is 5.

Example workbook

The workbook contains a MATCH Example sheet with five editable ascending thresholds and three live formulas. It demonstrates exact positions and an ascending approximate lower-bound match, while two checks reconcile the exact and approximate results. A Notes sheet explains match types, sorting, and relative positions.

Key takeaway

Set match type explicitly: use 0 for exact lookup, or use a sorted array when choosing one of the two approximate modes.