Free demo · Microsoft Excel · Lesson 3 · Intermediate · Lookups
XLOOKUP: find any value in a table
Give XLOOKUP what to find, where to look and what to bring back. It searches the table and returns the matching value.
fx=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found])
E2lookup_value: what to find (code P03)A2:A6lookup_array: where to look (the codes)C2:C6return_array: what to bring back (the prices)[if_not_found]optional message, e.g."Not listed"
Why XLOOKUP beats VLOOKUP
- ✓ Exact match by default
- ✓ Looks left or right of the lookup column
- ✓ Doesn't break when you insert columns