Clean up a messy spreadsheet with ChatGPT
Use ChatGPT to diagnose inconsistent names, dates, and duplicates in a sheet, get formulas or a repeatable cleanup plan, and verify the result before you trust it.
Published November 11, 2026
Why this matters
Exported lists are rarely clean: “Acme Inc”, “ACME, Inc.” and “acme” are three customers to a spreadsheet. ChatGPT can help you plan the cleanup and write the formulas, so you spend time on judgment rather than retyping.
What you’ll need
- A copy of the sheet (work on a duplicate, never the original)
- A small sample of rows with sensitive columns removed or fake
- Knowing which spreadsheet app you use (Excel or Google Sheets), since formulas differ
Step-by-step
1. Duplicate and sample
Make a copy of the file. Copy 15–25 representative rows, including the worst ones, into your prompt. Replace real names, emails, and phone numbers with fake ones.
2. Ask for a diagnosis before a fix
I use [EXCEL / GOOGLE SHEETS]. Below is a sample of rows from a customer list (fake data).
Columns: [COLUMN NAMES]
Sample:
[PASTE SAMPLE]
1. List the data quality problems you see (inconsistent casing, date formats, duplicates, stray spaces, mixed units).
2. For each problem, give me a formula or a step-by-step menu method that fixes it.
3. Tell me how to flag likely duplicates for manual review instead of deleting them.
4. Give me a short checklist to verify the cleanup worked.
Explain each formula in one plain-English sentence.
3. Apply to a helper column first
Put each formula in a new column next to the original. Never overwrite source data until you have compared results.
4. Verify
Check row counts before and after, spot-check 20 random rows, and sort to see if odd values remain. Ask ChatGPT for more edge cases if you find some.
5. Save the recipe
Write down the steps in a note so the next export takes minutes. You can ask ChatGPT to turn your final steps into a checklist.
Tip: Ask for “flag, don’t delete” on duplicates. A human decides which record survives.
Watch out: Formulas can look right and still be wrong on edge cases. Test on rows you know the answer to.
Tips
- Standardize dates early; many errors come from mixed formats.
- Use data validation lists to prevent the problem next time.
- Keep a “Changes” tab that notes what you did and when.
Common pitfalls
- Pasting the entire customer file into the chat
- Working on the only copy
- Trusting the output without row-count checks
Team Safety & Privacy Note
- Use fake or anonymized sample rows. Never paste real personal data, financial account numbers, or credentials.
- If your plan lets you analyze uploaded files, check that your company has approved it for the data involved.
- Keep a backup of the original export.