INDEX and MATCH in Apple Numbers
INDEX(range, row, column) + MATCH(search-for, range, 0)Explanation
MATCH returns the position of a value in a list, INDEX returns the value at a position. Together they are a flexible alternative to VLOOKUP.
When do you use INDEX and MATCH?
Use INDEX with MATCH to look up a value when the lookup column does not have to be the first one.
Syntax
INDEX(range, row, column) + MATCH(search-for, range, 0)Example
Look up the price of “Pear” using INDEX and MATCH.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
Formula: =INDEX(B2:B5,MATCH("Pear",A2:A5,0))
Result: 6
Another example
Look up the quantity of Kiwi.
Formula: =INDEX(C2:C5,MATCH("Kiwi",A2:A5,0))
Result: 2
Watch out
The range in INDEX and the range in MATCH must cover the same rows, otherwise the result comes from the wrong row.
Frequently asked questions
What does INDEX and MATCH do in Apple Numbers?
MATCH returns the position of a value in a list, INDEX returns the value at a position. Together they are a flexible alternative to VLOOKUP.
What is the syntax of INDEX and MATCH?
The syntax is INDEX(range, row, column) + MATCH(search-for, range, 0).
What does MATCH do?
MATCH returns the position of a value in a list, for example 3 if the value is the third in the list.
Is INDEX and MATCH better than VLOOKUP?
It is more flexible because you can search in any column. VLOOKUP is shorter to type.
More in this category
Read more
- XLOOKUP in Numbers: A Better VLOOKUP, Step by Step
- Numbers vs Excel: Key Differences for New Users
- Reference Another Table in Numbers: The :: Syntax Explained
- VLOOKUP in Numbers: Look Up Values in a Table
Practise it yourself
Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.
Start practising