Clean messy data before you analyse it
Most wrong numbers in a report do not come from a wrong formula. They come from the data: “Paris” and “PARIS ” counted as two cities, dates that half the file reads as text, a customer counted twice. Cleaning is unglamorous and it decides whether the analysis is right. Here is a checklist that covers the usual defects, with the Excel functions for each, and how to do it on files too big for Excel.
The checklist
| Defect | Symptom | Fix |
|---|---|---|
| Stray spaces | Two groups that look identical in a pivot | TRIM |
| Inconsistent capitals | “paris”, “Paris”, “PARIS” | PROPER, UPPER or LOWER |
| Dates in two formats | Some dates sort as text, grouping by month fails | Convert, telling day from month |
| Numbers stored as text | Totals too low, SUM ignores cells | VALUE, or change the column type |
| Empty text vs truly empty | Counts of blanks that disagree | Replace empty text with empty cells |
| Blanks under a group label | Rows without their category | Fill down |
| Two facts in one cell | “Alice Martin, Lyon” | Split the column |
| Duplicates | Customers counted twice | Remove duplicates on a key |
The Excel functions to know
=TRIM(A2) removes spaces at both ends, and repeated spaces inside
=PROPER(A2) "jean DUPONT" becomes "Jean Dupont"
=CLEAN(A2) removes line breaks and other non-printing characters
=SUBSTITUTE(A2,".","") removes every dot, e.g. in phone numbers
=VALUE(A2) reads "1,234.50" as a numberIn Excel, each of these goes in a helper column, copied down to the last row, then pasted as values over the original. On a few thousand rows it is quick. On a million it is slow, and above 1,048,576 rows the data does not fit.
Dates: the most expensive defect
A file assembled from several systems often mixes 2026-07-27 and 27/07/2026, and sometimes 07/27/2026. Excel reads some of them as dates and leaves the others as text, depending on your regional settings. Sorting, filtering by month and pivot grouping then silently ignore part of the rows.
The fix is to decide, once, whether the day or the month comes first in the ambiguous values, and convert the whole column to real dates. Check afterwards by sorting: the oldest and newest dates should make sense.
Clean data in Big Sheets
Big Sheets is a spreadsheet for files of several million rows, in your browser. It looks for the common defects during the import and offers to fix them, so a lot of the checklist is done in a few clicks.
- Open the file. Amber marks on column headers flag problems found: mixed date formats, spaces, empty text.
- Click a mark to read what was found.
- Open Clean. The panel lists suggestions, such as remove leading and trailing spaces, convert dates, replace empty text with empty cells.
- Apply them one by one, or Apply all. For dates, say whether the day or the month comes first.
- For blanks under a group label, select the column and choose Fill down empty cells.
- For two facts in one cell, choose Split column and a separator.
- Finish with Remove duplicates, comparing on the key columns and ignoring case and spaces.
The same functions as Excel are available for anything else, in English or French, applied to the whole column at once: TRIM, PROPER, CLEAN, SUBSTITUTE, VALUE and more.
Make the cleaning repeatable
An export that is messy this month will be messy next month in the same way. Big Sheets records each step you apply. Save them as a recipe, then replay the recipe on the next file: the same cleaning runs again, and a report tells you how it went. You can also download the steps as a PDF or Word document, to document the process or hand it over.
Clean, then check
- Row count before and after: only duplicate removal should change it.
- Distinct values of category columns: after trimming and fixing capitals, the list should be shorter and make sense.
- Minimum and maximum of numbers and dates: absurd values reveal decimal errors or misread dates.
Your files stay on your device while you clean them: Big Sheets never uploads them. Try the cleaning on the sample data first, no account needed.
Try it on your own file
Open it in Big Sheets: no sign-up, and your file never leaves this browser.
One plan: €29 incl. VAT per month, everything included, cancel any time. See pricing
Questions
- Does TRIM remove spaces inside the text?
- It reduces repeated spaces to one and removes those at both ends, in Excel and in Big Sheets.
- Can Big Sheets fix dates in two formats?
- Yes. The Clean panel converts them to real dates once you say whether the day or the month comes first.
- Can I reuse the cleaning on another file?
- Yes. Save the steps as a recipe and replay it on the next file.