عربي Add your service

How to clean up a messy Excel file in 7 steps

Seven steps to clean a messy Excel file: duplicates, extra spaces, numbers stored as text, dates and mixed spellings.

Hundreds of rows, repeated names, numbers that won't add up and dates in every format. Don't start fixing cells by hand. Follow these steps in order: each one makes the next easier.

  1. Keep a copy. Work on a copy of the file and leave the original alone. Some steps can't be undone once you have saved.
  2. Turn the data into a table. Click inside it and press Ctrl + T. Every column gets a filter, and formulas fill new rows by themselves.
  3. Remove extra spaces. In a new column type =TRIM(SUBSTITUTE(A2,CHAR(160)," ")), then copy the result and paste it as values. To Excel, “Adam” and “Adam ” are two different names.
  4. Make spellings match. Open the column's filter to see every different value, such as “New York” and “NewYork”, then fix them with Find and Replace, Ctrl + H.
  5. Delete duplicates. On the Data tab choose Remove Duplicates, and tick the columns that make a row a duplicate, such as the phone number.
  6. Repair numbers and dates. A number with a small green triangle in the cell's corner is usually stored as text, and totals skip it. Select the column, choose Text to Columns, then Finish, and most of them become numbers. The tool's last step is also where you set the order of day and month in dates.
  7. Summarize. On the Insert tab choose PivotTable to get totals by city, month or product without a single formula.

If Excel refuses the formula, try a semicolon ; instead of the comma. It depends on your computer's language settings.

Keep it tidy

  • One piece of information per column: the name in one, the city in another.
  • Use Data Validation to offer a fixed list of choices instead of free typing.
  • Don't merge cells inside your data: merging breaks sorting and filters.

Rather have it done for you?

This service does it from $5, and the seller is paid only after delivering your work.

See the service

Sign in

Create account

Forgot password

Enter the email you registered with and we will send you a password reset link.