XLOOKUP (Excel 365/2021) is the modern successor to VLOOKUP — simpler, more flexible, and free of VLOOKUP's biggest limitations. If you have it, prefer it.
The syntax
=XLOOKUP(A2, Products[ID], Products[Price])│ │ └ the column to return from│ └ the column to search└ the value to find=XLOOKUP(A2, IDs, Prices, "Not found") optional: if-not-found value
Why it's better
Key takeaways
- 01XLOOKUP is the modern replacement: XLOOKUP(lookup, lookup_array, return_array).
- 02It can look left or right — lookup and return columns are independent.
- 03It defaults to exact match and has a built-in if-not-found argument.
- 04Prefer XLOOKUP where available; know VLOOKUP for older workbooks.
