7 ChatGPT Prompts for Messy Data Cleanup

Do not paste a dirty spreadsheet into a chat window and ask for it back clean. You will get a rebuilt table with no trace of what changed, and you will not trust it. The better move is to ask for rules and formulas instead: what is wrong with each column, what the correct format is, and the exact expression that fixes it in place. These seven ChatGPT prompts for messy data cleanup are written that way, so every fix stays visible in your own workbook.

Quick checklist

  • — You have a copy of the file before anything is changed.
  • — Every column has one agreed format, written down.
  • — Duplicates are defined by a rule, not by eye.
  • — Blank cells mean one thing, and everyone knows which.
  • — Cleanup happens in new columns, not by overwriting the source.
  • — A filter-formula still catches bad rows after the cleanup.

The prompts

1. Column audit before any edit

Here is a sample of my sheet: [paste 10 rows with headers]. For each column, tell me what looks inconsistent, what format it should be, and how I would check it with a formula.

What it does: Names the problems column by column so you fix causes, not symptoms.

How to use: Replace [paste 10 rows with headers]; use a sample that includes your worst rows.

2. Header row cleanup

These are my current headers: [paste header row]. Rewrite them in a consistent style for [sheet purpose], and give me the [spreadsheet tool] formula to apply the same rule to new imports.

What it does: Fixes headers once so future imports do not break your formulas.

How to use: Replace [header row], [sheet purpose], and [spreadsheet tool]; keep names short enough to read in a narrow column.

3. Text standardization rule set

Write formulas to standardize the [column name] column: trim spaces, fix capitalization, and remove [unwanted characters]. Use [spreadsheet tool] syntax and explain each part.

What it does: Turns a hand-cleaned column into a repeatable transformation.

How to use: Replace [column name], [unwanted characters], and [spreadsheet tool]; test on ten rows first.

4. Duplicate rule with a helper column

I want to find duplicate [record type] in my sheet using [match columns] as the key. Give me a helper column formula that flags duplicates and keeps the earliest row.

What it does: Makes the duplicate definition explicit instead of guessing from names.

How to use: Replace [record type] and [match columns]; review the flagged rows before deleting anything.

5. Date normalization

My [date column] column has mixed formats like [example values]. Give me a formula that converts all of them to [target format] in [spreadsheet tool], and flag the ones that fail.

What it does: Gets every date into one real date value that sorts and filters correctly.

How to use: Replace [date column], [example values], [target format], and [spreadsheet tool]; check the flagged rows by hand.

6. Split or merge a combined field

The [column name] column contains [example value]. Give me formulas to split it into [field one] and [field two], and a formula to rebuild the original if I need to check.

What it does: Breaks one messy field into columns you can actually group by.

How to use: Replace [column name], [example value], [field one], and [field two]; keep the rebuild formula next to the split.

7. Standing validation check

Write a formula that returns the number of rows in [sheet name] that fail these rules: [list rules]. I want one cell that tells me if the sheet is clean.

What it does: Leaves you a permanent tripwire for the next batch of data.

How to use: Replace [sheet name] and [list rules]; put the cell at the top of the sheet where you will see it.

How to score your own output

  • Sort each cleaned column. If the order looks wrong, the format is still mixed.
  • Every formula still works when you add ten new rows.
  • You can tell a colleague which rule produced each column, in one sentence.

Keep going

GuPrompt keeps every prompt copy-paste ready. No account needed.

Leave a Comment