Confident CellsExcel practice Start free
Unit 7 of 9

Cleaning messy data in Excel: lessons and a project

For anyone who has been sent a download that isn't fit to use: spaces after names, capitals all over the place, dates that won't sort. You'll tidy text with TRIM, PROPER and SUBSTITUTE, split and join names, turn text into real dates and numbers, and find duplicates. The project is a conference booking export to tidy before the name badges are printed.

8 lessons38 exercises24 Check questions1 free lessona project in Excel3 suggested CPD hours

Try one now

In C2, join the first name and surname with a space between them.

ABCDEFGH
1First nameSurnameFull nameInitialsEmailPasted inTidied
2GraceKhan gRACE khan
3TomClarkeTOM clarke
4PriyaAli priya ALI
5MarekSmithmarek SMITH
6NiaPatelNIA patel
7OllieNowak ollie NOWAK
8LucyBrownlucy brown
9HamzaJohnson HAMZA johnson

The lessons

Each lesson starts with a short worked example, then exercises on real-looking data, marked the moment you press Check, with hints when you need them. It ends with a Check: new questions on fresh data, with no hints. Pass it and the lesson is marked Secure.

  1. Text functions Free
    &, LEFT, LOWER, PROPER, TRIM · 6 exercises · a Check of 3 questions · guide: Combine first and last names in Excel
  2. Cleaning text Pro
    TRIM, UPPER, SUBSTITUTE, LEN · 4 exercises · a Check of 3 questions · guide: Change case in Excel
  3. Splitting and joining Pro
    LEFT, MID, FIND, TEXTAFTER, TEXTJOIN · 4 exercises · a Check of 3 questions · guide: Split first and last names in Excel
  4. Numbers and dates stored as text Pro
    VALUE, DATEVALUE, DATE with LEFT, MID, RIGHT · 4 exercises · a Check of 3 questions · guide: Excel formula not calculating
  5. Duplicates Pro
    COUNTIF to spot repeats, first copies, UNIQUE, COUNTIFS · 4 exercises · a Check of 3 questions · guide: Finding and removing duplicates in Excel

Extra practice

Useful, but not needed for the project.

The project in Excel: Event booking export

Part of Pro

A messy download of bookings for a conference. Tidy it before the name badges are printed.

What you'll build:

  • Names trimmed and in proper case
  • Full names split, emails tidied
  • Text dates turned into real dates
  • Duplicates flagged, and a label for each badge

Download the workbook and do the job in Excel. A Check sheet in the workbook ticks off each task as you get it right, and the model answers are there to compare with when you've finished. You'll need Excel 2019 or later, or Excel for the web, which is free with a Microsoft account.

See the project

Counts towards a certificate

Unit 7 is part of the Excel Advanced certificate of achievement (Units 7 to 9, 10 hours of suggested CPD). To earn it, pass the Check in every lesson of those units while signed in (reviews and extra practice aren't needed), and finish each unit's project in Excel. Our server checks the work itself. Certificates come with Pro: see how they work.

Online practice and assessment, completed without supervision. Confident Cells is independent and isn’t connected with Microsoft. This is not a formal qualification.

Guides for this topic

Questions

Why won't a lookup find a name that's clearly there?

Usually a space you can't see, such as "Priya Shah " with one on the end. =LEN(A2) gives it away: the count is one more than the letters you can see. Tidy the list with =TRIM(A2) in a new column, or look up TRIM(A2) instead. The TRIM guide shows both.

Should I fix the data by hand or with formulas?

With formulas, in a new column. The original stays as it was, and the same formulas tidy next month's download too. When it's right, you can paste the results back as values.

Getting ready for a job test? Take the free Excel test: 12 questions in 20 minutes, marked as you go. Every other test is in the Test Centre.