Back up, then clean the data

Save a copy of the workbook first, then trim, remove hidden characters, empty rows and duplicates.

Changes data. A backup copy and an undo point are turned on.

What it does, step by step

  1. Save a copy named “Before cleanup”
  2. Trim extra spaces in A1:Z1000
  3. Remove hidden characters in A1:Z1000
  4. Delete empty rows
  5. Remove duplicate rows (checks column 1)

Use it in MacroRoni: open the Starter gallery, search for "Back up, then clean the data", check the steps, and adjust the sheet and ranges to fit your workbook. Preview the result before you run it.

Get MacroRoni free

More workbook tools macros