XLOOKUP practice exercises (free, checked instantly)
No download, no sign-up3 exercises · checked instantly
XLOOKUP does what VLOOKUP does with less to remember, and a couple of things VLOOKUP can't. These exercises cover the three you'll use most: a normal lookup filled down, a lookup to the left (a SKU from a product name) and a built-in “Not found” for a key that isn't in the list. Each is checked on our server against the answer key and changed data.
Quick refresher
XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found]) searches one column and returns the value on the same row of another, in either direction. Exact match is the default. The fourth argument replaces #N/A when nothing matches. It needs Excel 2021 or later, Microsoft 365 or Google Sheets. See the XLOOKUP function reference and XLOOKUP vs INDEX MATCH.
- 1
Fill in each order's Product with XLOOKUP, starting in D2: search the SKUs (G2:G8) for B2 and return the products (H2:H8).
- Use XLOOKUP
Select D2 and type = to start its formula (in the cell or the formula bar)A B C D E F G H I J 1 Order SKU Qty Product SKU Product Price Stock 2 2001 PL-104 2 PL-101 Fern $9.50 40 3 2002 PT-210 1 PL-104 Monstera $34.00 12 4 2003 TL-301 3 PL-107 Snake plant $22.00 25 5 2004 PL-101 1 PT-210 Terracotta pot $12.50 60 6 2005 SL-401 4 PT-212 Ceramic pot $19.00 18 7 2006 PL-104 1 TL-301 Watering can $18.00 9 8 2007 PT-212 2 SL-401 Potting mix $7.25 80 9 2008 PL-107 1 - 2
Look left with XLOOKUP: find the SKU (G2:G8) for the product named in M1 by searching the products (H2:H8). Answer in M2.
- Use XLOOKUP
Select M2 and type = to start its formula (in the cell or the formula bar)A B C D E F G H I J K L M 1 Order SKU Qty SKU Product Price Stock Product Fern 2 2001 PL-104 2 PL-101 Fern $9.50 40 SKU 3 2002 PT-210 1 PL-104 Monstera $34.00 12 4 2003 TL-301 3 PL-107 Snake plant $22.00 25 5 2004 PL-101 1 PT-210 Terracotta pot $12.50 60 6 2005 SL-401 4 PT-212 Ceramic pot $19.00 18 7 2006 PL-104 1 TL-301 Watering can $18.00 9 8 2007 PT-212 2 SL-401 Potting mix $7.25 80 9 2008 PL-107 1 - 3
Order 2008 has a SKU that isn't in the price list. Look up the Product for each order in D2 with XLOOKUP, showing "Not found" when the SKU is missing.
- Use XLOOKUP
Select D2 and type = to start its formula (in the cell or the formula bar)A B C D E F G H I J 1 Order SKU Qty Product SKU Product Price Stock 2 2001 PL-104 2 PL-101 Fern $9.50 40 3 2002 PT-210 1 PL-104 Monstera $34.00 12 4 2003 TL-301 3 PL-107 Snake plant $22.00 25 5 2004 PL-101 1 PT-210 Terracotta pot $12.50 60 6 2005 SL-401 4 PT-212 Ceramic pot $19.00 18 7 2006 PL-104 1 TL-301 Watering can $18.00 9 8 2007 PT-212 2 SL-401 Potting mix $7.25 80 9 2008 PL-999 1
What these exercises check
The exercises cover a lookup filled down a column, a lookup to the left (which VLOOKUP can't do), and a missing key handled with if_not_found. Each is graded on our server against the answer key and changed data. These are the three XLOOKUP patterns that cover most real lookups: prices, names, managers, statuses.
Common mistakes
- Lookup and return ranges on different rows, which return a neighbour's value.
- Forgetting the
$on both ranges before filling down. - Hiding a missing key with IFERROR, which also hides broken formulas.
Tips
- Keep lookup_array and return_array on the same rows.
- Lock both ranges with
$before filling down. - Use if_not_found for a clear message instead of hiding misses with IFERROR.
Updated . Answers are checked on our server against the course's answer key and against changed data; nothing you type is stored.
Practise XLOOKUP on a live sheet
Lesson 17, XLOOKUP (Unit 4, Lookups), has 1 more graded exercise, checked instantly, with steps and hints when you're stuck. Pro