Every import from a CRM, accounting system, HR platform or supplier CSV brings the same issues: dates that won't sort, numbers stored as text, trailing spaces, inconsistent capitalisation, and duplicates that aren't detected. These problems are often invisible — yet they break your formulas and waste hours.
Claude can't clean the data for you, but it excels at two things: diagnosing exactly what's wrong from a small sample, and giving you the precise formulas to fix it fast.
Paste a few rows, explain the issue, and Claude returns the right combination of cleaning formulas — plus clear instructions on how to apply them safely.
The four most-used cleaning formulas — and when to use each:
- Paste sample rows and Claude identifies invisible problems — spaces, type mismatches, inconsistent formats
- Claude writes the cleaning formula for each column — TRIM, VALUE, PROPER, DATEVALUE or a combination
- Claude tells you whether to fix in place or use a helper column
- Claude writes a reusable cleaning template for every future import from the same source
Six steps — from raw imported data to a clean, formula-ready column.
Diagnose the issue quickly
Run a SUMIFS or COUNTIF on the imported data. If it returns 0 when matches exist, you have a formatting problem. Sort a date column — if it sorts alphabetically instead of chronologically, the dates are stored as text.
Send a sample to Claude
Copy 5–10 rows from the problematic column. Tell Claude what the column should contain and exactly what's going wrong. The more specific, the faster the diagnosis.
Get the fix
Claude identifies the problem and gives you the exact cleaning formula for that column — whether that's TRIM, VALUE, PROPER, DATEVALUE, CLEAN, or a combination like =TRIM(PROPER(A2)).
Use helper columns only
Never overwrite the original imported data. Apply the cleaning formula in a new column next to the original. Verify the results on a sample of rows before copying the formula down the full column.
Paste as values and replace
Once the helper column looks correct, copy it, then Paste Special → Values only into a new column. Delete the original imported column and the formula column. You now have clean data.
Build a reusable template
Ask Claude to create a permanent cleaning checklist for that specific data source. Next time you import from the same system, you have the fixes ready — the whole process takes minutes instead of hours.
=TRIM(PROPER(A2)) removes spaces AND fixes capitalisation in one formula. Ask Claude to combine the functions you need — it handles nested combinations cleanly.Copy these prompts into Claude. Replace the bracketed placeholders with your actual data and problem description.
Diagnostic prompt
Cleaning formula prompt
Reusable template prompt
CLEAN vs TRIM: TRIM removes spaces. CLEAN removes non-printable characters — the hidden characters that appear when you import from legacy systems or mainframes. If TRIM doesn't fix the problem, try =CLEAN(TRIM(A2)).