Practice problems / Data Cleaning

Clean a CRM name export (TRIM + PROPER)

Easy Data Cleaning Sales pack
Description
Hints 0/4
Solutions 0
–
Test case
1
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

The CRM export in A2:A4 brings padding and random capitalisation. Put a clean version of the name in A2 into the Clean name cell B2: no leading or trailing spaces, and each word capitalised.

Do not edit column A — the next export would just bring the mess back.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
AB
1Name (as exported)Clean name
2 ana LEE
3 CLEO wong
4bob

Notes

TRIM removes leading and trailing spaces (and collapses runs of spaces between words), while PROPER capitalises the first letter of each word and lowercases the rest. Together they turn " ana LEE " into "Ana Lee".

How to approach

Your answer goes in B2.

  1. Target cell is B2
  2. Two functions: one for spaces, one for capitalisation
  3. Order does not matter here, but the nested form is easier to read
  4. Shape: =PROPER(TRIM(?))

Related practice

FAQ

How do I fix names exported with random capitals?

=PROPER(TRIM(cell)). PROPER capitalises each word; TRIM removes the padding the export added.

Does PROPER break names like McDonald or van der Berg?

Yes — it capitalises every word. For those, clean with TRIM and fix the exceptions by hand; no formula knows which capitals are intentional.