XLOOKUP in Apple Numbers
Short answer: XLOOKUP searches for a value in one column and returns the result from another column. Syntax:
XLOOKUP(search, search_range, return_range)Explanation
XLOOKUP searches for a value in one column and returns the result from another column. Unlike VLOOKUP you do not count a column number, and the return column can be on the left.
Syntax
XLOOKUP(search, search_range, return_range)Example
Look up the price of Kiwi with XLOOKUP.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
Formula: =XLOOKUP("Kiwi",A2:A5,B2:B5)
Result: 12
Frequently asked questions
What does XLOOKUP do in Apple Numbers?
XLOOKUP searches for a value in one column and returns the result from another column. Unlike VLOOKUP you do not count a column number, and the return column can be on the left.
What is the syntax of XLOOKUP?
The syntax is XLOOKUP(search, search_range, return_range).
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