Numbers Exercises

VLOOKUP in Apple Numbers

Last updated:

Short answer: VLOOKUP looks up a value in the first column of a range and returns the value from another column in the same row. Syntax: VLOOKUP(search-for, range, column, close-match)

Explanation

VLOOKUP looks up a value in the first column of a range and returns the value from another column in the same row. Use 0 for an exact match.

When do you use VLOOKUP?

Use VLOOKUP when you want to find a value, such as a product name, and return a related value from the same row.

Syntax

VLOOKUP(search-for, range, column, close-match)

Example

Look up the price of “Kiwi” using VLOOKUP.

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

Formula: =VLOOKUP("Kiwi",A2:C5,2,0)
Result: 12

Another example

Look up the quantity of Pear.

Formula: =VLOOKUP("Pear",A2:C5,3,0)
Result: 5

Watch out

VLOOKUP only searches the first column of the range. If the lookup value is somewhere else, use INDEX and MATCH.

Frequently asked questions

What does VLOOKUP do in Apple Numbers?

VLOOKUP looks up a value in the first column of a range and returns the value from another column in the same row. Use 0 for an exact match.

What is the syntax of VLOOKUP?

The syntax is VLOOKUP(search-for, range, column, close-match).

What does the last argument of VLOOKUP do?

It decides whether the match must be exact. With 0 (or FALSE) VLOOKUP only looks for an exact match.

Why do I get an error?

Usually the lookup value is not in the first column of the range, or it is spelled differently. Catch the error with IFERROR.

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