The request

From Catherine Hale, CEO
Your goal
Step 1 of 2. Clean and flag. In E2:E26, clean each label with UPPER and TRIM (one formula, filled down). In F2:F26, return "ok" when the cleaned label is exactly the original and "fixed" when it is not, with IF and EXACT. Then in I2 count the "fixed" rows with COUNTIF, and in I3 total their 2025 revenue (column D) with SUMIF.
- Fill
E2:F26, I2:I3with the right valuesnot done yet - With formulas, not typed numbersnot done yet
- Use
UPPERTRIMEXACTCOUNTIFSUMIFnot done yet
Step 2 of 2. One row per state. For each state in H6:H13, using the cleaned labels in column E: I = total revenue_2024 (column C), J = total revenue_2025 (column D), K = growth (J divided by I, minus 1), L = total buyers_2025 (column B), M = revenue per buyer (J divided by L). Write each formula once in row 6 with the data ranges locked, and fill down to row 13.
- Fill
I6:M13with the right valuesnot done yet - With formulas, not typed numbersnot done yet
- Use
SUMIFnot done yet
This case unlocks when you finish any one of:
The ticket and lesson are open to read now. Solve every level in one of those chapters, in whichever track you prefer, and this case opens.
Step 1 · your sheet
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | state | buyers_2025 | revenue_2024 | revenue_2025 | clean_state | label_status | ||||||||
| 2 | CA | 1 | 3,321.36 | 149.00 | Labels fixed | |||||||||
| 3 | FL | 1 | 0.00 | 6,019.15 | 2025 revenue on fixed labels | |||||||||
| 4 | IL | 1 | 0.00 | 1,014.26 | ||||||||||
| 5 | PA | 1 | 1,514.88 | 1,395.93 | state | revenue_2024 | revenue_2025 | growth | buyers_2025 | revenue_per_buyer | ||||
| 6 | TX | 1 | 975.98 | 19.99 | CA | |||||||||
| 7 | CA | 186 | 269,705.21 | 276,630.20 | TX | |||||||||
| 8 | CA | 1 | 75.98 | 170.10 | NY | |||||||||
| 9 | FL | 108 | 86,388.00 | 124,036.54 | FL | |||||||||
| 10 | FL | 1 | 0.00 | 1,045.90 | IL | |||||||||
| 11 | IL | 78 | 151,885.44 | 120,195.86 | PA | |||||||||
| 12 | IL | 0 | 0.00 | 0.00 | MA | |||||||||
| 13 | MA | 43 | 53,527.75 | 106,731.06 | OH | |||||||||
| 14 | MA | 1 | 0.00 | 1,266.88 | ||||||||||
| 15 | NY | 147 | 256,301.88 | 219,581.28 | ||||||||||
| 16 | OH | 46 | 62,555.36 | 92,571.24 | ||||||||||
| 17 | PA | 60 | 102,626.60 | 113,078.84 | ||||||||||
| 18 | PA | 2 | 2,158.88 | 1,904.13 | ||||||||||
| 19 | TX | 146 | 231,325.13 | 236,369.71 | ||||||||||
| 20 | TX | 2 | 0.00 | 3,869.69 | ||||||||||
| 21 | ca | 2 | 3,497.34 | 420.61 | ||||||||||
| 22 | fl | 1 | 0.00 | 93.98 | ||||||||||
| 23 | il | 1 | 0.00 | 219.89 | ||||||||||
| 24 | ny | 1 | 0.00 | 136.49 | ||||||||||
| 25 | oh | 1 | 384.17 | 390.91 | ||||||||||
| 26 | tx | 1 | 2,222.92 | 124.75 | ||||||||||
| 27 | ||||||||||||||
| 28 |
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 | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | state | buyers_2025 | revenue_2024 | revenue_2025 | clean_state | label_status | ||||||||
| 2 | CA | 1 | 3,321.36 | 149.00 | CA | fixed | Labels fixed | 17 | ||||||
| 3 | FL | 1 | 0.00 | 6,019.15 | FL | fixed | 2025 revenue on fixed labels | 18,241.66 | ||||||
| 4 | IL | 1 | 0.00 | 1,014.26 | IL | fixed | ||||||||
| 5 | PA | 1 | 1,514.88 | 1,395.93 | PA | fixed | state | revenue_2024 | revenue_2025 | growth | buyers_2025 | revenue_per_buyer | ||
| 6 | TX | 1 | 975.98 | 19.99 | TX | fixed | CA | |||||||
| 7 | CA | 186 | 269,705.21 | 276,630.20 | CA | ok | TX | |||||||
| 8 | CA | 1 | 75.98 | 170.10 | CA | fixed | NY | |||||||
| 9 | FL | 108 | 86,388.00 | 124,036.54 | FL | ok | FL | |||||||
| 10 | FL | 1 | 0.00 | 1,045.90 | FL | fixed | IL | |||||||
| 11 | IL | 78 | 151,885.44 | 120,195.86 | IL | ok | PA | |||||||
| 12 | IL | 0 | 0.00 | 0.00 | IL | fixed | MA | |||||||
| 13 | MA | 43 | 53,527.75 | 106,731.06 | MA | ok | OH | |||||||
| 14 | MA | 1 | 0.00 | 1,266.88 | MA | fixed | ||||||||
| 15 | NY | 147 | 256,301.88 | 219,581.28 | NY | ok | ||||||||
| 16 | OH | 46 | 62,555.36 | 92,571.24 | OH | ok | ||||||||
| 17 | PA | 60 | 102,626.60 | 113,078.84 | PA | ok | ||||||||
| 18 | PA | 2 | 2,158.88 | 1,904.13 | PA | fixed | ||||||||
| 19 | TX | 146 | 231,325.13 | 236,369.71 | TX | ok | ||||||||
| 20 | TX | 2 | 0.00 | 3,869.69 | TX | fixed | ||||||||
| 21 | ca | 2 | 3,497.34 | 420.61 | CA | fixed | ||||||||
| 22 | fl | 1 | 0.00 | 93.98 | FL | fixed | ||||||||
| 23 | il | 1 | 0.00 | 219.89 | IL | fixed | ||||||||
| 24 | ny | 1 | 0.00 | 136.49 | NY | fixed | ||||||||
| 25 | oh | 1 | 384.17 | 390.91 | OH | fixed | ||||||||
| 26 | tx | 1 | 2,222.92 | 124.75 | TX | fixed | ||||||||
| 27 | ||||||||||||||
| 28 |
Loading the editor…
Reference solution
Mote checks your result
Press Check. Each right cell becomes a firefly in your lantern.
What Catherine gets, and why
The lesson
What the sheet holds
Ryan’s export has one row per state label exactly as it is stored in customers, for the eight
states with the most revenue in 2025:
| column | holds |
|---|---|
| A | the state label as typed, spaces and lowercase included |
| B | buyers: customers with a completed order in 2025 |
| C, D | net revenue from completed orders in 2024 and in 2025 |
California alone appears as CA, ca, CA and CA. Sorted alphabetically, the labels with
a leading space come first, which is often how you first notice them in a real export.
Step 1: clean, then show what changed
Cleaning a label takes two functions, nested:
=UPPER(TRIM(A2))
TRIM removes leading, trailing and doubled spaces; UPPER puts the letters in one case. A flag
column then shows which rows the cleaning touched:
=IF(EXACT(A2,E2),"ok","fixed")
EXACT is the right test here because Excel’s = ignores case: ="ca"="CA" is TRUE. Two summary
cells, COUNTIF of the flags and SUMIF of the 2025 revenue on the flagged rows, tell the reader
how much was hiding under the messy labels.
Step 2: one row per state
With a clean label in column E, each measure is one SUMIF per state:
I6 =SUMIF($E$2:$E$26,H6,$C$2:$C$26)
The $ signs lock the data ranges, so the formula can be filled down to row 13 while H6 moves to
H7, H8 and so on. Growth and revenue per buyer are then plain divisions on the totals.
Reading the result
| state | revenue_2025 | growth | revenue_per_buyer |
|---|---|---|---|
| CA | 277,369.91 | 0.3% | 1,459.84 |
| TX | 240,384.13 | 2.5% | 1,602.56 |
| NY | 219,717.77 | −14.3% | 1,484.58 |
The three biggest states are close in size, but only California and Texas held their revenue. A state is still a large area: California’s revenue is spread across several metros, and part of every total is business accounts that would never visit a showroom.
Pitfalls
- A
SUMIFon the raw labels comes out short without any error. Always total on the cleaned column. =A2=E2treatscaandCAas equal. UseEXACTwhen case matters.- Typing the totals instead of using formulas breaks the sheet the next time Ryan refreshes it.
Lantern lit!
Practised: data cleaninguppertrimexactsumifpercent change
- Solved
- No hints
- First run
