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.
Returns relative position of lookup value in a range.
MATCH(lookup_value, lookup_array, [match_type])lookup_value
RequiredEnter the value you want to look up.
lookup_array
RequiredSpecify the row/column range where the lookup key is searched.
match_type
OptionalSet MATCH behavior: 0 = exact, 1/omitted = largest value less than or equal (ascending), -1 = smallest value greater than or equal (descending).
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.
| # | AProduct ID | BProduct Name | CPrice | DStock |
|---|---|---|---|---|
| 2 | P001 | Apple | 120 | 80 |
| 3 | P002 | Banana | 98 | 120 |
| 4 | P003 | Notebook | 450 | 35 |
| 5 | P004 | Pen | 300 | 60 |
| 6 | P005 | Grapes | 150 | 45 |
| 7 | P006 | Ruler | 250 | 20 |
| 8 | P007 | Peach | 86 | 55 |
How to Use (Formula)
=MATCH(B2, B2:B8, 0)Result
1
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.
Use the "Start Function Practice" button to jump straight into MATCH drills.
The main arguments are Lookup value, Lookup array, Match type. Start with the required ones, then add optional arguments if needed.