All 10 Case: Clean a Messy Customer Export exercises
1
Clean Up the Names
Free
Step 1 of 10. You've been sent a customer export from an old system (A:E) to tidy before a mail-out. Write a formula in G2 that removes the extra spaces from the name in A2 and puts it in proper case.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
|---|
| 1 | Name | Email | Phone | Signed up | Spend | | Clean name | Clean email | Domain | Phone | First word | Spend | Months | Tier | Duplicate? | | As of |
|---|
| 2 | tan wei ming | Wei.Tan@Example.com | 9123-4567 | 19 Aug 2024 | 1,250 | | ? | | | | | | | | | | 16 Mar 2026 |
|---|
| 3 | SITI NURHALIZA | siti@example.com | 8765-4321 | 2 Nov 2025 | 480 | | | | | | | | | | | | Gold customers |
|---|
| 4 | raj kumar | RAJ.K@EXAMPLE.COM | 9001-2233 | 14 Feb 2023 | 2,040 | | | | | | | | | | | | |
|---|
| 5 | Wei Ming Tan | wei.tan@example.com | 9123-4567 | 30 Jun 2025 | 95 | | | | | | | | | | | | |
|---|
Show the solution
Use =PROPER(TRIM(A2))
Right — TRIM first, then PROPER. The rest of column G has been filled in for you.
Expected result in G2: Tan Wei Ming
Try it in the live spreadsheet →
2
Clean Up the Emails
Free
Step 2 of 10. Write a formula in H2 that removes spaces around the email in B2 and makes it all lowercase.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
|---|
| 1 | Name | Email | Phone | Signed up | Spend | | Clean name | Clean email | Domain | Phone | First word | Spend | Months | Tier | Duplicate? | | As of |
|---|
| 2 | tan wei ming | Wei.Tan@Example.com | 9123-4567 | 19 Aug 2024 | 1,250 | | Tan Wei Ming | ? | | | | | | | | | 16 Mar 2026 |
|---|
| 3 | SITI NURHALIZA | siti@example.com | 8765-4321 | 2 Nov 2025 | 480 | | Siti Nurhaliza | | | | | | | | | | Gold customers |
|---|
| 4 | raj kumar | RAJ.K@EXAMPLE.COM | 9001-2233 | 14 Feb 2023 | 2,040 | | Raj Kumar | | | | | | | | | | |
|---|
| 5 | Wei Ming Tan | wei.tan@example.com | 9123-4567 | 30 Jun 2025 | 95 | | Wei Ming Tan | | | | | | | | | | |
|---|
Show the solution
Use =LOWER(TRIM(B2))
Good — emails are compared in lowercase, so this makes duplicates visible. Column H has been filled in.
Expected result in H2: wei.tan@example.com
Try it in the live spreadsheet →
3
Get the Email Domain
Free
Step 3 of 10. Write a formula in I2 that returns everything after the @ in the clean email in H2.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
|---|
| 1 | Name | Email | Phone | Signed up | Spend | | Clean name | Clean email | Domain | Phone | First word | Spend | Months | Tier | Duplicate? | | As of |
|---|
| 2 | tan wei ming | Wei.Tan@Example.com | 9123-4567 | 19 Aug 2024 | 1,250 | | Tan Wei Ming | wei.tan@example.com | ? | | | | | | | | 16 Mar 2026 |
|---|
| 3 | SITI NURHALIZA | siti@example.com | 8765-4321 | 2 Nov 2025 | 480 | | Siti Nurhaliza | siti@example.com | | | | | | | | | Gold customers |
|---|
| 4 | raj kumar | RAJ.K@EXAMPLE.COM | 9001-2233 | 14 Feb 2023 | 2,040 | | Raj Kumar | raj.k@example.com | | | | | | | | | |
|---|
| 5 | Wei Ming Tan | wei.tan@example.com | 9123-4567 | 30 Jun 2025 | 95 | | Wei Ming Tan | wei.tan@example.com | | | | | | | | | |
|---|
Show the solution
Start MID one character after the position of @. Use =MID(H2,FIND("@",H2)+1,100)
Right — FIND locates the @ and MID takes the rest.
Expected result in I2: example.com
Try it in the live spreadsheet →
4
Strip the Dash From Phone Numbers
Step 4 of 10. Write a formula in J2 that removes the dash from the phone number in C2.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
|---|
| 1 | Name | Email | Phone | Signed up | Spend | | Clean name | Clean email | Domain | Phone | First word | Spend | Months | Tier | Duplicate? | | As of |
|---|
| 2 | tan wei ming | Wei.Tan@Example.com | 9123-4567 | 19 Aug 2024 | 1,250 | | Tan Wei Ming | wei.tan@example.com | example.com | ? | | | | | | | 16 Mar 2026 |
|---|
| 3 | SITI NURHALIZA | siti@example.com | 8765-4321 | 2 Nov 2025 | 480 | | Siti Nurhaliza | siti@example.com | | | | | | | | | Gold customers |
|---|
| 4 | raj kumar | RAJ.K@EXAMPLE.COM | 9001-2233 | 14 Feb 2023 | 2,040 | | Raj Kumar | raj.k@example.com | | | | | | | | | |
|---|
| 5 | Wei Ming Tan | wei.tan@example.com | 9123-4567 | 30 Jun 2025 | 95 | | Wei Ming Tan | wei.tan@example.com | | | | | | | | | |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
5
Pull Out the First Word
Step 5 of 10. Write a formula in K2 that returns the first word of the clean name in G2 (for Chinese names, that is usually the surname).
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
|---|
| 1 | Name | Email | Phone | Signed up | Spend | | Clean name | Clean email | Domain | Phone | First word | Spend | Months | Tier | Duplicate? | | As of |
|---|
| 2 | tan wei ming | Wei.Tan@Example.com | 9123-4567 | 19 Aug 2024 | 1,250 | | Tan Wei Ming | wei.tan@example.com | example.com | 91234567 | ? | | | | | | 16 Mar 2026 |
|---|
| 3 | SITI NURHALIZA | siti@example.com | 8765-4321 | 2 Nov 2025 | 480 | | Siti Nurhaliza | siti@example.com | | 87654321 | | | | | | | Gold customers |
|---|
| 4 | raj kumar | RAJ.K@EXAMPLE.COM | 9001-2233 | 14 Feb 2023 | 2,040 | | Raj Kumar | raj.k@example.com | | 90012233 | | | | | | | |
|---|
| 5 | Wei Ming Tan | wei.tan@example.com | 9123-4567 | 30 Jun 2025 | 95 | | Wei Ming Tan | wei.tan@example.com | | 91234567 | | | | | | | |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
6
Turn Spend Into a Number
Step 6 of 10. The spend in E2 came through as text with a thousands comma, so SUM ignores it. Write a formula in L2 that removes the comma and turns it into a real number.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
|---|
| 1 | Name | Email | Phone | Signed up | Spend | | Clean name | Clean email | Domain | Phone | First word | Spend | Months | Tier | Duplicate? | | As of |
|---|
| 2 | tan wei ming | Wei.Tan@Example.com | 9123-4567 | 19 Aug 2024 | 1,250 | | Tan Wei Ming | wei.tan@example.com | example.com | 91234567 | Tan | ? | | | | | 16 Mar 2026 |
|---|
| 3 | SITI NURHALIZA | siti@example.com | 8765-4321 | 2 Nov 2025 | 480 | | Siti Nurhaliza | siti@example.com | | 87654321 | | | | | | | Gold customers |
|---|
| 4 | raj kumar | RAJ.K@EXAMPLE.COM | 9001-2233 | 14 Feb 2023 | 2,040 | | Raj Kumar | raj.k@example.com | | 90012233 | | | | | | | |
|---|
| 5 | Wei Ming Tan | wei.tan@example.com | 9123-4567 | 30 Jun 2025 | 95 | | Wei Ming Tan | wei.tan@example.com | | 91234567 | | | | | | | |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
7
How Long They've Been a Customer
Step 7 of 10. Q2 holds the report date. Write a formula in M2 that returns how many complete months the customer in row 2 has been signed up.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
|---|
| 1 | Name | Email | Phone | Signed up | Spend | | Clean name | Clean email | Domain | Phone | First word | Spend | Months | Tier | Duplicate? | | As of |
|---|
| 2 | tan wei ming | Wei.Tan@Example.com | 9123-4567 | 19 Aug 2024 | 1,250 | | Tan Wei Ming | wei.tan@example.com | example.com | 91234567 | Tan | 1250 | ? | | | | 16 Mar 2026 |
|---|
| 3 | SITI NURHALIZA | siti@example.com | 8765-4321 | 2 Nov 2025 | 480 | | Siti Nurhaliza | siti@example.com | | 87654321 | | 480 | | | | | Gold customers |
|---|
| 4 | raj kumar | RAJ.K@EXAMPLE.COM | 9001-2233 | 14 Feb 2023 | 2,040 | | Raj Kumar | raj.k@example.com | | 90012233 | | 2040 | | | | | |
|---|
| 5 | Wei Ming Tan | wei.tan@example.com | 9123-4567 | 30 Jun 2025 | 95 | | Wei Ming Tan | wei.tan@example.com | | 91234567 | | 95 | | | | | |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
8
Give Each Customer a Tier
Step 8 of 10. Write a formula in N2 that returns 'Gold' for spend of 1,000 or more, 'Silver' for 500 or more, otherwise 'Bronze'.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
|---|
| 1 | Name | Email | Phone | Signed up | Spend | | Clean name | Clean email | Domain | Phone | First word | Spend | Months | Tier | Duplicate? | | As of |
|---|
| 2 | tan wei ming | Wei.Tan@Example.com | 9123-4567 | 19 Aug 2024 | 1,250 | | Tan Wei Ming | wei.tan@example.com | example.com | 91234567 | Tan | 1250 | 18 | ? | | | 16 Mar 2026 |
|---|
| 3 | SITI NURHALIZA | siti@example.com | 8765-4321 | 2 Nov 2025 | 480 | | Siti Nurhaliza | siti@example.com | | 87654321 | | 480 | | | | | Gold customers |
|---|
| 4 | raj kumar | RAJ.K@EXAMPLE.COM | 9001-2233 | 14 Feb 2023 | 2,040 | | Raj Kumar | raj.k@example.com | | 90012233 | | 2040 | | | | | |
|---|
| 5 | Wei Ming Tan | wei.tan@example.com | 9123-4567 | 30 Jun 2025 | 95 | | Wei Ming Tan | wei.tan@example.com | | 91234567 | | 95 | | | | | |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
9
Flag Duplicate Customers
Step 9 of 10. Row 5 looks like it might be the same person as row 2. Write a formula in O5 that returns 'Duplicate' if the clean email in H5 appears more than once in H2:H5, otherwise 'Unique'.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
|---|
| 1 | Name | Email | Phone | Signed up | Spend | | Clean name | Clean email | Domain | Phone | First word | Spend | Months | Tier | Duplicate? | | As of |
|---|
| 2 | tan wei ming | Wei.Tan@Example.com | 9123-4567 | 19 Aug 2024 | 1,250 | | Tan Wei Ming | wei.tan@example.com | example.com | 91234567 | Tan | 1250 | 18 | Gold | | | 16 Mar 2026 |
|---|
| 3 | SITI NURHALIZA | siti@example.com | 8765-4321 | 2 Nov 2025 | 480 | | Siti Nurhaliza | siti@example.com | | 87654321 | | 480 | | Bronze | | | Gold customers |
|---|
| 4 | raj kumar | RAJ.K@EXAMPLE.COM | 9001-2233 | 14 Feb 2023 | 2,040 | | Raj Kumar | raj.k@example.com | | 90012233 | | 2040 | | Gold | | | |
|---|
| 5 | Wei Ming Tan | wei.tan@example.com | 9123-4567 | 30 Jun 2025 | 95 | | Wei Ming Tan | wei.tan@example.com | | 91234567 | | 95 | | Bronze | ? | | |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
10
Count the Gold Customers
Step 10 of 10. Finish with a summary: write a formula in Q4 that counts the Gold customers.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
|---|
| 1 | Name | Email | Phone | Signed up | Spend | | Clean name | Clean email | Domain | Phone | First word | Spend | Months | Tier | Duplicate? | | As of |
|---|
| 2 | tan wei ming | Wei.Tan@Example.com | 9123-4567 | 19 Aug 2024 | 1,250 | | Tan Wei Ming | wei.tan@example.com | example.com | 91234567 | Tan | 1250 | 18 | Gold | | | 16 Mar 2026 |
|---|
| 3 | SITI NURHALIZA | siti@example.com | 8765-4321 | 2 Nov 2025 | 480 | | Siti Nurhaliza | siti@example.com | | 87654321 | | 480 | | Bronze | | | Gold customers |
|---|
| 4 | raj kumar | RAJ.K@EXAMPLE.COM | 9001-2233 | 14 Feb 2023 | 2,040 | | Raj Kumar | raj.k@example.com | | 90012233 | | 2040 | | Gold | | | ? |
|---|
| 5 | Wei Ming Tan | wei.tan@example.com | 9123-4567 | 30 Jun 2025 | 95 | | Wei Ming Tan | wei.tan@example.com | | 91234567 | | 95 | | Bronze | Duplicate | | |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →