← Back to Blogs
The Ultimate Guide to Cleaning Dirty Excel Data

The Ultimate Guide to Cleaning Dirty Excel Data

Whether you're importing sales reports, copying data from a PDF, or inheriting a chaotic spreadsheet, dirty data is a fact of life for Excel users. The good news? Excel has powerful tools for cleaning, shaping, and standardising data — if you know where to look.



1. Start with TRIM, CLEAN, and SUBSTITUTE


TRIM() removes extra spaces — not just at the beginning and end, but also those sneaky double spaces in the middle.


=TRIM(A2)

CLEAN() strips out non-printable characters that show up when importing from weird systems:


=CLEAN(A2)

Need to replace unwanted characters (like dashes, question marks, or extra commas)? Use SUBSTITUTE():


=SUBSTITUTE(A2, "-", "")


2. Split Data into Columns


If you have full names or addresses jammed into a single cell, use:




3. Convert Numbers Stored as Text


You’ve seen this error: “Number stored as text”. Select the column, use Text to Columns, or multiply by 1:


=A2*1

Or even use =VALUE(A2). Either method restores numeric integrity.



4. Remove Duplicates — the Right Way


Don’t just delete rows manually. Use:



  1. Remove Duplicates (Data tab)

  2. Advanced Filter → Unique records only

  3. Power Query → Remove duplicates with full control



5. Use FIND/SEARCH + LEN to Discover Issues


Want to find rogue characters, hidden spaces, or inconsistent lengths?


=LEN(A2) // find if some values are longer than expected

=FIND("?", A2) // locate strange punctuation


6. Use Flash Fill for Smart Extraction


Flash Fill (Ctrl + E) guesses your pattern and fills in the rest. Extract first names, fix capitalisation, or combine fields — its fast and surprisingly accurate.



7. Power Query: The Data Cleaning Super Tool


If you’re doing repetitive cleaning, Power Query is your best friend. It can:



And the best part? It remembers every cleaning step — no macros needed.



Final Thoughts


Cleaning dirty data isn’t glamorous, but it’s critical. Whether you’re prepping for a dashboard, audit, or pivot table, clean data = reliable results. Learn the tools, build habits, and let Excel do the grunt work.


Need a downloadable cleaning checklist or a sample file? Reach out and we’ll send you one.


Other Blog Posts

How to Use SUMIFS to Analyse Data Like a Pro

If you’re still using SUM and IF separately to crunch numbers in Excel, it’s time to level up. SUMIFS is one of Excel’s most powerful functions for analysing data — and it’s surprisingly eas...

Read More

Designing Better Excel Dashboards (Even If You’re Not a Designer)

Excel dashboards can be incredibly powerful — but let’s face it, not everyone is a designer. The good news? You don’t need a design degree to create dashboards that look clean, work beautifully,...

Read More

Power Query Tips to Speed Up Your Workflow

Power Query is one of Excel’s best-kept secrets — and if you’re not using it yet, you’re probably spending too much time cleaning, reshaping, or merging data manually.

Whether you're a beginn...

Read More

Top 3 Excel Shortcuts That Save You Hours

When it comes to working efficiently in Excel, keyboard shortcuts aren’t just time-savers — they’re game-changers.

As a trainer, I use dozens of shortcuts, but there are three that I rely on ev...

Read More

Why XLOOKUP Leaves VLOOKUP, HLOOKUP and INDEX/MATCH in the Dust

If you’ve been using Excel for years, you’ve probably tangled with VLOOKUP, wrestled with HLOOKUP, and maybe even constructed the occasional INDEX/MATCH combo when things got serious. But now, Mic...

Read More
Email Us