The “new” XLOOKUP function was introduced in Excel 2021 and Office 365, and improves upon the heavily used VLOOKUP function in several ways. Let’s start by reviewing the syntax and an example of each function to understand the differences, starting with VLOOKUP.
VLOOKUP Syntax and Examples
Here is the syntax: VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])
We want to use VLOOKUP to find birthday information in an employee database by searching for last names. You might use this to fill out health insurance applications or retirement planning. Here are the important elements of the calculation:
Our function will then be: =VLOOKUP(I5,B2:D22,3,FALSE)When we type the name “Smith” into cell I5, it correctly returns Mary Smith’s birthday [C].Limitations of VLOOKUP
Here are the limitations of VLOOKUP in this case:

More about VLOOKUP:
XLOOKUP Syntax and Examples
Now let’s look the same example using XLOOKUP. Here is the syntax:
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
We want to look up complete records for employees by their last name. Here are the important elements of the calculation:
Our function will then be:
=XLOOKUP(I11,Employees[Last Name],Employees,"No Such Name")
Excel helps you view your array arguments by highlighting the lookup_array in red [G], and the return_array in purple [H] when editing your function.

Advantages of XLOOKUP
Disadvantages of XLOOKUP
When to Use VLOOKUP Instead of XLOOKUP?
XLOOKUP is rapidly replacing VLOOKUP and HLOOKUP as a superior option that performs the function of both, better. So, the short answer to this question is don’t. However, the long answer is more nuanced.
XLOOKUP is only available in versions of Excel released after 2021 and is not backward compatible. If you regularly share workbooks with partners who run older software, stick with VLOOKUP so they will be able to use the files.
Similarly, if you are maintaining data that was created pre-2021 using VLOOKUPs, continue to do so. You do not want to introduce mistakes by trying to update working functions when there is no need. If you do decide to reformat an older workbook, make sure you save and archive the original so that you can always return to if your update causes errors.
If you are hesitant to leave your favorite function behind, Pryor Learning has Excel courses available to help you make the leap and stay current with the best that Excel has to offer.