How to Clean Messy CSV and Excel Data Before You Use It
Trailing spaces, invisible characters, empty rows and “N/A” placeholders break lookups and imports. Here is how to find and fix them in one pass.
Exports from CRMs, web forms and older systems often look fine on screen but fail when you use them: a VLOOKUP returns nothing, an import rejects rows, or the same customer appears twice. The cause is usually invisible — extra spaces, non-breaking spaces, empty rows, or placeholders like "N/A" mixed in with real values.
The most common data problems
- Leading, trailing and double spaces — "Lahore " and "Lahore" are different values to a computer.
- Invisible characters — non-breaking spaces and zero-width characters copied from web pages or PDFs.
- Empty rows and columns — left behind by exports or manual edits.
- Placeholders — "N/A", "null" or "-" in cells that should simply be empty.
- Inconsistent text case — "KARACHI", "karachi" and "Karachi".
- Messy headers — "Customer Name ", "customer_name" and "CustomerName" in different files.
- Duplicates and thousands separators — repeated rows, and numbers like "1,250,000" stored as text.
How to clean a spreadsheet in one pass
- Open the Spreadsheet Data Cleaner and upload a CSV or Excel file.
- Turn on the cleaning steps you need — trimming spaces, removing invisible characters, empty rows and columns, placeholders and duplicates, changing text case, and standardizing headers to snake_case, camelCase or Title Case.
- Watch the counts update so you can see exactly what each step changes.
- Download the clean file as CSV or XLSX.
A sensible cleaning order
Trim spaces and remove invisible characters first, because they hide duplicates. Then blank out placeholders, standardize case and headers, and only then remove duplicates — otherwise "Ali " and "Ali" are counted as different people. Dates are left exactly as they are, so check them separately if your sources use different formats.
Next steps: remove duplicates by specific columns, merge cleaned files, or convert the result to JSON.
Frequently Asked Questions
Why does VLOOKUP fail on data that looks identical?
Usually because of extra or non-breaking spaces or different text case. Trimming spaces and removing invisible characters fixes most of these mismatches.
Will the cleaner change my numbers or dates?
Only if you ask it to. Thousands separators are removed only when that option is on, and dates are left exactly as they are.
Can I see what was changed?
Yes. Each cleaning step shows how many cells or rows it affected before you download.
Is my data uploaded?
No. Cleaning happens in your browser and your file never leaves your device.
