Excel MATCH Function
MATCH searches a one-dimensional range and returns the position of the matched item.
Use it when you need a lookup value's position so another formula can pull corresponding data from the same relative position in a related row or column.
MATCH syntax & arguments
Syntax
=MATCH(lookup_value, lookup_array, [match_type])
-
1
lookup_value
RequiredThe value to find in the lookup array. It can be text, a number, a cell reference, or another formula result.
-
2
lookup_array
RequiredThe single row or single column where Excel should search for
lookup_value. -
3
match_type
OptionalControls how Excel matches the lookup value:
0— Exact match: Returns the position only when MATCH finds the lookup value exactly.1— Less than: Returns the largest value less than or equal to the lookup value. This is the default and requires ascending sort order.-1— Greater than: Returns the smallest value greater than or equal to the lookup value and requires descending sort order.
Example
=MATCH("West", A2:A20, 0)
Return the position of the exact match for "West" within A2:A20.
MATCH caveats
-
It returns a position, not a value
MATCH returns the matched item's relative position, not the item itself. Pair it with INDEX when you need to return data from that position.
-
Missing matches return an error
With exact matching, a lookup value that is not present returns
#N/A. -
Exact match is not the default
If
match_typeis omitted, Excel uses1, which is an approximate match mode. -
Approximate modes require sorted data
Use ascending sort order for
1and descending sort order for-1. Unsorted data can produce incorrect positions. -
The lookup array must be one-dimensional
MATCH searches a single row or a single column. It is not designed to scan a full two-dimensional table by itself.
Need exact matching by default or reverse search? Use XMATCH for a modern position lookup with configurable match and search modes.
Intro MATCH practice problem
Solve the intro problem directly here, or open it on its own page.
Advanced MATCH practice problems
Use MATCH alongside other Excel functions in realistic, less-prescriptive challenges.
Promo Eligibility Check
Project Due Dates
Best Guess
Country-Specific Date Display
Forecast Gap
Monthly Rate Lookup
Monthly Value Finder
Order Totals
Price With Discount
Race Podium Names
Team Period Average
Top Team Rep