Explanation
Introduction
A key limitation ofVLOOKUPis it can only look up values to theright.
Notice zero (0) is provided as the last argument to force an exact match.
Effectively, we have swapped columns 1 and 3.
This formula shows how INDEX and MATCH can be more flexible than VLOOKUP.
With XLOOKUP
XLOOKUP also provides a very good solution.
Because XLOOKUP performs an exact match by default, there is no need to set the match mode explicitly.
The values provided to CHOOSE can include references.
you’ve got the option to use INDEX to retrieve individual values, or entire rows and columns.
MATCH supports approximate and exact matching, andwildcards(* ?)
XLOOKUP supports approximate and exact matching, wildcards (* ?)