The Excel MATCH function
MATCH returns the position of a value in a row or column, not the value itself: =MATCH(lookup_value, lookup_array, match_type). Use 0 as the match type for exact matches.
What does MATCH return?
With "Laptop", "Phone" and "Tablet" in A2:A4:
=MATCH("Phone",A2:A4,0)
returns 2, because Phone is the second item in the range, not because it is in row 3.
What do match types 0, 1 and -1 mean?
| Match type | Finds | The range must be |
|---|---|---|
0 | exact match | any order |
1 (default) | largest value ≤ lookup value | sorted ascending |
-1 | smallest value ≥ lookup value | sorted descending |
Why does MATCH return #N/A?
The value is not in the range, or it differs slightly: extra spaces, a number stored as text, or a typo. TRIM and VALUE fix the first two.
What is MATCH used for?
Mostly together with INDEX, to build a lookup that can go in any direction. It also finds which column a header is in, which is the basis of a two-way lookup.
Try it yourself. Practise this in a real spreadsheet in your browser, with instant feedback.
Practise MATCH
Practise MATCH
Updated November 2026.