1. Lighthouse

Level 5 · Returns by reason and month, biggest first

The request

From Mason Jackson, Data Analyst

“Outdoor returns jumped this spring and Daniel wants the why before the summer peak. For April to June 2025: how many returns per reason, month by month, with the biggest reason on top?”

Your goal

In F1 type month and in F2:F29 turn each return date into its month with =TEXT(C2,"yyyy-mm"). Then build a PivotTable at H1: reason in Rows, month in Columns, return_id in Values as a Count, rows sorted largest to smallest. It fills H1:L7.

  • Fill H1:L7 with the right valuesnot done yet

Your sheet

Excel
The sheet for this level
ABCDEFGHIJKLMN
1return_idproductreturned_onreasonrefund_amount
21171Sable Concrete Adirondack Chair2025-04-11wrong_item50.99
31172Tidewater Concrete String Lights2025-04-11damaged379.00
41177Ashford Wicker Solar Lantern2025-04-15late127.48
51183Tidewater Concrete String Lights2025-04-19damaged379.00
61185Tidewater Concrete String Lights2025-04-22damaged1,137.00
71191Ashford Wicker Solar Lantern2025-04-25damaged74.99
81199Sable Concrete Adirondack Chair2025-05-01changed_mind43.34
91202Marlow Concrete Charcoal Grill2025-05-04damaged93.99
101206Harbor Acacia Solar Lantern2025-05-07damaged578.00
111215Upland Teak Grill Tool Set2025-05-12changed_mind249.00
121222Sable Concrete Adirondack Chair2025-05-17damaged101.98
131225Orchard Aluminum Adirondack Chair2025-05-21damaged103.98
141227Tidewater Concrete String Lights2025-05-23changed_mind379.00
151230Upland Teak Grill Tool Set2025-05-25changed_mind1,693.20
161231Maple Aluminum Patio Dining Set2025-05-25damaged1,099.00
171234Harbor Acacia Solar Lantern2025-05-26changed_mind245.65
181239Driftwood Acacia Planter2025-05-30changed_mind186.15
191242Cedar Concrete Grill Tool Set2025-06-01changed_mind72.99
201243Tidewater Concrete String Lights2025-06-02damaged2,274.00
211250Maple Aluminum Patio Dining Set2025-06-06changed_mind2,198.00
221251Maple Aluminum Patio Dining Set2025-06-06damaged2,198.00
231253Maple Aluminum Patio Dining Set2025-06-06damaged1,099.00
241255Marlow Concrete Charcoal Grill2025-06-08damaged93.99
251256Northfield Teak Charcoal Grill2025-06-08damaged53.99
261267Tidewater Concrete String Lights2025-06-17damaged379.00
271271Marlow Concrete Charcoal Grill2025-06-19changed_mind319.57
281274Maple Aluminum Patio Dining Set2025-06-23damaged1,099.00
291276Sable Concrete Adirondack Chair2025-06-25damaged50.99
30
31
32
33
34

Loading the editor…

    ResultPress Check to compare H1:L7

    Mote checks your result

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

    The lesson

    Dates are too fine-grained for a summary: 28 returns, each on its own date over three months, tell you little until they are rolled up. Analysts group dates into months (or weeks, quarters, years) and then sort the result so the biggest item comes first.

    Grouping dates: two ways

    In Excel, once a date field is in a PivotTable, you can right-click one of its dates and choose Group, then tick Months (and Years, so May 2024 and May 2025 stay apart). Excel then builds the month labels itself.

    The other way works everywhere, including Google Sheets and this practice sheet: add a helper column to the data and let the PivotTable use it like any other field.

    F1   month
    F2   =TEXT(C2,"yyyy-mm")

    Filled down to row 29, every return gets a label like 2025-05. The yyyy-mm format sorts correctly as text, which May 2025 would not. Because F1 has a header and sits right next to the data, the PivotTable’s source grows to include it, exactly as Excel’s would when the data is formatted as a Table.

    Count and sort

    With month available, build: Rows reason, Columns month, Values return_id as a Count. Then set Sort rows to Largest to smallest. In Excel that is a right-click on a value in the Grand Total column → Sort → Sort Largest to Smallest.

    Count of return_id   month
    reason          2025-04   2025-05   2025-06   Grand Total
    damaged               4         5         8            17
    changed_mind                    6         3             9
    late                  1                                 1
    wrong_item            1                                 1
    Grand Total           6        11        11            28

    The sort uses each row’s Grand Total. Ties (late and wrong_item, 1 each) keep A→Z order.

    Reading it

    Damaged items are 17 of the 28 returns and the only reason that grows every month: 4, 5, then 8 in June. In refunds the gap is bigger still: damaged returns cost 11,194.91 of the quarter’s 16,760.28 (switch Values to Sum of refund_amount to see it). That points at packaging or the carrier, and it is worth fixing before July, Outdoor’s busiest month.

    Common mistakes

    • Dates straight into Columns. Without grouping you get one column per day.
    • A month label that sorts wrong. TEXT(C2,"mmm") gives Apr, Jun, May in A→Z order. Use yyyy-mm, or month numbers.
    • A helper column without a header, or with a gap before it: the PivotTable can’t use it.
    • Sorting by the labels when the question is “biggest first”. A→Z is the default; change it.

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