0
0
Excelspreadsheet~20 mins

XLOOKUP function in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
XLOOKUP Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
What is the result of this XLOOKUP formula?
Given the table:

Product | Price
Apple | 1.2
Banana | 0.5
Cherry | 2.0

What is the output of the formula =XLOOKUP("Banana", A2:A4, B2:B4)?
ABanana
B0.5
C#N/A
D1.2
Attempts:
2 left
💡 Hint
XLOOKUP finds the matching value in the lookup array and returns the corresponding value from the return array.
Function Choice
intermediate
2:00remaining
Which XLOOKUP formula returns "Not found" if the item is missing?
You want to find the price of "Orange" in the list below. If "Orange" is not found, the formula should return "Not found".

Product | Price
Apple | 1.2
Banana | 0.5
Cherry | 2.0

Which formula does this correctly?
A=XLOOKUP("Orange", A2:A4, B2:B4, "Not found")
B=XLOOKUP("Orange", A2:A4, B2:B4)
C=XLOOKUP("Orange", A2:A4, B2:B4, 0)
D=XLOOKUP("Orange", A2:A4, B2:B4, NA())
Attempts:
2 left
💡 Hint
The fourth argument in XLOOKUP is the value to return if no match is found.
📊 Formula Result
advanced
2:00remaining
What is the output of this XLOOKUP with approximate match?
Given the table:

Score | Grade
0 | F
60 | D
70 | C
80 | B
90 | A

What is the result of =XLOOKUP(75, A2:A6, B2:B6, "No grade", 1)?
AB
BNo grade
CC
DD
Attempts:
2 left
💡 Hint
The 5th argument '1' means approximate match, looking for the next smaller value.
🎯 Scenario
advanced
2:00remaining
You want to find the last matching value using XLOOKUP. Which formula works?
You have a list of dates and sales amounts. You want to find the sales amount for the last date that matches "2024-01-15".

Which XLOOKUP formula returns the last matching sales amount?
A=XLOOKUP("2024-01-15", A2:A10, B2:B10, "Not found", 1, 1)
B=XLOOKUP("2024-01-15", A2:A10, B2:B10, "Not found", -1, 1)
C=XLOOKUP("2024-01-15", A2:A10, B2:B10, "Not found", 0, 1)
D=XLOOKUP("2024-01-15", A2:A10, B2:B10, "Not found", 0, -1)
Attempts:
2 left
💡 Hint
The 6th argument controls search direction: -1 searches from last to first.
data_analysis
expert
2:00remaining
How many items does this XLOOKUP formula return?
Given the table:

Item | Category
Pen | Office
Book | Office
Apple| Food
Milk | Food

What is the number of items returned by this formula?

=XLOOKUP({"Office","Food"}, B2:B5, A2:A5)
A2
B4
C1
D#VALUE! error
Attempts:
2 left
💡 Hint
XLOOKUP with an array lookup value returns an array of results, one for each lookup value.