Limitations of VLOOKUP
Here are the limitations of VLOOKUP in this case:
- It assumes that your first array column is sorted. If it is not sorted, you can get wrong results using approximate match.
- VLOOKUP can only return the first match it finds. It will not return Michael Lee’s record after returning Shannon Lee [D].

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])
- lookup_value holds the value or cell reference of the data you know.
- lookup_array holds the range of the cells you want XLOOKUP to search.
- return_array holds the range of the location of the return You can specify multiple columns or rows if you wish, but they must be contiguous.
- if_not_found is optional and allows you to specify a custom error message when a search result is not found.
- match_mode is optional allows you to specify how Excel chooses a match. The default is exact match.
- search_mode allows you to specify a search order such as reverse search. The default search starts at the first item.
We want to look up complete records for employees by their last name. Here are the important elements of the calculation:
- We will type the name we are looking for in the orange cell, I11 [E]. The XLOOKUP will go in cell I14 [F].
- Our data is in a table named “Employees” and we want to search the Last Name column to find matches.
- We want to return a complete record for each match, so we can specify all columns in the table by using the table’s name: “Employees.” Unlike VLOOKUP, XLOOKUP can return values to the left of the search array.
- We only want exact matches returned.
- We want the text “No Such Name” returned when a match is not found.
- We will leave the match and search mode defaults.
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
- XLOOKUP allows you to find matches and return multiple values from the entire record, not just one cell within the record.
- You can also perform both horizonal and vertical lookups whereas before you would have to choose between VLOOKUP (vertical) or HLOOKUP (horizontal).
- XLOOKUP eliminates the dreaded left column lookup limitation of VLOOKUP. This is especially useful when your table changes and the return value is no longer in the same column number.
- XLOOKUP can search in reverse order, bottom to top as well as top to bottom which makes it easier to find the “last” or “first” of items in certain uses.
- Exact match is far more preferred than approximate match. XLOOKUP’s default of exact match is a sigh of relief for many.
- You can customize the error message so that you can tell the difference between a broken function and zero matches.
Disadvantages of XLOOKUP
- Just like VLOOKUP, XLOOKUP can only return the first match it finds. This can cause problems if you have records with the same data in the lookup array.
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.