Lookup function

Google Sheets MATCH function

Returns the position of a value within a row or column.

Syntax

=MATCH(search_key, range, [search_type])
search_keyThe value to find.
rangeA single row or column to search.
search_typeOptional. 0 for an exact match. 1 (default) for the largest value ≤ key in an ascending list, -1 for the smallest value ≥ key in a descending list.

Try it

Edit the formula and the result updates instantly. Click a cell to add its reference.

▦ Price list
fx
Result: 3
ABCDE
1SKUItemPriceFind SKU
2P-100Pens2P-300
3P-200Paper5
4P-300Ink15
5P-400Stapler12
6P-500Tape3

Examples

These use the sample sheet above.

→ 3

Ink is the 3rd item in the list.

→ 3

Find the position of the SKU in E2.

Tips & common mistakes

Related functions