Data cleaning with AI: what it does well, and what to check
AI is genuinely useful for data cleaning, because most of it is repetitive pattern work. But a confident wrong answer is easy to miss, so the skill that matters is checking the result.
Where AI saves you time
- Writing the formula or query. Describe the mess and ask for a formula: "Names have extra spaces and random capitals." You'll usually get something like
=PROPER(TRIM(A2)). - Finding patterns. Ask what inconsistencies it sees in a sample, like "N/A", "n.a." and blanks that all mean the same thing.
- Explaining inherited work. Paste a long formula you didn't write and ask what each part does.
Only paste real company or customer data into tools your employer allows. For anything else, use a made-up sample with the same shape: the formula will work just as well.
The mistakes to look for
Dropped rows
A cleaning step can quietly remove rows, for example a filter that treats blanks as "no match". Compare the row count before and after, every time.
Numbers that became text
"EUR 120" turned into "120" still can't be added up if it's text, and SUM skips it without an error. =VALUE(SUBSTITUTE(A2,"EUR ","")) gives a real number. Check with =ISNUMBER(B2).
Duplicates removed too eagerly
Two orders from the same customer on the same day may both be real. Before deleting, decide which columns make a row truly the same, and count first: =COUNTIF(A2:A100,A2).
Invented values
If you ask a chat tool to clean the data itself, rather than give you a method, it may fill in a missing value that looks plausible. Ask for a formula or a script you can run and inspect, so that each change has a reason.
Dates read the wrong way
03/04/2026 is March or April depending on the country. Check a few dates that can only be read one way, like 25/04/2026, and look at the earliest and latest date in the column.
A simple way to check any cleaning step
- Count the rows before and after.
- Compare a total you trust, like the sum of a key column.
- Look at ten rows by hand, including the strangest ones.
- Keep the original column, and write the cleaned version next to it.
- Write down what you changed, so someone else can repeat it.
Why you still need the basics
You can only catch a wrong formula if you can read it. That's the reason to learn TRIM, SUBSTITUTE and COUNTIF even in a world where AI writes them for you: you become the person who checks the work, and that's the part companies still pay a person for.
Open the cleaning lesson