Developer and Text Tools

How to Clean Messy Spreadsheet Data: Facets, Clustering and a Replayable History

A step-by-step method for cleaning CSV and Excel data: explore columns with facets, merge spelling variants by clustering, keep every change undoable.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
How to Clean Messy Spreadsheet Data: Facets, Clustering and a Replayable History

How to Clean Messy Spreadsheet Data: Facets, Clustering and a Replayable History

Analysts often say most of their time goes into cleaning data. The work is easier with the right method: look before you change, let the computer find likely duplicates, and keep a record of every step. The Data Cleaning Studio follows the approach made popular by OpenRefine, in a browser tab.

Step 1: facet each important column

A facet lists the distinct values in a column with their counts. It immediately shows problems that are invisible in a long table: "USA", "usa" and "U.S.A."; a city with a trailing space; a blank where a value should be. Click a value to see only those rows.

Step 2: cluster spelling variants

Clustering groups values that are probably the same:

MethodCatches
FingerprintCase, accents, punctuation, extra spaces, word order
2-gram fingerprintMissing or extra spaces inside words
Nearest neighbourOne- or two-letter typos
Sounds-alikeDifferent spellings that sound alike

Start with fingerprint, which is safe, then try the looser methods and read each cluster before merging. "Paris, France" and "Paris, TX" are different places.

Step 3: transform

Trim spaces, fix case, convert text like "1,200.50" into real numbers, split "Lee, Ann" into two columns, fill down blank cells left by merged-cell exports, and remove duplicate or empty rows.

Step 4: keep the history

Each change is recorded as a step. If a merge was wrong, remove that step and the rest replay on the original data. Copy the steps as JSON to document what you did.

A worked example

The sample list has nine customers with three spellings of New York, a typo of Boston, two spellings of San Francisco and a duplicate row. Fingerprint clustering merges New York and San Francisco; nearest neighbour merges Bostn into Boston; removing duplicates leaves eight clean rows with four cities. Five steps, all reversible.

Good habits

  • Never overwrite the original file; export the cleaned version separately.
  • Clean the key columns first: IDs, names, dates and amounts.
  • Fix the source: if a form collects free-text countries, change it to a list.

Work in small, saved steps

Every tool in this series keeps your work as a project in your own browser. Make a change, check the preview, and use undo (Ctrl+Z) or redo (Ctrl+Y) freely; nothing is lost while you experiment. Before a big change, save a named copy from the Projects menu, so you can return to it later or compare two versions side by side. Export the project file when you want to move it to another computer or keep a backup, and import it again whenever you need it.

Privacy by design

The processing happens in the page itself. Files you open are read by code running on your device, results are calculated locally, and nothing is sent to a server or stored in a cloud account. That makes the tool suitable for customer lists, financial data and other material you would not upload to an unknown website. If a component such as a file reader or a map outline is downloaded from a public CDN, only that open-source code or public data is fetched, never your own content.

Share the result clearly

When you pass the output to colleagues, say where the data came from, when it was exported, and which settings you used, so that someone else can repeat the work and get the same answer. Keep the original file unchanged and store the cleaned or calculated version separately. A short note with the assumptions, filters and date saves a lot of questions later and makes the result easier to trust.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages