The request

From Angela Rivera, Head of Customer Support
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:K5with the right valuesnot done yet - With formulas, not typed numbersnot done yet
- Use
SUMIFnot done yet
Step 2 of 2. Measure the rate by category, completed orders only. In I8:I13 total the lines of each category in H8:H13 where status is completed, with SUMIFS; in J8:J13 the returned lines the same way. In K8:K13 divide returned by lines. In L8:L13 compute the refund share: completed refunds (column F) divided by completed net sales (column E), both with SUMIFS.
- Fill
I8:L13with the right valuesnot done yet - With formulas, not typed numbersnot done yet
- Use
SUMIFSnot done yet
Step 1 · your sheet
| A | B | C | D | E | F | G | H | I | J | K | L | M | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | category | status | lines | returned | net_sales | refunds | status | lines | returned | return_rate | |||
| 2 | Decor | cancelled | 492 | 0 | 50928.06 | 0.00 | completed | ||||||
| 3 | Decor | completed | 7400 | 223 | 822932.67 | 19802.39 | refunded | ||||||
| 4 | Decor | pending | 84 | 0 | 8509.46 | 0.00 | cancelled | ||||||
| 5 | Decor | refunded | 236 | 229 | 26008.10 | 25065.78 | pending | ||||||
| 6 | Furniture | cancelled | 111 | 0 | 100267.00 | 0.00 | |||||||
| 7 | Furniture | completed | 1447 | 63 | 1393941.85 | 65590.07 | category | lines | returned | return_rate | refund_share | ||
| 8 | Furniture | pending | 18 | 0 | 18832.60 | 0.00 | Decor | ||||||
| 9 | Furniture | refunded | 40 | 40 | 38316.45 | 36636.75 | Furniture | ||||||
| 10 | Kitchen | cancelled | 424 | 0 | 46816.17 | 0.00 | Kitchen | ||||||
| 11 | Kitchen | completed | 6693 | 133 | 799182.03 | 19953.67 | Lighting | ||||||
| 12 | Kitchen | pending | 58 | 0 | 7547.08 | 0.00 | Outdoor | ||||||
| 13 | Kitchen | refunded | 168 | 164 | 18709.02 | 18575.69 | Textiles | ||||||
| 14 | Lighting | cancelled | 231 | 0 | 62737.79 | 0.00 | |||||||
| 15 | Lighting | completed | 3678 | 141 | 1001843.81 | 43172.87 | |||||||
| 16 | Lighting | pending | 28 | 0 | 8628.71 | 0.00 | |||||||
| 17 | Lighting | refunded | 119 | 114 | 26523.59 | 25522.64 | |||||||
| 18 | Outdoor | cancelled | 209 | 0 | 100669.24 | 0.00 | |||||||
| 19 | Outdoor | completed | 2969 | 94 | 1298181.09 | 36865.52 | |||||||
| 20 | Outdoor | pending | 15 | 0 | 8222.94 | 0.00 | |||||||
| 21 | Outdoor | refunded | 70 | 70 | 32723.38 | 31253.91 | |||||||
| 22 | Textiles | cancelled | 387 | 0 | 39858.48 | 0.00 | |||||||
| 23 | Textiles | completed | 5195 | 242 | 580215.36 | 29848.70 | |||||||
| 24 | Textiles | pending | 72 | 0 | 8606.30 | 0.00 | |||||||
| 25 | Textiles | refunded | 170 | 160 | 19979.49 | 18985.87 | |||||||
| 26 | |||||||||||||
| 27 |
Loading the editor…
Reference solution
Mote checks your result
Press Check. Each right cell becomes a firefly in your lantern.
Step 2 · your sheet
| A | B | C | D | E | F | G | H | I | J | K | L | M | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | category | status | lines | returned | net_sales | refunds | status | lines | returned | return_rate | |||
| 2 | Decor | cancelled | 492 | 0 | 50928.06 | 0.00 | completed | 27382 | 896 | 3.3% | |||
| 3 | Decor | completed | 7400 | 223 | 822932.67 | 19802.39 | refunded | 803 | 777 | 96.8% | |||
| 4 | Decor | pending | 84 | 0 | 8509.46 | 0.00 | cancelled | 1854 | 0 | 0.0% | |||
| 5 | Decor | refunded | 236 | 229 | 26008.10 | 25065.78 | pending | 275 | 0 | 0.0% | |||
| 6 | Furniture | cancelled | 111 | 0 | 100267.00 | 0.00 | |||||||
| 7 | Furniture | completed | 1447 | 63 | 1393941.85 | 65590.07 | category | lines | returned | return_rate | refund_share | ||
| 8 | Furniture | pending | 18 | 0 | 18832.60 | 0.00 | Decor | ||||||
| 9 | Furniture | refunded | 40 | 40 | 38316.45 | 36636.75 | Furniture | ||||||
| 10 | Kitchen | cancelled | 424 | 0 | 46816.17 | 0.00 | Kitchen | ||||||
| 11 | Kitchen | completed | 6693 | 133 | 799182.03 | 19953.67 | Lighting | ||||||
| 12 | Kitchen | pending | 58 | 0 | 7547.08 | 0.00 | Outdoor | ||||||
| 13 | Kitchen | refunded | 168 | 164 | 18709.02 | 18575.69 | Textiles | ||||||
| 14 | Lighting | cancelled | 231 | 0 | 62737.79 | 0.00 | |||||||
| 15 | Lighting | completed | 3678 | 141 | 1001843.81 | 43172.87 | |||||||
| 16 | Lighting | pending | 28 | 0 | 8628.71 | 0.00 | |||||||
| 17 | Lighting | refunded | 119 | 114 | 26523.59 | 25522.64 | |||||||
| 18 | Outdoor | cancelled | 209 | 0 | 100669.24 | 0.00 | |||||||
| 19 | Outdoor | completed | 2969 | 94 | 1298181.09 | 36865.52 | |||||||
| 20 | Outdoor | pending | 15 | 0 | 8222.94 | 0.00 | |||||||
| 21 | Outdoor | refunded | 70 | 70 | 32723.38 | 31253.91 | |||||||
| 22 | Textiles | cancelled | 387 | 0 | 39858.48 | 0.00 | |||||||
| 23 | Textiles | completed | 5195 | 242 | 580215.36 | 29848.70 | |||||||
| 24 | Textiles | pending | 72 | 0 | 8606.30 | 0.00 | |||||||
| 25 | Textiles | refunded | 170 | 160 | 19979.49 | 18985.87 | |||||||
| 26 | |||||||||||||
| 27 |
Loading the editor…
Reference solution
Mote checks your result
Press Check. Each right cell becomes a firefly in your lantern.
What Angela gets, and why
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", notcompleted. - 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.
Lantern lit!
Practised: data validationsumifsumifsreturn ratemixed references
- Solved
- No hints
- First run
