1. Lighthouse

Level 2 · Measure the return rate in Excel

The request

From Angela Rivera, Head of Customer Support

“Priya exported line and return counts by category and order status, with sales and refunds. Can you first show me how returns sit across the statuses, then give me the return rate and the share of sales refunded for each category, completed orders only?”

Your goal

Step 1 of 2. Check where returns sit. In I2:I5 total the lines (column C) of each status in H2:H5 with SUMIF, in J2:J5 total the returned lines (column D) the same way, and in K2:K5 divide returned by lines. Lock the data ranges so one formula fills each column.

  • Fill I2:K5 with the right valuesnot done yet
  • With formulas, not typed numbersnot done yet
  • Use SUMIFnot done yet

Step 1 · your sheet

Excel
The sheet for this level
ABCDEFGHIJKLM
1categorystatuslinesreturnednet_salesrefundsstatuslinesreturnedreturn_rate
2Decorcancelled492050928.060.00completed
3Decorcompleted7400223822932.6719802.39refunded
4Decorpending8408509.460.00cancelled
5Decorrefunded23622926008.1025065.78pending
6Furniturecancelled1110100267.000.00
7Furniturecompleted1447631393941.8565590.07categorylinesreturnedreturn_raterefund_share
8Furniturepending18018832.600.00Decor
9Furniturerefunded404038316.4536636.75Furniture
10Kitchencancelled424046816.170.00Kitchen
11Kitchencompleted6693133799182.0319953.67Lighting
12Kitchenpending5807547.080.00Outdoor
13Kitchenrefunded16816418709.0218575.69Textiles
14Lightingcancelled231062737.790.00
15Lightingcompleted36781411001843.8143172.87
16Lightingpending2808628.710.00
17Lightingrefunded11911426523.5925522.64
18Outdoorcancelled2090100669.240.00
19Outdoorcompleted2969941298181.0936865.52
20Outdoorpending1508222.940.00
21Outdoorrefunded707032723.3831253.91
22Textilescancelled387039858.480.00
23Textilescompleted5195242580215.3629848.70
24Textilespending7208606.300.00
25Textilesrefunded17016019979.4918985.87
26
27

Loading the editor…

    ResultPress Check to compare I2:K5

    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
    ABCDEFGHIJKLM
    1categorystatuslinesreturnednet_salesrefundsstatuslinesreturnedreturn_rate
    2Decorcancelled492050928.060.00completed273828963.3%
    3Decorcompleted7400223822932.6719802.39refunded80377796.8%
    4Decorpending8408509.460.00cancelled185400.0%
    5Decorrefunded23622926008.1025065.78pending27500.0%
    6Furniturecancelled1110100267.000.00
    7Furniturecompleted1447631393941.8565590.07categorylinesreturnedreturn_raterefund_share
    8Furniturepending18018832.600.00Decor
    9Furniturerefunded404038316.4536636.75Furniture
    10Kitchencancelled424046816.170.00Kitchen
    11Kitchencompleted6693133799182.0319953.67Lighting
    12Kitchenpending5807547.080.00Outdoor
    13Kitchenrefunded16816418709.0218575.69Textiles
    14Lightingcancelled231062737.790.00
    15Lightingcompleted36781411001843.8143172.87
    16Lightingpending2808628.710.00
    17Lightingrefunded11911426523.5925522.64
    18Outdoorcancelled2090100669.240.00
    19Outdoorcompleted2969941298181.0936865.52
    20Outdoorpending1508222.940.00
    21Outdoorrefunded707032723.3831253.91
    22Textilescancelled387039858.480.00
    23Textilescompleted5195242580215.3629848.70
    24Textilespending7208606.300.00
    25Textilesrefunded17016019979.4918985.87
    26
    27

    Loading the editor…

      ResultPress Check to compare I8:L13

      Mote checks your result

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

      The lesson

      What the sheet holds

      Priya’s export has one row for every category and order status, 24 rows in all, built from order lines with a quantity above zero:

      column holds
      A, B category and order status
      C order lines sold
      D of those, lines with a return
      E net sales: quantity × price × (1 − discount)
      F refunds paid on those lines

      The two small tables at H1 and H7 are yours to fill.

      Step 1: check before you compare

      Before computing a product return rate, see how returns sit across order statuses. SUMIF adds up one column where another column matches a value:

      =SUMIF($B$2:$B$25,H2,$C$2:$C$25)

      reads “add up C where B equals the status in H2”. Lock the data ranges with $ and leave H2 free, so the same formula fills I2:I5. The rate in K is returned divided by lines.

      The result is the reason for every later choice: refunded orders return almost all their lines, because the whole order goes back, while completed orders return a few percent. Cancelled and pending orders never shipped. A product return rate therefore uses completed orders only, and the refunded orders get reported as their own number.

      Step 2: two conditions with SUMIFS

      SUMIFS takes the range to add first, then pairs of range and condition:

      =SUMIFS($C$2:$C$25,$A$2:$A$25,H8,$B$2:$B$25,"completed")

      reads “add up C where A is this category and B is completed”. The same shape on column D gives the returned lines, and the rate is one divided by the other. The refund share divides completed refunds by completed net sales, so it shows the money side: how much of what a category sold came back as refunds.

      Reading the result

      Textiles and Furniture return the most lines, Kitchen the fewest. In money, Furniture is the category that hurts: its refunds are the largest in dollars because each item is expensive. Outdoor shows a gap between the two measures: 3.2% of lines but 2.8% of sales, partly because some changed-mind refunds on large items keep a 15% restocking fee.

      The sheet cannot say why items come back. The reasons are in the full returns table, and the recommendation uses them.

      Pitfalls

      • A text condition goes in quotes: "completed", not completed.
      • Dividing two rounded displays instead of two cells gives slightly different rates; always divide the cells.
      • Typing a number into a rate cell breaks the sheet the next time the export is refreshed.

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