Excel Xlookup Function
Excel Xlookup Function
Example
In cell H3, I have calculated the highest sales value of the songs listed in the table but I want to know the
name of the song, the artist and the year it was released.
The default setting for the match mode is Exact match and the default search mode is top-to-
bottom, so I could have left them out of the formulas in the example.
For the formulas in H5:H6 (to return the Artist and Year) all that needs to change are the column references
for the return_array.
This formula structure removes two of the limitations of VLOOKUP:
− it can search for items whichever column in the table they’re located in (to the right or left)
− it adjusts automatically if columns are added or removed from the table of data you’re searching.
search_mode
1 = search first to last
-1 = search last to first
2 = binary search (sorted in ascending order)
-2 = binary search (sorted in descending order)
For more information and examples of the XLOOKUP function, see the
The XLOOKUP function (Microsoft website)
wildcard-match-example (exceljet website)