XLOOKUP left lookup
IntermediateSometimes the value you want is to the left of the value you have. VLOOKUP cannot return left, but XLOOKUP can.
XLOOKUP lets you pick the lookup column and the return column separately:
=XLOOKUP(lookup_value, lookup_array, return_array, "if_not_found")
Your task
You have a product table in A2:D5. The product name is in column B, but the SKU you want is in column A.
- In cell B8, return the SKU for the product in B7.
- If there is no match, return Not found.
Tip: Lock the table ranges with $ so the formula stays stable as you edit.
Need some help?
Answer
Exercise
XLOOKUP left lookup
IntermediateSometimes the value you want is to the left of the value you have. VLOOKUP cannot return left, but XLOOKUP can.
XLOOKUP lets you pick the lookup column and the return column separately:
=XLOOKUP(lookup_value, lookup_array, return_array, "if_not_found")
Your task
You have a product table in A2:D5. The product name is in column B, but the SKU you want is in column A.
- In cell B8, return the SKU for the product in B7.
- If there is no match, return Not found.
Tip: Lock the table ranges with $ so the formula stays stable as you edit.