1. Lighthouse

Level 8 · Boss: the monthly returns sheet

The request

From Daniel Brooks, Head of Operations

“For the February returns review I want the export turned into something we can group and read. Per return: the month the order was placed, how many days it took to come back, and a one-line label we can paste into the review deck.”

Your goal

Step 1 of 3. In G2:G40, return the month each order was placed as text in the form yyyy-mm, from the order_date in column C. Use TEXT.

  • Fill G2:G40 with the right valuesnot done yet
  • With formulas, not typed numbersnot done yet
  • Use TEXTnot done yet

Step 1 · your sheet

Excel
The sheet for this level
ABCDEFGHIJ
1order_idcategoryorder_datereturned_onreasonrefund_amountorder_monthdays_to_returnlabel
28073Textiles2024-12-23 08:002025-02-01changed_mind298.00
38324Textiles2025-01-12 12:592025-02-01late52.99
48407Furniture2025-01-21 12:392025-02-01damaged229.00
58466Decor2025-01-26 16:142025-02-02damaged41.98
68466Kitchen2025-01-26 16:142025-02-02late35.97
78393Textiles2025-01-19 18:282025-02-03late211.96
88456Lighting2025-01-25 16:492025-02-03damaged836.00
98464Textiles2025-01-26 11:562025-02-03changed_mind18.99
108323Kitchen2025-01-12 06:342025-02-04changed_mind37.98
118251Kitchen2025-01-04 20:482025-02-05changed_mind13.99
128429Lighting2025-01-23 06:522025-02-05changed_mind28.79
138251Textiles2025-01-04 20:482025-02-08changed_mind158.97
148323Kitchen2025-01-12 06:342025-02-08changed_mind169.00
158248Textiles2025-01-04 18:272025-02-10changed_mind161.94
168278Kitchen2025-01-07 19:312025-02-10changed_mind173.97
178438Decor2025-01-23 20:102025-02-10late197.98
188564Decor2025-02-06 12:172025-02-11wrong_item395.96
198405Textiles2025-01-20 22:282025-02-12changed_mind211.96
208323Lighting2025-01-12 06:342025-02-13changed_mind31.99
218351Lighting2025-01-14 22:362025-02-13changed_mind189.00
228323Kitchen2025-01-12 06:342025-02-14changed_mind57.99
238407Kitchen2025-01-21 12:392025-02-14late10.99
248513Textiles2025-01-31 21:022025-02-15changed_mind283.96
258344Decor2025-01-14 11:542025-02-16changed_mind51.98
268422Lighting2025-01-22 16:482025-02-16changed_mind149.00
278587Lighting2025-02-09 14:012025-02-16changed_mind29.99
288344Textiles2025-01-14 11:542025-02-17changed_mind26.99
298405Textiles2025-01-20 22:282025-02-20late1352.00
308461Textiles2025-01-26 09:132025-02-20changed_mind676.00
318532Decor2025-02-02 18:362025-02-20changed_mind43.99
328393Kitchen2025-01-19 18:282025-02-22changed_mind37.98
338621Outdoor2025-02-13 11:282025-02-22wrong_item101.98
348646Lighting2025-02-16 05:522025-02-23damaged179.10
358407Textiles2025-01-21 12:392025-02-24changed_mind23.99
368536Decor2025-02-03 13:192025-02-24changed_mind149.00
378478Textiles2025-01-27 13:442025-02-25changed_mind19.99
388407Kitchen2025-01-21 12:392025-02-27changed_mind15.99
398696Kitchen2025-02-22 07:052025-02-27damaged11.99
408486Textiles2025-01-28 17:432025-02-28changed_mind157.98
41
42

Loading the editor…

    ResultPress Check to compare G2:G40

    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
    1order_idcategoryorder_datereturned_onreasonrefund_amountorder_monthdays_to_returnlabel
    28073Textiles2024-12-23 08:002025-02-01changed_mind298.002024-12
    38324Textiles2025-01-12 12:592025-02-01late52.992025-01
    48407Furniture2025-01-21 12:392025-02-01damaged229.002025-01
    58466Decor2025-01-26 16:142025-02-02damaged41.982025-01
    68466Kitchen2025-01-26 16:142025-02-02late35.972025-01
    78393Textiles2025-01-19 18:282025-02-03late211.962025-01
    88456Lighting2025-01-25 16:492025-02-03damaged836.002025-01
    98464Textiles2025-01-26 11:562025-02-03changed_mind18.992025-01
    108323Kitchen2025-01-12 06:342025-02-04changed_mind37.982025-01
    118251Kitchen2025-01-04 20:482025-02-05changed_mind13.992025-01
    128429Lighting2025-01-23 06:522025-02-05changed_mind28.792025-01
    138251Textiles2025-01-04 20:482025-02-08changed_mind158.972025-01
    148323Kitchen2025-01-12 06:342025-02-08changed_mind169.002025-01
    158248Textiles2025-01-04 18:272025-02-10changed_mind161.942025-01
    168278Kitchen2025-01-07 19:312025-02-10changed_mind173.972025-01
    178438Decor2025-01-23 20:102025-02-10late197.982025-01
    188564Decor2025-02-06 12:172025-02-11wrong_item395.962025-02
    198405Textiles2025-01-20 22:282025-02-12changed_mind211.962025-01
    208323Lighting2025-01-12 06:342025-02-13changed_mind31.992025-01
    218351Lighting2025-01-14 22:362025-02-13changed_mind189.002025-01
    228323Kitchen2025-01-12 06:342025-02-14changed_mind57.992025-01
    238407Kitchen2025-01-21 12:392025-02-14late10.992025-01
    248513Textiles2025-01-31 21:022025-02-15changed_mind283.962025-01
    258344Decor2025-01-14 11:542025-02-16changed_mind51.982025-01
    268422Lighting2025-01-22 16:482025-02-16changed_mind149.002025-01
    278587Lighting2025-02-09 14:012025-02-16changed_mind29.992025-02
    288344Textiles2025-01-14 11:542025-02-17changed_mind26.992025-01
    298405Textiles2025-01-20 22:282025-02-20late1352.002025-01
    308461Textiles2025-01-26 09:132025-02-20changed_mind676.002025-01
    318532Decor2025-02-02 18:362025-02-20changed_mind43.992025-02
    328393Kitchen2025-01-19 18:282025-02-22changed_mind37.982025-01
    338621Outdoor2025-02-13 11:282025-02-22wrong_item101.982025-02
    348646Lighting2025-02-16 05:522025-02-23damaged179.102025-02
    358407Textiles2025-01-21 12:392025-02-24changed_mind23.992025-01
    368536Decor2025-02-03 13:192025-02-24changed_mind149.002025-02
    378478Textiles2025-01-27 13:442025-02-25changed_mind19.992025-01
    388407Kitchen2025-01-21 12:392025-02-27changed_mind15.992025-01
    398696Kitchen2025-02-22 07:052025-02-27damaged11.992025-02
    408486Textiles2025-01-28 17:432025-02-28changed_mind157.982025-01
    41
    42

    Loading the editor…

      ResultPress Check to compare H2:H40

      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
      1order_idcategoryorder_datereturned_onreasonrefund_amountorder_monthdays_to_returnlabel
      28073Textiles2024-12-23 08:002025-02-01changed_mind298.002024-1240
      38324Textiles2025-01-12 12:592025-02-01late52.992025-0120
      48407Furniture2025-01-21 12:392025-02-01damaged229.002025-0111
      58466Decor2025-01-26 16:142025-02-02damaged41.982025-017
      68466Kitchen2025-01-26 16:142025-02-02late35.972025-017
      78393Textiles2025-01-19 18:282025-02-03late211.962025-0115
      88456Lighting2025-01-25 16:492025-02-03damaged836.002025-019
      98464Textiles2025-01-26 11:562025-02-03changed_mind18.992025-018
      108323Kitchen2025-01-12 06:342025-02-04changed_mind37.982025-0123
      118251Kitchen2025-01-04 20:482025-02-05changed_mind13.992025-0132
      128429Lighting2025-01-23 06:522025-02-05changed_mind28.792025-0113
      138251Textiles2025-01-04 20:482025-02-08changed_mind158.972025-0135
      148323Kitchen2025-01-12 06:342025-02-08changed_mind169.002025-0127
      158248Textiles2025-01-04 18:272025-02-10changed_mind161.942025-0137
      168278Kitchen2025-01-07 19:312025-02-10changed_mind173.972025-0134
      178438Decor2025-01-23 20:102025-02-10late197.982025-0118
      188564Decor2025-02-06 12:172025-02-11wrong_item395.962025-025
      198405Textiles2025-01-20 22:282025-02-12changed_mind211.962025-0123
      208323Lighting2025-01-12 06:342025-02-13changed_mind31.992025-0132
      218351Lighting2025-01-14 22:362025-02-13changed_mind189.002025-0130
      228323Kitchen2025-01-12 06:342025-02-14changed_mind57.992025-0133
      238407Kitchen2025-01-21 12:392025-02-14late10.992025-0124
      248513Textiles2025-01-31 21:022025-02-15changed_mind283.962025-0115
      258344Decor2025-01-14 11:542025-02-16changed_mind51.982025-0133
      268422Lighting2025-01-22 16:482025-02-16changed_mind149.002025-0125
      278587Lighting2025-02-09 14:012025-02-16changed_mind29.992025-027
      288344Textiles2025-01-14 11:542025-02-17changed_mind26.992025-0134
      298405Textiles2025-01-20 22:282025-02-20late1352.002025-0131
      308461Textiles2025-01-26 09:132025-02-20changed_mind676.002025-0125
      318532Decor2025-02-02 18:362025-02-20changed_mind43.992025-0218
      328393Kitchen2025-01-19 18:282025-02-22changed_mind37.982025-0134
      338621Outdoor2025-02-13 11:282025-02-22wrong_item101.982025-029
      348646Lighting2025-02-16 05:522025-02-23damaged179.102025-027
      358407Textiles2025-01-21 12:392025-02-24changed_mind23.992025-0134
      368536Decor2025-02-03 13:192025-02-24changed_mind149.002025-0221
      378478Textiles2025-01-27 13:442025-02-25changed_mind19.992025-0129
      388407Kitchen2025-01-21 12:392025-02-27changed_mind15.992025-0137
      398696Kitchen2025-02-22 07:052025-02-27damaged11.992025-025
      408486Textiles2025-01-28 17:432025-02-28changed_mind157.982025-0131
      41
      42

      Loading the editor…

        ResultPress Check to compare I2:I40

        Mote checks your result

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

        The lesson

        One export, three columns

        Daniel’s review runs on February 2025’s returns: 39 lines in A1:F40, one per returned item, with the order id, the category, the order timestamp, the return date, the reason and the refund. You add three columns that every returns review needs: when the order was placed (as a month), how long the return took, and a line a person can read.

        Everything here is from this chapter: dates are numbers, TEXT turns a number into formatted text, DATEDIF counts whole days, and & joins pieces into a label.

        Step 1: the order month

        G2   =TEXT(C2,"yyyy-mm")

        The first return in row 2 was ordered on 2024-12-23 at 08:00, so G2 shows 2024-12. Fill it down to row 40. February’s returns come from orders placed in three different months: 1 in December, 31 in January and 7 in February. That spread is normal: a return arrives days or weeks after its order, so “returns in February” and “returns of February orders” are different questions. Daniel’s review wants both, and the month key is what lets him group by order month later.

        Step 2: days to return

        H2   =DATEDIF(C2,D2,"d")

        Order dates carry a time, return dates don’t, so plain subtraction gives fractions: =D2-C2 is 39.67 in row 2. DATEDIF counts whole calendar days, 40. Scan the column for sanity: the shortest return takes 5 days and the longest 40, and nothing is negative. A negative or #NUM! would mean a return dated before its order, which is a data problem to report, not to hide.

        Step 3: the label

        I2   =G2&" | "&UPPER(B2)&" | "&TEXT(F2,"$#,##0.00")&" | "&H2&" days"

        Row 2 reads 2024-12 | TEXTILES | $298.00 | 40 days. Two things in this formula are easy to get wrong:

        • The refund needs TEXT. F2 shows 298.00 only because of its format; the value is 298, and &F2 prints 298. The format "$#,##0.00" adds the dollar sign, the comma for thousands and two decimals, so row 29’s refund reads $1,352.00.
        • The days don’t. H2 is a whole number, so &H2 prints 40 as it is. If you had built step 2 with =D2-C2, the label would read 39.666… days, with the digits running on.

        Thinking like an analyst

        A label is for reading; the columns are for working. Keep G and H next to the label, because the next questions Daniel asks will group by G and average H, and a label can’t be summed.

        Before you hand the sheet over, check it against the raw data:

        • Pick one row and redo it by hand: ordered January 26, returned February 2 (row 5) is 7 days.
        • Count the month keys: 1 + 31 + 7 = 39, the number of rows.
        • Look at the extremes: 40 days in row 2 is a holiday order returned after the new year; that belongs in the review, not in a list of errors.

        Common mistakes

        • MONTH(C2) as the month key: 12 for December of every year, and no leading zero.
        • =D2-C2 for the days: fractional days, which leak into the label.
        • &C2 or &F2 without TEXT: a serial number or a refund without its dollar sign.
        • "|" without spaces, or "days" without the leading space: the label must match exactly.

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