formulastreak

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. 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)
    ABCDEFGHIJ
    1OrderSKUQtyProductSKUProductPriceStock
    22001PL-1042PL-101Fern$9.5040
    32002PT-2101PL-104Monstera$34.0012
    42003TL-3013PL-107Snake plant$22.0025
    52004PL-1011PT-210Terracotta pot$12.5060
    62005SL-4014PT-212Ceramic pot$19.0018
    72006PL-1041TL-301Watering can$18.009
    82007PT-2122SL-401Potting mix$7.2580
    92008PL-1071
  2. 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)
    ABCDEFGHIJKLM
    1OrderSKUQtySKUProductPriceStockProductFern
    22001PL-1042PL-101Fern$9.5040SKU
    32002PT-2101PL-104Monstera$34.0012
    42003TL-3013PL-107Snake plant$22.0025
    52004PL-1011PT-210Terracotta pot$12.5060
    62005SL-4014PT-212Ceramic pot$19.0018
    72006PL-1041TL-301Watering can$18.009
    82007PT-2122SL-401Potting mix$7.2580
    92008PL-1071
  3. 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)
    ABCDEFGHIJ
    1OrderSKUQtyProductSKUProductPriceStock
    22001PL-1042PL-101Fern$9.5040
    32002PT-2101PL-104Monstera$34.0012
    42003TL-3013PL-107Snake plant$22.0025
    52004PL-1011PT-210Terracotta pot$12.5060
    62005SL-4014PT-212Ceramic pot$19.0018
    72006PL-1041TL-301Watering can$18.009
    82007PT-2122SL-401Potting mix$7.2580
    92008PL-9991

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

Tips

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