By the Excel Wizard team
VLOOKUP has been the go-to lookup formula in Excel for decades, but XLOOKUP is more powerful, more flexible and easier to use. Here is how the two compare and when to use each one.
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]) searches the first column of a table and returns a value from a column number to the right. You must count columns and use FALSE for an exact match.
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode]) looks up a value in one range and returns the matching value from another range. Exact match is the default.
XLOOKUP can look left; VLOOKUP only looks to the right
XLOOKUP uses exact match by default, so fewer wrong answers
XLOOKUP does not break when you insert or delete columns
XLOOKUP has a built-in if_not_found argument, so no IFERROR needed
XLOOKUP can search from the bottom up and return multiple columns
VLOOKUP works in every Excel version; XLOOKUP needs Microsoft 365 or Excel 2021 and later
To find the price of product P-104 in a list where products are in column A and prices in column D: =XLOOKUP("P-104", A2:A500, D2:D500, "Not found"). The VLOOKUP version would be =IFERROR(VLOOKUP("P-104", A2:D500, 4, FALSE), "Not found").
If everyone who uses your workbook has Microsoft 365 or Excel 2021 or later, use XLOOKUP. If the file must work in Excel 2019 or older, use VLOOKUP or INDEX/MATCH.
This video compares both functions with practical examples.
Send us your workbook and an Excel expert will fix your VLOOKUP, XLOOKUP or INDEX/MATCH errors fast. Book a free 20-minute call or email Jayant@rggupta.com.