Get the local build — $9
cleaning

Cleaning a messy spreadsheet without breaking it

Four problems account for most of the pain: dates stored as text in three different formats, amounts with currency symbols, invisible whitespace, and rows that are visually empty but technically not.

Dates

Real exports contain 2024-01-13, 13/01/2024, 20240113, and Excel serial numbers like 45304. All four describe the same day. Parse all four, and write one format out.

The dangerous case is 01/02/2024 — January 2nd or February 1st? There is no way to know from the value alone. If a column contains any day above 12, the file's convention is day-first; otherwise flag the column and ask a human. Guessing silently is how reports end up a month out.

Amounts

1,234.00, ¥1,234, 1234元, (1234) for negative — strip the decoration, keep the number. Then the column sums correctly instead of returning 0.

A column that sums to exactly 0 is the classic symptom: every cell is text, and SUM ignores text.

Whitespace

Trim leading and trailing spaces, collapse runs of spaces to one, and remove the full-width space U+3000 — common in Chinese and Japanese exports and invisible in every font. It breaks VLOOKUP and it breaks duplicate detection.

Empty-looking rows

A row of cells containing a single space is not empty to a spreadsheet. Treat whitespace-only cells as empty, or your row count will be wrong by however many blank lines the export appended.

Step by step

  1. Merge everything into one sheet first — cleaning 12 files separately is 12× the work.
  2. Run clean with date, number and whitespace normalization on.
  3. Read the problem list. Every value that could not be parsed is listed with its sheet and original row number.
  4. Fix the ones that matter in the source, or accept the blank and re-run.
  5. Only now build the summary — cleaning after summarizing means doing it twice.

The command, concretely

3 files / 192 rows
-> 180 rows after dedupe
-> 149 problems logged (unparseable dates, text amounts, whitespace-only cells)

What goes wrong

Fixing dates with Find & Replace

Replacing / with - turns a date into a string that Excel still will not sort. Parse to a real date value, then format it.

Rounding too early

Round only at display time. A column rounded to 2 decimals before summing drifts by cents per row, which becomes a visible discrepancy at 10,000 rows.

Questions people actually ask

Will cleaning delete my original data?

It should not. Write to a new file and keep the source untouched — you will need to compare at least once.

How do I know which cells were changed?

Insist on a problem list sheet listing sheet name, original row number, column and issue. Without it, cleaning is indistinguishable from data loss.

Do it now, in this browser

Drop the folder in, check the detected header, merge. Nothing is uploaded — the file is processed in the tab. Free for one-off merges; the unlimited local build is $9.