1. Lighthouse

Level 6 · Boss: compare February's price list with today's catalog

The request

From Thomas Whitaker, Head of Merchandising

“I'm signing off the spring Decor prices. I have today's catalog and February's price list from the order system, and they don't line up. Which products are new since February, which February products are gone, and whose price moved, by how much?”

Your goal

Step 1 of 4. Flag the products missing from the other list. In D3:D19, write "yes" when the catalog product's id appears in February's list (A23:A38) and "no" when it doesn't. In D23:D38, the same the other way: "yes" when February's product is still in the catalog (A3:A19), "no" when not. Use IF around COUNTIF.

  • Fill D3:D19, D23:D38 with the right valuesnot done yet
  • With formulas, not typed numbersnot done yet
  • Use COUNTIFnot done yet

Step 1 · your sheet

Excel
The sheet for this level
ABCDEFGHI
1Catalog today (active Decor)
2product_idnamelist_priceon_feb_listfeb_pricechange_pctNew since February
3181Cedar Marble Bud Vase179.00Dropped since February
4182Nantucket Brass Wall Mirror17.99Prices raised
5184Thatcher Oak Candle17.99
6185Ridge Brass Bud Vase12.99
7186Birch Brass Floor Mirror20.99
8187Ashford Oak Canvas Print149.00
9188Fern Oak Candle Holder Set179.00
10189Northfield Brass Bud Vase76.99
11190Elm Brass Floor Mirror43.99
12192Thatcher Marble Candle Holder Set15.99
13193Delancey Brass Vase19.99
14194Chester Brass Wall Mirror159.00
15195Fairhaven Soy Wax Framed Print103.99
16196Pine Glass Candle Holder Set25.99
17197Ridge Soy Wax Vase109.00
18198Harbor Oak Floor Mirror44.99
19199Oakley Brass Framed Print104.99
20
21February 2025 price list
22product_idnamefeb_pricein_catalog
23187Ashford Oak Canvas Print149.00
24186Birch Brass Floor Mirror20.99
25181Cedar Marble Bud Vase179.00
26194Chester Brass Wall Mirror149.00
27193Delancey Brass Vase19.99
28190Elm Brass Floor Mirror43.99
29188Fern Oak Candle Holder Set179.00
30183Glen Glass Canvas Print189.00
31198Harbor Oak Floor Mirror41.99
32191Hazel Ceramic Canvas Print42.99
33189Northfield Brass Bud Vase76.99
34199Oakley Brass Framed Print98.99
35196Pine Glass Candle Holder Set25.99
36185Ridge Brass Bud Vase12.00
37192Thatcher Marble Candle Holder Set14.99
38184Thatcher Oak Candle17.99
39
40

Loading the editor…

    ResultPress Check to compare D3:D19, D23:D38

    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
    ABCDEFGHI
    1Catalog today (active Decor)
    2product_idnamelist_priceon_feb_listfeb_pricechange_pctNew since February
    3181Cedar Marble Bud Vase179.00yesDropped since February
    4182Nantucket Brass Wall Mirror17.99noPrices raised
    5184Thatcher Oak Candle17.99yes
    6185Ridge Brass Bud Vase12.99yes
    7186Birch Brass Floor Mirror20.99yes
    8187Ashford Oak Canvas Print149.00yes
    9188Fern Oak Candle Holder Set179.00yes
    10189Northfield Brass Bud Vase76.99yes
    11190Elm Brass Floor Mirror43.99yes
    12192Thatcher Marble Candle Holder Set15.99yes
    13193Delancey Brass Vase19.99yes
    14194Chester Brass Wall Mirror159.00yes
    15195Fairhaven Soy Wax Framed Print103.99no
    16196Pine Glass Candle Holder Set25.99yes
    17197Ridge Soy Wax Vase109.00no
    18198Harbor Oak Floor Mirror44.99yes
    19199Oakley Brass Framed Print104.99yes
    20
    21February 2025 price list
    22product_idnamefeb_pricein_catalog
    23187Ashford Oak Canvas Print149.00yes
    24186Birch Brass Floor Mirror20.99yes
    25181Cedar Marble Bud Vase179.00yes
    26194Chester Brass Wall Mirror149.00yes
    27193Delancey Brass Vase19.99yes
    28190Elm Brass Floor Mirror43.99yes
    29188Fern Oak Candle Holder Set179.00yes
    30183Glen Glass Canvas Print189.00no
    31198Harbor Oak Floor Mirror41.99yes
    32191Hazel Ceramic Canvas Print42.99no
    33189Northfield Brass Bud Vase76.99yes
    34199Oakley Brass Framed Print98.99yes
    35196Pine Glass Candle Holder Set25.99yes
    36185Ridge Brass Bud Vase12.00yes
    37192Thatcher Marble Candle Holder Set14.99yes
    38184Thatcher Oak Candle17.99yes
    39
    40

    Loading the editor…

      ResultPress Check to compare E3:E19

      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
      ABCDEFGHI
      1Catalog today (active Decor)
      2product_idnamelist_priceon_feb_listfeb_pricechange_pctNew since February
      3181Cedar Marble Bud Vase179.00yes179.00Dropped since February
      4182Nantucket Brass Wall Mirror17.99noPrices raised
      5184Thatcher Oak Candle17.99yes17.99
      6185Ridge Brass Bud Vase12.99yes12.00
      7186Birch Brass Floor Mirror20.99yes20.99
      8187Ashford Oak Canvas Print149.00yes149.00
      9188Fern Oak Candle Holder Set179.00yes179.00
      10189Northfield Brass Bud Vase76.99yes76.99
      11190Elm Brass Floor Mirror43.99yes43.99
      12192Thatcher Marble Candle Holder Set15.99yes14.99
      13193Delancey Brass Vase19.99yes19.99
      14194Chester Brass Wall Mirror159.00yes149.00
      15195Fairhaven Soy Wax Framed Print103.99no
      16196Pine Glass Candle Holder Set25.99yes25.99
      17197Ridge Soy Wax Vase109.00no
      18198Harbor Oak Floor Mirror44.99yes41.99
      19199Oakley Brass Framed Print104.99yes98.99
      20
      21February 2025 price list
      22product_idnamefeb_pricein_catalog
      23187Ashford Oak Canvas Print149.00yes
      24186Birch Brass Floor Mirror20.99yes
      25181Cedar Marble Bud Vase179.00yes
      26194Chester Brass Wall Mirror149.00yes
      27193Delancey Brass Vase19.99yes
      28190Elm Brass Floor Mirror43.99yes
      29188Fern Oak Candle Holder Set179.00yes
      30183Glen Glass Canvas Print189.00no
      31198Harbor Oak Floor Mirror41.99yes
      32191Hazel Ceramic Canvas Print42.99no
      33189Northfield Brass Bud Vase76.99yes
      34199Oakley Brass Framed Print98.99yes
      35196Pine Glass Candle Holder Set25.99yes
      36185Ridge Brass Bud Vase12.00yes
      37192Thatcher Marble Candle Holder Set14.99yes
      38184Thatcher Oak Candle17.99yes
      39
      40

      Loading the editor…

        ResultPress Check to compare F3:F19

        Mote checks your result

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

        Step 4 · your sheet

        Excel
        The sheet for this level
        ABCDEFGHIJ
        1Catalog today (active Decor)
        2product_idnamelist_priceon_feb_listfeb_pricechange_pctNew since February
        3181Cedar Marble Bud Vase179.00yes179.000.0%Dropped since February
        4182Nantucket Brass Wall Mirror17.99noPrices raised
        5184Thatcher Oak Candle17.99yes17.990.0%
        6185Ridge Brass Bud Vase12.99yes12.008.3%
        7186Birch Brass Floor Mirror20.99yes20.990.0%
        8187Ashford Oak Canvas Print149.00yes149.000.0%
        9188Fern Oak Candle Holder Set179.00yes179.000.0%
        10189Northfield Brass Bud Vase76.99yes76.990.0%
        11190Elm Brass Floor Mirror43.99yes43.990.0%
        12192Thatcher Marble Candle Holder Set15.99yes14.996.7%
        13193Delancey Brass Vase19.99yes19.990.0%
        14194Chester Brass Wall Mirror159.00yes149.006.7%
        15195Fairhaven Soy Wax Framed Print103.99no
        16196Pine Glass Candle Holder Set25.99yes25.990.0%
        17197Ridge Soy Wax Vase109.00no
        18198Harbor Oak Floor Mirror44.99yes41.997.1%
        19199Oakley Brass Framed Print104.99yes98.996.1%
        20
        21February 2025 price list
        22product_idnamefeb_pricein_catalog
        23187Ashford Oak Canvas Print149.00yes
        24186Birch Brass Floor Mirror20.99yes
        25181Cedar Marble Bud Vase179.00yes
        26194Chester Brass Wall Mirror149.00yes
        27193Delancey Brass Vase19.99yes
        28190Elm Brass Floor Mirror43.99yes
        29188Fern Oak Candle Holder Set179.00yes
        30183Glen Glass Canvas Print189.00no
        31198Harbor Oak Floor Mirror41.99yes
        32191Hazel Ceramic Canvas Print42.99no
        33189Northfield Brass Bud Vase76.99yes
        34199Oakley Brass Framed Print98.99yes
        35196Pine Glass Candle Holder Set25.99yes
        36185Ridge Brass Bud Vase12.00yes
        37192Thatcher Marble Candle Holder Set14.99yes
        38184Thatcher Oak Candle17.99yes
        39
        40

        Loading the editor…

          ResultPress Check to compare I2:I4

          Mote checks your result

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

          The lesson

          Two lists that should match, and don’t

          Thomas has two versions of the same thing: the Decor products the catalog sells today, and the Decor price list from February 2025, rebuilt from what customers actually paid that month. Lists like these never match row for row. Products launch, products are discontinued, prices move. Reconciling them is the most common “consolidation” job of all, and it uses everything in this chapter: matching by key instead of position, and a master table built with lookups.

          The sheet holds today’s catalog in A3:C19 (17 active products, sorted by id) and February’s list in A23:C38 (16 products, sorted by name). Different lengths and different orders: the only safe way to compare them is by product_id.

          Step 1: what’s missing on each side

          COUNTIF(range, value) counts how often a value occurs. Used on the other list, 0 means “not there”:

          D3    =IF(COUNTIF($A$23:$A$38,A3)=0,"no","yes")
          D23   =IF(COUNTIF($A$3:$A$19,A23)=0,"no","yes")

          Fill each down its own block. The catalog side finds three “no”: products 182, 195 and 197, all launched after February. The February side finds two: 183 (Glen Glass Canvas Print) and 191 (Hazel Ceramic Canvas Print), both discontinued since. Both directions matter: a one-way check would never see the dropped products.

          Step 2: bring February’s price over

          Now the catalog becomes the master table. For each product, fetch February’s price:

          E3    =XLOOKUP(A3,$A$23:$A$38,$C$23:$C$38,"")

          The February list is sorted by name, so position is useless, but XLOOKUP doesn’t care. The fourth argument handles the three new products: an empty text instead of #N/A. With INDEX/MATCH you would write =IFERROR(INDEX($C$23:$C$38,MATCH(A3,$A$23:$A$38,0)),""). =IFERROR(VLOOKUP(A3,$A$23:$C$38,3,FALSE),"") works too, because the id is the block’s first column; forget the FALSE and the unsorted list returns wrong prices.

          Step 3: the change

          F3    =IF(E3="","",C3/E3-1)

          The IF skips products with nothing to compare. For the rest, today’s price over February’s, minus 1, formatted as a percentage. Product 194, the Chester Brass Wall Mirror, went from 149.00 to 159.00: 6.7%. Product 185, the Ridge Brass Bud Vase, went from 12.00 to 12.99: 8.3%, the biggest rise in percentage terms.

          Step 4: the summary

          I2    =COUNTIF(D3:D19,"no")       3 new since February
          I3    =COUNTIF(D23:D38,"no")      2 dropped since February
          I4    =COUNTIF(F3:F19,">0")       5 prices raised

          A sanity check that ties it together: the 17 catalog products minus the 3 new ones leaves 14 matched products; February’s 16 minus the 2 dropped leaves the same 14. If those two numbers ever differ, an id is duplicated or typed differently in one list.

          Thinking like an analyst

          The two lists differ for three separate reasons, and Thomas needs them apart: new products (no old price to compare), discontinued products (nothing to price), and real price changes. Mixing them, for example by comparing totals of the two price columns, would give one meaningless number. Count each kind on its own.

          Also note where February’s prices came from: the order lines, not a catalog snapshot. A product that was in the catalog in February but sold nothing that month would show up as “new”. When a reconciliation looks surprising, check how each list was produced before you trust the gap.

          Common mistakes

          • Comparing in one direction only, and missing the dropped products.
          • Unlocked lookup ranges: A23:A38 filled down becomes A24:A39, and the last rows stop finding products at the top of the list.
          • "<>0" in step 4: it counts the empty texts of new products as price changes.
          • Comparing by position: row 3 of each list holds a different product.

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