A beginner's guide to

Data Cleaning

Turn a chaotic spreadsheet into a tidy table you can trust. Data cleaning is fixing messy datasets, from mixed date formats and duplicate rows to typos and gaps, so the data can be analysed or charted reliably.

Guide updated 31 October 2026

Start here ↓
Start-up costFree (using a computer you own)
Best settingComputer
FeelsCurious
PopularityModerate
CostFree/very low
DifficultyModerate
Time needed30 minutes
Physical effortVery low
Social levelOptional
🗺️

Start this hobby

Your first practical checklist

01

Buy or borrow

A spreadsheet program. A free or already-installed one handles sorting, filtering, find and replace and text functions, which cover most beginner cleaning.

02

First 30 minutes

Download a small, messy CSV from an open data site, make a copy to work on and list every problem you can see.

03

First week goal

Decide how to treat missing values (leave blank, fill or exclude), and write a short log of every change you made.

04

Avoid this mistake

Overwriting the original file removes the chance to check your work, so save the cleaned data under a new name.

Is this for me?

A quick fit check

Good signs

  • You enjoy tidying and spotting inconsistencies, like the same name spelled three different ways.
  • You would rather get the data right than rush to the chart, and you do not mind slow, careful work.
  • You already use spreadsheets and have noticed that most of your time goes on fixing data before you can use it.

Think twice if

  • It is repetitive detail work, and a clean table looks plainer than a chart or dashboard.
  • Many decisions have no single right answer, such as what to do with missing values or outliers.
  • Real datasets can be large or badly documented, so you may spend hours working out what a column means.

Make data cleaning easier

Start with a spreadsheet and a small file of a few hundred rows, and fix one kind of problem at a time (spaces, then duplicates, then dates) before learning any new software.

First session

What to do in the first 30 minutes

0–5 min

Download a small CSV from an open data site and save a copy as your working file, leaving the original alone.

5–15 min

Scan every column for odd capitalisation, extra spaces, blank cells and mixed date formats, and list what you find in a note.

15–25 min

Fix the first two problems by trimming spaces and standardising capitalisation, then remove exact duplicate rows and note how many went.

25–30 min

Sort each column to spot typos and outliers, and compare the row count with the original.

The appeal · Digital practice

Why try data cleaning?

Data cleaning is the work of taking a messy file, such as a spreadsheet with mixed date formats, stray spaces and duplicate rows, and turning it into consistent, analysis-ready data. It differs from database tinkering, which is about structuring and querying data, and from data journalism, which is about finding stories. Beginners start with spreadsheet functions, then move to a dedicated cleaning tool or Python, and finish with repeatable cleaning scripts that record every change.

✦

Trustworthy results

Cleaning removes the errors that quietly distort totals and charts, so you can stand behind what the data says.

✦

A skill every data hobby needs

Dashboards, mapping, data stories and databases all depend on clean input.

✦

A satisfying before and after

Turning a chaotic file into a consistent table is a concrete result you can show.

Keep it simple

What you need to begin

  • A spreadsheet programA free or already-installed one handles sorting, filtering, find and replace and text functions, which cover most beginner cleaning.
  • A genuinely messy datasetOpen data from data.gov.uk or a council spending file is full of inconsistencies and gives real practice; always keep the original untouched.
  • A cleaning tool or Python with a data libraryA free tool built for cleaning, or Python with pandas, copes with bigger files and records the steps you took.
  • A notes file or change logWriting down each fix lets you repeat the cleaning later and shows exactly what you did to the data.

The fundamentals

Four skills to build

01

Profiling the data

Looking at column types, ranges, blanks and counts of each value shows what is wrong before you change anything.

02

Standardising text, dates and numbers

Trimming, matching case, splitting columns and converting formats gets values into one consistent form.

03

Handling duplicates and missing values

Choosing whether to remove, fill or flag problems, and recording why, affects every later result.

04

Documenting and repeating steps

A change log or script makes cleaning repeatable and checkable instead of a one-off manual job.

Four small steps

Your first week

  1. Download a small, messy CSV from an open data site, make a copy to work on and list every problem you can see.
  2. Fix the easy problems in a spreadsheet: trim stray spaces, standardise capitalisation and remove duplicate rows.
  3. Tackle dates and numbers by converting mixed date formats to one standard and turning text like '£1,200' into real numbers.
  4. Decide how to treat missing values (leave blank, fill or exclude), and write a short log of every change you made.

The longer path

How progress usually looks

For data cleaning, a sustainable rhythm is an hour or two at a time, once or twice a week, depending on the size of the dataset. Move forward when the current step feels repeatable, not merely possible once.

1

Tidy spreadsheet

You trim, sort, deduplicate and fix obvious errors in a file of a few hundred rows.

2

Consistent datasets

You standardise dates and numbers, split and merge columns, and use find-and-replace patterns on a few thousand rows.

3

Tool-assisted cleaning

You use a cleaning tool or Python to group near-duplicate names, handle larger files and reuse your steps.

4

Reproducible pipelines

You write scripts that clean fresh downloads of the same dataset automatically and check them with validation rules.

Progress markers

What improvement looks like

Beginner

You trim, sort, deduplicate and fix obvious errors in a file of a few hundred rows.

Intermediate

You use a cleaning tool or Python to group near-duplicate names, handle larger files and reuse your steps.

Confident

You write scripts that clean fresh downloads of the same dataset automatically and check them with validation rules.

Spend deliberately

A realistic cost plan

The headline starting range is Free (using a computer you own), but access, borrowing and second-hand equipment can change that substantially.

Try it£0A spreadsheet program and a free open dataset.
Get going£0–£25An optional beginner book or course on a cleaning tool or Python, and somewhere to store your files.
Later£30+Further books or courses, and extra storage for bigger datasets.

Learn with other people

Community and safety

☺

Finding your people

Open data and data-skills meetups, library and university data groups, and online forums for spreadsheets and Python are where UK beginners find help. Many people practise on public datasets published by councils and government bodies.

+

Safety note

Keep an untouched original and work on a copy. If the data contains personal details, handle it carefully, do not share it, and remove or anonymise identifying fields before publishing anything, since UK data protection rules can apply.

Three common beginner mistakes

  • Overwriting the original file removes the chance to check your work, so save the cleaned data under a new name.
  • Deleting every row with a missing value can bias results, so decide deliberately and note how many rows you dropped.
  • Cleaning by hand with no record means you cannot repeat it, so log each step or use a script.

Good to know

One tip worth keeping

From the HobbyWiki notebook

The classic mistake is overwriting your only copy of the data. Keep the original file untouched, work on a copy and write down every change so the cleaning can be checked and repeated.

Find your angle

Useful searches from here

Before you begin

Common questions

What does data cleaning actually involve?+

Typical jobs are trimming spaces, fixing capitalisation and spelling variants, removing duplicates, converting dates and numbers to proper formats, and deciding what to do with blanks and obvious errors.

Do I need to learn programming to clean data?+

Not at first, as a spreadsheet can fix many problems. Python or a cleaning tool becomes useful when files get large or you want to repeat the process.

Where can I find messy data to practise on?+

Open data from data.gov.uk, council spending files and tables from the Office for National Statistics are often untidy. Exports from your own apps and logs work too.

How should I deal with missing values?+

First find out why they are missing. You can leave them blank, fill them with a sensible value or drop the rows, and the right choice depends on what you will do with the data. Record what you chose.

What is the difference between data cleaning and data analysis?+

Cleaning makes the data consistent and correct; analysis asks questions of it. They overlap, but cleaning comes first and often takes most of the time.