Practice by topic / Excel / Real Work Cases

Case: Clean a Messy Customer Export Exercises

These 10 exercises build up step by step, starting with clean up the names, clean up the emails, get the email domain.

3 of 10 free · no sign-up needed · graded on the formula you write

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.

ABCDEFGHIJKLMNOPQ
1NameEmailPhoneSigned upSpendClean nameClean emailDomainPhoneFirst wordSpendMonthsTierDuplicate?As of
2 tan wei ming Wei.Tan@Example.com9123-456719 Aug 20241,250?16 Mar 2026
3SITI NURHALIZAsiti@example.com 8765-43212 Nov 2025480Gold customers
4raj kumarRAJ.K@EXAMPLE.COM9001-223314 Feb 20232,040
5Wei Ming Tanwei.tan@example.com9123-456730 Jun 202595
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.

ABCDEFGHIJKLMNOPQ
1NameEmailPhoneSigned upSpendClean nameClean emailDomainPhoneFirst wordSpendMonthsTierDuplicate?As of
2 tan wei ming Wei.Tan@Example.com9123-456719 Aug 20241,250Tan Wei Ming?16 Mar 2026
3SITI NURHALIZAsiti@example.com 8765-43212 Nov 2025480Siti NurhalizaGold customers
4raj kumarRAJ.K@EXAMPLE.COM9001-223314 Feb 20232,040Raj Kumar
5Wei Ming Tanwei.tan@example.com9123-456730 Jun 202595Wei 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.

ABCDEFGHIJKLMNOPQ
1NameEmailPhoneSigned upSpendClean nameClean emailDomainPhoneFirst wordSpendMonthsTierDuplicate?As of
2 tan wei ming Wei.Tan@Example.com9123-456719 Aug 20241,250Tan Wei Mingwei.tan@example.com?16 Mar 2026
3SITI NURHALIZAsiti@example.com 8765-43212 Nov 2025480Siti Nurhalizasiti@example.comGold customers
4raj kumarRAJ.K@EXAMPLE.COM9001-223314 Feb 20232,040Raj Kumarraj.k@example.com
5Wei Ming Tanwei.tan@example.com9123-456730 Jun 202595Wei Ming Tanwei.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.

ABCDEFGHIJKLMNOPQ
1NameEmailPhoneSigned upSpendClean nameClean emailDomainPhoneFirst wordSpendMonthsTierDuplicate?As of
2 tan wei ming Wei.Tan@Example.com9123-456719 Aug 20241,250Tan Wei Mingwei.tan@example.comexample.com?16 Mar 2026
3SITI NURHALIZAsiti@example.com 8765-43212 Nov 2025480Siti Nurhalizasiti@example.comGold customers
4raj kumarRAJ.K@EXAMPLE.COM9001-223314 Feb 20232,040Raj Kumarraj.k@example.com
5Wei Ming Tanwei.tan@example.com9123-456730 Jun 202595Wei Ming Tanwei.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).

ABCDEFGHIJKLMNOPQ
1NameEmailPhoneSigned upSpendClean nameClean emailDomainPhoneFirst wordSpendMonthsTierDuplicate?As of
2 tan wei ming Wei.Tan@Example.com9123-456719 Aug 20241,250Tan Wei Mingwei.tan@example.comexample.com91234567?16 Mar 2026
3SITI NURHALIZAsiti@example.com 8765-43212 Nov 2025480Siti Nurhalizasiti@example.com87654321Gold customers
4raj kumarRAJ.K@EXAMPLE.COM9001-223314 Feb 20232,040Raj Kumarraj.k@example.com90012233
5Wei Ming Tanwei.tan@example.com9123-456730 Jun 202595Wei Ming Tanwei.tan@example.com91234567

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.

ABCDEFGHIJKLMNOPQ
1NameEmailPhoneSigned upSpendClean nameClean emailDomainPhoneFirst wordSpendMonthsTierDuplicate?As of
2 tan wei ming Wei.Tan@Example.com9123-456719 Aug 20241,250Tan Wei Mingwei.tan@example.comexample.com91234567Tan?16 Mar 2026
3SITI NURHALIZAsiti@example.com 8765-43212 Nov 2025480Siti Nurhalizasiti@example.com87654321Gold customers
4raj kumarRAJ.K@EXAMPLE.COM9001-223314 Feb 20232,040Raj Kumarraj.k@example.com90012233
5Wei Ming Tanwei.tan@example.com9123-456730 Jun 202595Wei Ming Tanwei.tan@example.com91234567

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.

ABCDEFGHIJKLMNOPQ
1NameEmailPhoneSigned upSpendClean nameClean emailDomainPhoneFirst wordSpendMonthsTierDuplicate?As of
2 tan wei ming Wei.Tan@Example.com9123-456719 Aug 20241,250Tan Wei Mingwei.tan@example.comexample.com91234567Tan1250?16 Mar 2026
3SITI NURHALIZAsiti@example.com 8765-43212 Nov 2025480Siti Nurhalizasiti@example.com87654321480Gold customers
4raj kumarRAJ.K@EXAMPLE.COM9001-223314 Feb 20232,040Raj Kumarraj.k@example.com900122332040
5Wei Ming Tanwei.tan@example.com9123-456730 Jun 202595Wei Ming Tanwei.tan@example.com9123456795

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'.

ABCDEFGHIJKLMNOPQ
1NameEmailPhoneSigned upSpendClean nameClean emailDomainPhoneFirst wordSpendMonthsTierDuplicate?As of
2 tan wei ming Wei.Tan@Example.com9123-456719 Aug 20241,250Tan Wei Mingwei.tan@example.comexample.com91234567Tan125018?16 Mar 2026
3SITI NURHALIZAsiti@example.com 8765-43212 Nov 2025480Siti Nurhalizasiti@example.com87654321480Gold customers
4raj kumarRAJ.K@EXAMPLE.COM9001-223314 Feb 20232,040Raj Kumarraj.k@example.com900122332040
5Wei Ming Tanwei.tan@example.com9123-456730 Jun 202595Wei Ming Tanwei.tan@example.com9123456795

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'.

ABCDEFGHIJKLMNOPQ
1NameEmailPhoneSigned upSpendClean nameClean emailDomainPhoneFirst wordSpendMonthsTierDuplicate?As of
2 tan wei ming Wei.Tan@Example.com9123-456719 Aug 20241,250Tan Wei Mingwei.tan@example.comexample.com91234567Tan125018Gold16 Mar 2026
3SITI NURHALIZAsiti@example.com 8765-43212 Nov 2025480Siti Nurhalizasiti@example.com87654321480BronzeGold customers
4raj kumarRAJ.K@EXAMPLE.COM9001-223314 Feb 20232,040Raj Kumarraj.k@example.com900122332040Gold
5Wei Ming Tanwei.tan@example.com9123-456730 Jun 202595Wei Ming Tanwei.tan@example.com9123456795Bronze?

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.

ABCDEFGHIJKLMNOPQ
1NameEmailPhoneSigned upSpendClean nameClean emailDomainPhoneFirst wordSpendMonthsTierDuplicate?As of
2 tan wei ming Wei.Tan@Example.com9123-456719 Aug 20241,250Tan Wei Mingwei.tan@example.comexample.com91234567Tan125018Gold16 Mar 2026
3SITI NURHALIZAsiti@example.com 8765-43212 Nov 2025480Siti Nurhalizasiti@example.com87654321480BronzeGold customers
4raj kumarRAJ.K@EXAMPLE.COM9001-223314 Feb 20232,040Raj Kumarraj.k@example.com900122332040Gold?
5Wei Ming Tanwei.tan@example.com9123-456730 Jun 202595Wei Ming Tanwei.tan@example.com9123456795BronzeDuplicate

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 →