Resources/Excel → Macros
GuideExcelMacros

How to Clean Messy Excel Data in One Click

A complete walkthrough of the Excel Data Cleaner — from enabling macros and pasting your data, to running a full cleanup or targeting individual steps.

What is the Excel Data Cleaner?

Excel Data Cleaner workbook interface

The Excel Data Cleaner is a macro-enabled Excel workbook that handles the most common data quality problems in one click. Trim spaces, remove duplicates, standardise dates, fix capitalisation, remove blank rows, and auto-fit columns — all without writing a single formula.

You paste your raw data into the Data sheet, switch to the Home sheet, and click Clean All. Eight macros run in sequence and hand you back a consistent, analysis-ready dataset. Each macro can also be run individually if you only need to fix one specific thing.

  • Trim leading, trailing, and excess internal spaces
  • Remove duplicate rows automatically
  • Standardise all dates to UK or US format
  • Fix inconsistent text capitalisation across entire sheets
  • Remove blank rows and empty cells
  • Auto-fit all column widths instantly
  • Clear imported data with one click to start fresh
  • Works on datasets of any size — no row limit

What You'll Need

The Excel Data Cleaner works on any modern version of Excel:

Excel 2016 or later

Windows or Mac — both supported

Macros enabled

Required for the buttons to work — covered in the next section

Excel Data Cleaner is not compatible with Excel Online (the browser version). It requires the desktop application — Excel 2016 or later on Windows or Mac.

Enabling Macros

All the cleanup buttons in this workbook are powered by VBA macros. Excel blocks macros by default as a security measure, so you'll need to enable them when you first open the file. This is a one-time step for this workbook.

  1. 1Open the downloaded .xlsm file. Excel will show a yellow security bar at the top of the screen.
  2. 2Click Enable Content in that bar. If the bar doesn't appear, go to File → Info and click Enable Content there.
  3. 3On Mac: you may see a dialog asking whether to enable macros — click Enable Macros.
  4. 4The workbook is now fully active. All buttons on the Home sheet will work immediately.
Tip: If you regularly work with this file, you can add it to Excel's trusted locations (File → Options → Trust Center → Trust Center Settings → Trusted Locations) so it opens without the security prompt every time.

Watch: See it in Action

The video below shows the full workflow — pasting raw data, running a full cleanup, and using individual buttons to target specific problems. The whole process takes seconds regardless of how large your dataset is.

Full Excel Data Cleaner walkthrough — from raw data to clean dataset

Cleaning Your Data

The standard workflow takes three steps:

  1. 1Open the workbook from the product page and paste your data into the Data sheet. You can paste from any source — another Excel file, a CSV, a database export, or copied rows from a web page. The data can be in any format; the cleaner doesn't require a specific layout.
  2. 2Switch to the Home sheet. This is where all the cleanup buttons live.
  3. 3Click Clean All. Eight macros run in sequence — trim, capitalisation, date standardisation, blank removal, duplicate removal, column auto-fit, and more. The data sheet updates in place.
Before and after comparison showing data cleaned by Excel Data Cleaner

Raw imported data before and after running Clean All — spaces, duplicates, and inconsistent formatting resolved instantly

All cleanup steps run in place on the Data sheet. Keep a copy of your original source file before running the cleaner so you can revert if needed. No data is ever sent off your machine — all processing happens locally in Excel.

Individual Cleanup Steps

You don't have to run everything at once. Every macro is also available as its own button on the Home sheet, so you can target exactly the problem you need to fix.

All individual cleanup buttons on the Excel Data Cleaner Home sheet

Trim Spaces

Removes leading, trailing, and extra internal spaces from every cell in the dataset.

Remove Duplicates

Scans all rows and deletes exact duplicates, keeping the first occurrence.

Standardise Dates

Converts all valid dates to your chosen format — UK (DD/MM/YYYY) or US (MM/DD/YYYY).

Fix Capitalisation

Normalises text case across entire columns — choose Title Case, UPPER, or lower.

Remove Blanks

Deletes empty rows and cells, tightening up the dataset.

AutoFit Columns

Resizes every column to its optimal width — no dragging required.

Clean All

Runs all eight macros in sequence with one click.

Clear Data

Wipes the Data sheet so you can paste a fresh dataset without manual deletion.

Tip: Individual buttons can be run in any order and as many times as needed. If you paste new data mid-session, click Clear Data first to remove the previous dataset before pasting the new one.

Date Formatting

Mixed date formats are one of the most common problems in imported data — some rows in DD/MM/YYYY, others in MM/DD/YYYY, some written as text strings. The Standardise Dates button converts every valid date in your sheet to a single consistent format.

Before running the macro, choose your preferred format on the Home sheet: UK (DD/MM/YYYY) or US (MM/DD/YYYY). The macro reads your selection and reformats every date column accordingly.

Date format selection — UK or US format in Excel Data Cleaner

Select UK or US date format before running Standardise Dates

Date standardisation works on values that Excel already recognises as dates or common date strings. Dates stored as free text in unusual formats may not be converted — review any cells the macro skips and correct them manually.
Excel Data Cleaner

Ready to clean your data?

Download the workbook and the step-by-step PDF guide — clean any dataset in seconds, no formulas required.

One-time purchase · Instant download · Includes PDF guide

How to Clean Messy Excel Data in One Click | Ataytis Tech