Whereas VLOOKUP is limited to lookups to the right of the lookup column, XLOOKUP can lookup values to the left natively. This means XLOOKUP can be used instead of INDEX and MATCH to find values to the left in a table or range.
In the example shown, we are looking for the weight associated with Model H in row 12. The formula in H6 is:
- The lookup_value comes from cell H4
- The lookup_array is the range E5:E14, which contains Model
- The return_array is B5:B14, which contains Weight
- The match_mode is not provided and defaults to 0 (exact match)
- The search_mode is not provided and defaults to 1 (first to last)
Lookup multiple values
XLOOKUP can return more than one value at a time from the same matching record. The formula in cell G9 is:
The only difference from the formula above is that return_array is entered as a range that contains more than one column, B5:D14.