Professional Documents
Culture Documents
XLOOKUP Exercise
XLOOKUP Exercise
Age Name
12 John
13 Michael
14 Jake
12 Russel
16 Jack
15 Dan
Excel-Practice-
Online.com
Name: Jack Checking Tool:
Age <- Insert formula here
Use XLOOKUP to find the age of Jack
Age Name
12 John
13 Michael
14 Jake
12 Russel
16 Jack
15 Dan
Name: Jack
Age 16
Name: Dina
Favorite Color: <- Insert formula here
What is Dina's favorite color?
Note that some names appear more than once.
In case of duplicates, return last matching value.
Name: Dina
Favorite Color: Yellow Yellow
Method #1:
Yellow Yellow
Here we keep "not found" and "match mode" empty.
Method #2:
Yellow Yellow
Here we use "not found" message in our if_not_found argument
Method #3:
Yellow Yellow
Using match mode 0 means using exact match (default behavior)
Return all car details for the car with Plate Number 5544667
Formula:
#NAME? #NAME? #NAME? #NAME? #NAME?
In this example, we ask to look for the License Plate in cell B10,
Then we ask to lookup the value in range C4:C8.
Finally, we can return all the relevant data for this car by
higlighting range A4:E8, so Excel will return all the row if matched!
This magic happens using Excel Dynamic Arrays,
which allows returning multiple values!
What is Jacob's favorite food?
In case Jacob's name ins't in the table, return "Not found"
Name: Jacob
Favorite food: <- Insert formula here
What is Jacob's favorite food?
In case Jacob's name ins't in the table, return "Not found"
Name: Jacob
Favorite food: Not found
Quarter Q1 Q2 Q3 Q4
Revenue 174,310 139,722 154,988 181,816
Cost of sales 112,921 112,466 113,796 101,873
Gross Profit 61,389 27,256 41,192 79,943
Gross Profit
Quarter Q1 Q2 Q3 Q4
Revenue 174,310 139,722 154,988 181,816
Cost of sales 112,921 112,466 113,796 101,873
Gross Profit 61,389 27,256 41,192 79,943
Gross Profit
Q2 27,256
Solution: 27256
Date 1/4/2020
Date 1/4/2020
Solution:
To use approximate match, we can type -1 or 1 in match_mode argument.
-1 will return next smallest match (January 3rd)
1 will return next largest match (January 5th).