VLOOKUP in Apple Numbers
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.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
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