Excel MATCH
MATCH tells you where a value sits in a list, as a number, rather than returning the value itself.
A race organizer has bib numbers from the finish line and a results sheet. Knowing a runner is third in the list is a small fact, but it is exactly what INDEX needs. Together the two functions make a lookup that works in any direction and in every version of Excel.
Practice it nowHow to write it
=MATCH(lookup_value, lookup_array, [match_type])- lookup_value
- What to find.
- lookup_array
- A single row or column to search.
- match_type
- Use 0 for an exact match.
Watch it work
Examples
Where is Nia in the list?
=MATCH("Nia",A2:A6,0)3Nia is the third entry in the range.
Which position holds bib 88?
=MATCH(88,B2:B6,0)4The result is a position in the range, not a row of the sheet.
Finish time for bib 412
=INDEX(C2:C6,MATCH(412,B2:B6,0))205MATCH finds the position and INDEX reads that position from another column.
Your turn
Find the position of bib 117 in the Bib column. Type your formula in E2.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Runner | Bib | Minutes | ||
| 2 | Lena | 204 | 182 | ||
| 3 | Marek | 117 | 187 | ||
| 4 | Nia | 350 | 191 | ||
| 5 | Omar | 88 | 199 | ||
| 6 | Priya | 412 | 205 | ||
| 7 |
Common mistakes
Leaving out the 0.
The default expects a sorted list and may give a wrong position.
Searching a block with several columns.
MATCH needs one row or one column.
Good to know
- Use ISNUMBER(MATCH(...)) to ask whether an item appears in another list.
- Two MATCH calls inside INDEX give a two-way lookup by row and column heading.
- MATCH or XMATCH? XMATCH defaults to exact match and can search from the end, but it needs Excel 2021 or Microsoft 365.
Excelio