VLOOKUP vs XLOOKUP

VLOOKUP has been the standard lookup function for decades, but XLOOKUP is a modern replacement that fixes many of VLOOKUP's limitations. If you have Excel 365 or Excel 2021, XLOOKUP is usually the better choice.

Side-by-Side Comparison

AspectVLOOKUPXLOOKUP
Lookup directionOnly searches to the right of the lookup columnCan search left or right of the return column
Default matchApproximate match (TRUE) unless FALSE is specifiedExact match by default
Insert/delete safetyColumn index breaks when columns are inserted or deletedUses direct column reference, so column changes are safe
Return multiple valuesCan only return one valueCan return an array of values
Error handlingRequires IFERROR or IFNA wrapped around itBuilt-in if_not_found argument
Wildcard searchSupported with FALSE for exact matchSupported with match_mode 2
AvailabilityAll Excel versionsExcel 365, Excel 2021, and Google Sheets

When to Use Each

Use VLOOKUP

Use VLOOKUP when you share files with users on older Excel versions (pre-2021) or when the return value is always in a column to the right of the lookup column.

Use XLOOKUP

Use XLOOKUP whenever it is available. It is more flexible, safer, and easier to read.

Verdict

XLOOKUP is the clear winner for modern Excel users. Only use VLOOKUP for backward compatibility with older versions.

Frequently Asked Questions

Can XLOOKUP replace VLOOKUP in all cases?
Almost all VLOOKUP use cases can be replaced by XLOOKUP, except for 2D array lookups in older versions.
Is VLOOKUP deprecated?
No, Microsoft still supports VLOOKUP, but XLOOKUP is recommended for new work.