
XLOOKUP in Excel: The Modern Alternative to VLOOKUP
XLOOKUP in Excel: The Modern Alternative to VLOOKUP
XLOOKUP was introduced in Microsoft 365 as a replacement for VLOOKUP — and it is better in almost every way. If you have access to it, XLOOKUP is simpler to write, more flexible, and handles edge cases that VLOOKUP cannot.
XLOOKUP Syntax
=XLOOKUP(lookup_value, lookup_array, return_array, if_not_found, match_mode, search_mode)
Only the first three arguments are required:
- lookup_value: What you are searching for
- lookup_array: Where to search (just the lookup column, not the whole table)
- return_array: What column to return values from
Why XLOOKUP Is Better Than VLOOKUP
- No column number needed: Instead of counting columns, you specify the return column directly.
- Can look left: VLOOKUP can only return columns to the right of the lookup column. XLOOKUP has no such restriction.
- Built-in error handling: The fourth argument lets you specify what to show when no match is found — no need for IFERROR wrapping.
- Exact match by default: No need to remember to set the last argument to FALSE.
- Can search from the end: Set search_mode to -1 to find the last match instead of the first.
A Practical Example
Product ID is in column A, Product Name in column B. To look up the name for a Product ID in cell D2: =XLOOKUP(D2, A:A, B:B, Not Found). Clean, readable, and handles missing matches gracefully.
Returning Multiple Columns
XLOOKUP can return an entire range of columns in one formula. For example, =XLOOKUP(D2, A:A, B:D) returns three columns simultaneously — name, category, and price — all from one formula. VLOOKUP requires a separate formula for each column.
Should You Switch?
If you use Microsoft 365 and collaborate with others who also have it, XLOOKUP is the better choice going forward. If you share files with users on older Excel versions, VLOOKUP remains the safe, universally compatible option.