Google Sheets MATCH function
Returns the position of a value within a row or column.
Syntax
=MATCH(search_key, range, [search_type])
search_key | The value to find. |
|---|---|
range | A single row or column to search. |
search_type | Optional. 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
Result: 3
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | SKU | Item | Price | Find SKU | |
| 2 | P-100 | Pens | 2 | P-300 | |
| 3 | P-200 | Paper | 5 | ||
| 4 | P-300 | Ink | 15 | ||
| 5 | P-400 | Stapler | 12 | ||
| 6 | P-500 | Tape | 3 |
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
- MATCH returns a position, not a value. Feed that position to INDEX to fetch the value.
- Use 0 for exact matching unless your list is sorted and you want the nearest match.