1. Lighthouse

Level 8 · Boss: update the kitchen price list

The request

From Rachel Ramirez, Merchandise Planner

“The March 1 kitchen price changes came through as a short list: only the products that change. I need the full kitchen list with the new price, the change in percent, and a label for each product, because raises of 6% or more need new shelf cards.”

Your goal

Step 1 of 3. In D2:D21, use XLOOKUP to find each product_id from column A in the change list H2:H7 and return its mar_1_price from I2:I7. Products that are not in the change list keep their February price, so use the February price in column C as the if_not_found value.

  • Fill D2:D21 with the right valuesnot done yet
  • With formulas, not typed numbersnot done yet
  • Use XLOOKUPnot done yet

Step 1 · your sheet

Excel
The sheet for this level
ABCDEFGHIJ
1product_idnamefeb_pricenew_pricechangelabel product_id mar_1_price
2141Thatcher Acacia Dutch Oven13.9915160.99
3142Upland Acacia Serving Platter36.99158179.00
4143Pine Cast Iron Carafe269.0015019.99
5144Hazel Porcelain Cutting Board129.00143289.00
6145Cove Cast Iron Dutch Oven10.9914616.99
7146Thatcher Cast Iron Bowl Set15.9914238.99
8147Cedar Cast Iron Tumbler Set79.99
9148Spruce Enamel Utensil Set239.00Big raise from6%
10149Hazel Stainless Dutch Oven109.00
11150Linden Enamel Serving Platter18.99
12151Glen Stoneware Carafe57.99
13152Monroe Stoneware Utensil Set13.99
14153Alder Acacia Dutch Oven72.99
15154Vale Enamel Bowl Set11.99
16155Tidewater Stainless Wine Glasses169.00
17156Willow Acacia Knife Block53.99
18157Oakley Enamel Dutch Oven109.00
19158Hazel Porcelain Serving Platter169.00
20159Driftwood Porcelain Carafe179.00
21160Fairhaven Stoneware Cutting Board70.99
22
23

Loading the editor…

    ResultPress Check to compare D2:D21

    Mote checks your result

    Press Check. Each right cell becomes a firefly in your lantern.

    Step 2 · your sheet

    Excel
    The sheet for this level
    ABCDEFGHIJ
    1product_idnamefeb_pricenew_pricechangelabel product_id mar_1_price
    2141Thatcher Acacia Dutch Oven13.9913.9915160.99
    3142Upland Acacia Serving Platter36.9938.99158179.00
    4143Pine Cast Iron Carafe269.00289.0015019.99
    5144Hazel Porcelain Cutting Board129.00129.00143289.00
    6145Cove Cast Iron Dutch Oven10.9910.9914616.99
    7146Thatcher Cast Iron Bowl Set15.9916.9914238.99
    8147Cedar Cast Iron Tumbler Set79.9979.99
    9148Spruce Enamel Utensil Set239.00239.00Big raise from6%
    10149Hazel Stainless Dutch Oven109.00109.00
    11150Linden Enamel Serving Platter18.9919.99
    12151Glen Stoneware Carafe57.9960.99
    13152Monroe Stoneware Utensil Set13.9913.99
    14153Alder Acacia Dutch Oven72.9972.99
    15154Vale Enamel Bowl Set11.9911.99
    16155Tidewater Stainless Wine Glasses169.00169.00
    17156Willow Acacia Knife Block53.9953.99
    18157Oakley Enamel Dutch Oven109.00109.00
    19158Hazel Porcelain Serving Platter169.00179.00
    20159Driftwood Porcelain Carafe179.00179.00
    21160Fairhaven Stoneware Cutting Board70.9970.99
    22
    23

    Loading the editor…

      ResultPress Check to compare E2:E21

      Mote checks your result

      Press Check. Each right cell becomes a firefly in your lantern.

      Step 3 · your sheet

      Excel
      The sheet for this level
      ABCDEFGHIJ
      1product_idnamefeb_pricenew_pricechangelabel product_id mar_1_price
      2141Thatcher Acacia Dutch Oven13.9913.990.0%15160.99
      3142Upland Acacia Serving Platter36.9938.995.4%158179.00
      4143Pine Cast Iron Carafe269.00289.007.4%15019.99
      5144Hazel Porcelain Cutting Board129.00129.000.0%143289.00
      6145Cove Cast Iron Dutch Oven10.9910.990.0%14616.99
      7146Thatcher Cast Iron Bowl Set15.9916.996.3%14238.99
      8147Cedar Cast Iron Tumbler Set79.9979.990.0%
      9148Spruce Enamel Utensil Set239.00239.000.0%Big raise from6%
      10149Hazel Stainless Dutch Oven109.00109.000.0%
      11150Linden Enamel Serving Platter18.9919.995.3%
      12151Glen Stoneware Carafe57.9960.995.2%
      13152Monroe Stoneware Utensil Set13.9913.990.0%
      14153Alder Acacia Dutch Oven72.9972.990.0%
      15154Vale Enamel Bowl Set11.9911.990.0%
      16155Tidewater Stainless Wine Glasses169.00169.000.0%
      17156Willow Acacia Knife Block53.9953.990.0%
      18157Oakley Enamel Dutch Oven109.00109.000.0%
      19158Hazel Porcelain Serving Platter169.00179.005.9%
      20159Driftwood Porcelain Carafe179.00179.000.0%
      21160Fairhaven Stoneware Cutting Board70.9970.990.0%
      22
      23

      Loading the editor…

        ResultPress Check to compare F2:F21

        Mote checks your result

        Press Check. Each right cell becomes a firefly in your lantern.

        The lesson

        A short list applied to a long one

        Price changes rarely arrive as a full new catalog. Someone sends the products that change, and the analyst applies them to the full list. This boss level does that for the twenty Harbor & Pine kitchen products, using everything from the chapter: a lookup with a fallback, a formula filled down, and an IFS rule with its bands in the right order.

        The sheet holds the kitchen list in A1:C21, with each product’s February price (the last price it sold at before March 1). The change list Rachel received is in H1:I7: six product ids and their price from March 1, sorted by name, not by id. The threshold for a big raise is in I9. Columns D, E and F are yours.

        Step 1: new prices with a fallback

        D2   =XLOOKUP(A2,$H$2:$H$7,$I$2:$I$7,C2)

        Product 142 is in the change list, so D3 returns its March price, 38.99. Product 141 isn’t, so D2 falls back to C2, its own February price of 13.99. The fallback is a cell, not text: “not in the change list” means “price unchanged”, and the unchanged price is right there on the row. The change list is locked with $ because every row searches the same six rows; C2 stays relative so each row falls back to its own price.

        Step 2: the change in percent

        E2   =D2/C2-1

        Dividing the new price by the old one gives 1.0541 for product 142; subtracting 1 leaves 0.0541, which the percentage format shows as 5.4%. Unchanged products give exactly 0. Don’t multiply by 100: the format already does that for display, and the threshold in I9 is stored as 0.06.

        Step 3: labels with IFS

        F2   =IFS(E2<0,"cut",E2=0,"same",E2>=$I$9,"big raise",TRUE,"raise")

        As with the shipping bands in level 1, the order of the pairs is the rule. “big raise” must come before the catch-all TRUE, or every raise would stop at “raise”. Fourteen products come out “same”, four “raise” and two “big raise”: the Pine Cast Iron Carafe (143) at 7.4% and the Thatcher Cast Iron Bowl Set (146) at 6.3%. Those two need new shelf cards.

        Thinking like an analyst

        There are no cuts in this price list, yet the formula tests for them. A rule is written for every list that will pass through the sheet, not just this one. Run two sanity checks before you send it:

        • The labels add up: 14 + 4 + 2 is 20, one per product.
        • The number of changed prices matches the change list: six rows in H2:H7, six products not labelled “same”. If those two counts disagreed, an id in the change list would be missing from the kitchen list, or typed as text.

        Common mistakes

        • No fallback in step 1: fourteen #N/A cells, which spread into columns E and F.
        • A text fallback such as "unchanged": step 2 then divides text and shows #VALUE!.
        • =(D2-C2)/C2*100 on a percent-formatted column: 5.4% shows as 540.7%.
        • Testing E2>0 for “raise” before E2>=$I$9: the big raises never get their label.

        Pick what may run on this site. You can change this any time from "Cookie settings" at the bottom of every page.