All posts
8 min read

How to clean messy CSV and Excel data without writing code

Real-world spreadsheets are messy: trailing spaces, "NY" and "New York" and "new york" in the same column, blank cells, and duplicate rows. Cleaning that by hand is slow and error-prone, and cleaning it with a one-off script is hard to review and impossible to reuse. There is a better middle path: reviewable, reversible, reusable cleaning steps. Here is how it works.

The three problems with manual data cleaning

Cleaning data by hand in a spreadsheet has three failure modes. It is slow at any real scale. It is invisible: once you have find-replaced your way through a column, nobody (including you next month) can see what you did. And it is unrepeatable: when next week's export arrives with the same mess, you start over.

What clean data actually requires

  • Whitespace and casing. Trim stray spaces and normalize inconsistent capitalization.
  • Label normalization. Collapse near-identical values ("USA", "U.S.A.", "United States") into one canonical form.
  • Missing values. Decide, per column, whether to fill, flag or drop blanks.
  • Duplicates. Remove repeated rows without losing distinct ones.
  • A record of what you did. So the cleaning is auditable and repeatable.

Reviewable beats automatic

Fully automatic "magic clean" buttons are dangerous because you cannot see what they changed. The better model is a tool that suggests a fix, shows you the exact before-and-after diff, and lets you accept or reject it. You stay in control, and you can trust the result.

Reusable beats one-off

The highest-leverage idea in data cleaning is to treat your sequence of fixes as a recipe. Once you have cleaned this month's file, you have also built a pipeline you can re-run on next month's file in one click. The cleaning stops being a chore and becomes a reusable asset.

Doing it with Tidyset

Tidyset is a focused Mac data-cleaning workspace built exactly this way. It offers reviewable smart suggestions with previewed diffs for whitespace, labels and missing values; column profiling with histograms and a dataset quality score; fuzzy clustering to normalize near-identical labels; formulas and global find and replace. Crucially, every action becomes a reversible, reusable recipe: the recipe is your undo history and it re-runs deterministically on new files. It is fully offline, so your data never leaves the Mac.

On this site Tidyset is a fully activated download: donate and download, no subscription.

Frequently asked questions

How do I clean a messy CSV without writing code?

Use a reviewable data-cleaning workspace. Tidyset suggests fixes for whitespace, inconsistent labels and missing values, shows you the before-and-after diff, and lets you accept or reject each one, with no code required.

How do I merge inconsistent labels like 'NY' and 'New York'?

Fuzzy clustering groups near-identical values so you can normalize them to a single canonical label in one step. Tidyset includes this alongside global find and replace.

Can I reuse the same cleaning steps on next month's file?

Yes. In Tidyset every action becomes a reusable recipe that re-runs deterministically, so cleaning a recurring export becomes a one-click job instead of starting over.

Is my data uploaded anywhere during cleaning?

No. Tidyset is fully offline, so your CSV, Excel and JSON files stay on your Mac.

Get the app

On this site the apps are fully activated downloads supported by a donation, with no account and no subscription. Donate and download Tidyset, or browse all nine native Mac apps.

Related reading