Skills / Data entry and data cleaning / Spreadsheet tools for cleaning data

Data entry and data cleaning, lesson 3 of 8

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 words
  • PROPER(A2) makes "aSHA PATEL" into "Asha Patel"; UPPER and LOWER set all capitals or none
  • LEFT, RIGHT and MID take part of a text, such as the first three characters of a code
  • SUBSTITUTE(A2, "-", "") removes or replaces characters, for example dashes in phone numbers
  • Joining text: =A2 & " " & B2 joins 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:

  1. Add a new column next to the messy one
  2. Write a cleaning formula, such as =PROPER(TRIM(A2)), and fill it down
  3. Check the results
  4. 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.

Try it: Create a column of ten messy names (extra spaces, random capitals). Use the helper column method with TRIM and PROPER to clean them, then paste the results as values.

Check yourself

1. Which function removes extra spaces from a cell?

2. What does =PROPER("aSHA PATEL") return?

3. Why use a helper column instead of editing data in place?