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 now

How 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

E2fx 
ABCDEF
1RunnerBibMinutes
2Lena204182
3Marek117187
4Nia350191
5Omar88199
6Priya412205
7
1

Nia is the third entry in the range.

Examples

Where is Nia in the list?

=MATCH("Nia",A2:A6,0)3

Nia is the third entry in the range.

Which position holds bib 88?

=MATCH(88,B2:B6,0)4

The 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))205

MATCH 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.

ABCDE
1RunnerBibMinutes
2Lena204182
3Marek117187
4Nia350191
5Omar88199
6Priya412205
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.