The request

From Mason Jackson, Data Analyst
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:L7with the right valuesnot done yet
Your sheet
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | return_id | product | returned_on | reason | refund_amount | |||||||||
| 2 | 1171 | Sable Concrete Adirondack Chair | 2025-04-11 | wrong_item | 50.99 | |||||||||
| 3 | 1172 | Tidewater Concrete String Lights | 2025-04-11 | damaged | 379.00 | |||||||||
| 4 | 1177 | Ashford Wicker Solar Lantern | 2025-04-15 | late | 127.48 | |||||||||
| 5 | 1183 | Tidewater Concrete String Lights | 2025-04-19 | damaged | 379.00 | |||||||||
| 6 | 1185 | Tidewater Concrete String Lights | 2025-04-22 | damaged | 1,137.00 | |||||||||
| 7 | 1191 | Ashford Wicker Solar Lantern | 2025-04-25 | damaged | 74.99 | |||||||||
| 8 | 1199 | Sable Concrete Adirondack Chair | 2025-05-01 | changed_mind | 43.34 | |||||||||
| 9 | 1202 | Marlow Concrete Charcoal Grill | 2025-05-04 | damaged | 93.99 | |||||||||
| 10 | 1206 | Harbor Acacia Solar Lantern | 2025-05-07 | damaged | 578.00 | |||||||||
| 11 | 1215 | Upland Teak Grill Tool Set | 2025-05-12 | changed_mind | 249.00 | |||||||||
| 12 | 1222 | Sable Concrete Adirondack Chair | 2025-05-17 | damaged | 101.98 | |||||||||
| 13 | 1225 | Orchard Aluminum Adirondack Chair | 2025-05-21 | damaged | 103.98 | |||||||||
| 14 | 1227 | Tidewater Concrete String Lights | 2025-05-23 | changed_mind | 379.00 | |||||||||
| 15 | 1230 | Upland Teak Grill Tool Set | 2025-05-25 | changed_mind | 1,693.20 | |||||||||
| 16 | 1231 | Maple Aluminum Patio Dining Set | 2025-05-25 | damaged | 1,099.00 | |||||||||
| 17 | 1234 | Harbor Acacia Solar Lantern | 2025-05-26 | changed_mind | 245.65 | |||||||||
| 18 | 1239 | Driftwood Acacia Planter | 2025-05-30 | changed_mind | 186.15 | |||||||||
| 19 | 1242 | Cedar Concrete Grill Tool Set | 2025-06-01 | changed_mind | 72.99 | |||||||||
| 20 | 1243 | Tidewater Concrete String Lights | 2025-06-02 | damaged | 2,274.00 | |||||||||
| 21 | 1250 | Maple Aluminum Patio Dining Set | 2025-06-06 | changed_mind | 2,198.00 | |||||||||
| 22 | 1251 | Maple Aluminum Patio Dining Set | 2025-06-06 | damaged | 2,198.00 | |||||||||
| 23 | 1253 | Maple Aluminum Patio Dining Set | 2025-06-06 | damaged | 1,099.00 | |||||||||
| 24 | 1255 | Marlow Concrete Charcoal Grill | 2025-06-08 | damaged | 93.99 | |||||||||
| 25 | 1256 | Northfield Teak Charcoal Grill | 2025-06-08 | damaged | 53.99 | |||||||||
| 26 | 1267 | Tidewater Concrete String Lights | 2025-06-17 | damaged | 379.00 | |||||||||
| 27 | 1271 | Marlow Concrete Charcoal Grill | 2025-06-19 | changed_mind | 319.57 | |||||||||
| 28 | 1274 | Maple Aluminum Patio Dining Set | 2025-06-23 | damaged | 1,099.00 | |||||||||
| 29 | 1276 | Sable Concrete Adirondack Chair | 2025-06-25 | damaged | 50.99 | |||||||||
| 30 | ||||||||||||||
| 31 | ||||||||||||||
| 32 | ||||||||||||||
| 33 | ||||||||||||||
| 34 |
Loading the editor…
Reference solution
Mote checks your result
Press Check. Each right cell becomes a firefly in your lantern.
What Mason gets, and why
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. Useyyyy-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.
Lantern lit!
Practised: pivot tablesgroup dateshelper columnsort by value
- Solved
- No hints
- First run
