Skills / Data entry and data cleaning / Spreadsheet tools for cleaning data
Spreadsheet tools for cleaning data
A good data worker cleans with tools, not by hand. These features exist in both Excel and Google Sheets.
Text functions:
TRIM(A2)removes extra spaces at the start and end, and doubled spaces between wordsPROPER(A2)makes "aSHA PATEL" into "Asha Patel";UPPERandLOWERset all capitals or noneLEFT,RIGHTandMIDtake part of a text, such as the first three characters of a codeSUBSTITUTE(A2, "-", "")removes or replaces characters, for example dashes in phone numbers- Joining text:
=A2 & " " & B2joins a first and last name with a space
Splitting. Data > Split text to columns turns "Patel, Asha" into two columns using the comma as the divider.
Removing duplicates. Both tools have a Remove duplicates command. First decide which columns define a duplicate (the email address, for example), and work on a copy.
Find and replace fixes repeated mistakes in one go, such as replacing "Bangalore " with "Bengaluru". Tick "match entire cell contents" when you only want exact matches.
Conditional formatting highlights problems visually: duplicate values, blank cells, or numbers outside a range.
The helper column method. Instead of editing data in place:
- Add a new column next to the messy one
- Write a cleaning formula, such as
=PROPER(TRIM(A2)), and fill it down - Check the results
- Copy the column and use Paste special > Values only, then remove the old column
This keeps the original visible until you are sure the cleaned version is right.
The tutor gives hints, not finished answers. Log in to use it.