Excel Function

MATCH

Returns relative position of lookup value in a range.

MATCH(lookup_value, lookup_array, [match_type])

Arguments

lookup_value

Required

Enter the value you want to look up.

lookup_array

Required

Specify the row/column range where the lookup key is searched.

match_type

Optional

Set MATCH behavior: 0 = exact, 1/omitted = largest value less than or equal (ascending), -1 = smallest value greater than or equal (descending).

Practice Preview

Use MATCH to return the result with these settings (Lookup value: B2 (cell B2 (Product Name in column B)), Lookup array: B2:B8 (Product Name in column B), Match type: 0 (exact match)). You can set ranges by dragging from the start cell to the end cell in the same argument field.

Example Table

#
AProduct ID
BProduct Name
CPrice
DStock
2P001Apple12080
3P002Banana98120
4P003Notebook45035
5P004Pen30060
6P005Grapes15045
7P006Ruler25020
8P007Peach8655

How to Use (Formula)

=MATCH(B2, B2:B8, 0)

Result

1

Practice This Function

MATCH FAQ

How do I use MATCH in Excel?

Use MATCH when you want to return the position of a match. Enter Lookup value, Lookup array, Match type in that order, then add optional arguments when needed.

Where can I practice MATCH?

Use the "Start Function Practice" button to jump straight into MATCH drills.

What arguments does MATCH use?

The main arguments are Lookup value, Lookup array, Match type. Start with the required ones, then add optional arguments if needed.