AnalystPracticeGuides
DashboardSign up

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.

Watch it solved. Task 9: MATCH inside a two-way lookup, from 6:20, in our video “Excel Interview Questions and Answers: 10 Practical Tasks, Solved”. Pressing play loads the video from YouTube (privacy). Open on YouTube

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 typeFindsThe range must be
0exact matchany order
1 (default)largest value ≤ lookup valuesorted ascending
-1smallest value ≥ lookup valuesorted 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

Updated November 2026.

← All free guides