Skip to content

Lessons in your language are coming soon. Formulas already work in your Excel language.

This page isn't translated yet, so its text is in English. Function names and formulas are shown in your Excel language.

Excel function · INDEX and MATCH

MATCH

Finds where a value sits in a list and returns its position as a number.

What it does

MATCH looks for a value in one row or column and tells you its position: 1 for the first item, 2 for the second, and so on. It doesn't return the value itself, which is why it is usually wrapped in INDEX.

Syntax

=MATCH(lookup_value, lookup_array, [match_type])

Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ,

Arguments

lookup_value
What to look for, usually a cell.
lookup_array
The single row or column to search.
match_type
0 for an exact match. 1, or leaving it out, finds the largest value that is less than or equal in a list sorted smallest first; -1 does the opposite for a list sorted largest first.

Example

Kai is on the guest list. At what position?

ABCD
1GuestLook forPosition
2AnaKai3
3Ben
4Kai
5Lia

The formula in D2:

=MATCH(C2,A2:A5,0)

Result: 3

Kai is the third name in A2:A5, so the result is 3. The position counts from the start of the range, not from row 1 of the sheet.

Common mistakes

  • Leaving out the 0. The default is an approximate match on a sorted list, so on an unsorted list it can return a wrong position without any error.
  • Searching a range with several columns. MATCH needs one row or one column.
  • Expecting the value back. MATCH returns a position; use INDEX to turn it into a value.

In other Excel languages

Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.

Excel languageFunction nameSeparator
EnglishMATCH,
DeutschVERGLEICH;
FrançaisEQUIV;
Español (España)COINCIDIR;
Español (México)COINCIDIR,
日本語MATCH,
한국어MATCH,
繁體中文MATCH,
ไทยMATCH,
ខ្មែរMATCH,
Tiếng ViệtMATCH;

Practise it

More from this module

All functions