Numbers Exercises

INDEX and MATCH in Apple Numbers

Last updated:

Short answer: MATCH returns the position of a value in a list, INDEX returns the value at a position. Syntax: 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.

Table 1
ABC
1ProductPriceQty
2Apple410
3Pear65
4Kiwi122
5Grape83

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

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