Excel functions / Lookup & reference

MATCH

Returns the position of a value in a list.

Syntax=MATCH(lookup_value, lookup_array, [match_type])

Arguments

lookup_valueWhat you are searching for.
lookup_arrayThe single column or row to search.
match_type0 for an exact match. Always use 0 unless the list is sorted and you want the nearest value.

How it works

MATCH does not return the value itself. It tells you where it is: 1 for the first item, 2 for the second, and so on.

That position is exactly what INDEX needs, which is why the two are so often used together.

Example

F2=MATCH("C30",A2:A5,0)
ABCDEF
1CodeProductPriceStock
2A10Lamp$25.00123
3B20Desk$140.003
4C30Chair$85.007
5D40Shelf$60.000
6

Result: 3. C30 is the 3rd code in the list.

Tips

Practise MATCH

Try it yourself in a real spreadsheet, with instant feedback on every answer.

Start the exercise

Related