Clean a Messy CSV and Build a PivotTable in Plain English (with AI)
By Automate Basics
Loading guide…
By Automate Basics
The real skill is describing the result you want in plain English and letting AI do the work. Paste your messy rows into Claude or ChatGPT and ask it to "remove duplicates, split the full-name column, and summarize revenue by month." It returns the cleanup steps and exact formulas to drop into Excel or Sheets — no macros, nothing to install.
Cleaning a messy export quietly eats an afternoon: dedupe the rows, fix the inconsistent columns, build the summary your boss asked for. The real skill is describing the result in plain English and letting AI write the steps — the spreadsheet is just where the data lives.
Forget memorizing VLOOKUP and TEXTSPLIT. The smart move is describing the result you want and letting an AI translate it into the exact steps and formulas. "Split the full-name column into first and last" beats hunting through menus. The tool you paste into is interchangeable; what matters is learning to say precisely what "clean" and "summarized" mean for your data.
Before anything else, open your CSV and turn the range into a Table. In Excel, click in the data and press Ctrl+T; Google Sheets treats a clean header row the same way. This one move makes everything downstream more reliable, because your columns become named fields — "Email", "Revenue" — instead of a loose blob of cells. AI-written formulas reference those names and just work.
Open Claude or ChatGPT and describe the cleanup in normal words. Paste a few anonymized sample rows, or just list your column names so it knows the shape:
My sheet has columns: Full Name, Email, Country, Revenue, Date.
Give me the exact steps and formulas to:
- remove duplicate rows
- delete rows where Email is blank
- split Full Name into First and Last
- standardize Country to two-letter codes
It returns numbered steps plus the precise formulas to paste in.
Now get the analysis the same way — by describing the outcome, not the formula:
Then show me how to build a PivotTable of total Revenue by Month,
with a column for month-over-month change.
Or hand it the numbers and ask, "What are the three most interesting trends here?" You go from raw export to a boss-ready summary without writing a single formula from scratch — just pasting in the ones it hands you.
Work on a duplicate of the file the first few times so mistakes cost nothing. Paste each formula where the AI tells you, then sanity-check the result against what you expected. Did the row count drop after deduping? Does the monthly total look right? Ctrl+Z reverses anything instantly. This review habit keeps the analysis trustworthy — and teaches you the formulas by reading them in context.
If you only need quick charts and have no time to prompt, both spreadsheets hide a one-click helper: Analyze Data in Excel, Explore in Google Sheets. Select your table, click it, and you get suggested charts, totals, and PivotTables automatically. Less flexible than describing exactly what you want to an AI, but free, built in, and plenty for everyday reporting.
Make the win repeatable. Once the PivotTable is built, save the workbook as a template and just paste next month's data in. Stuck on one formula? Ask the AI "write a formula that flags any order over 30 days old" instead of Googling syntax. The whole approach is tool-agnostic — the same plain-English workflow runs identically whether your data lives in Excel or Sheets.
Pick the single messiest column in a real export — a Full Name to split or a Country to standardize. Describe just that one fix to Claude or ChatGPT, paste its formula onto a copy of the file, and watch the column tidy itself. That small win is the whole skill in miniature.
Take the messy export you already have — everyone has one — and describe the clean-up in plain English exactly as the guide shows. Do not touch a formula until the description fails; it mostly won't.
That’s the whole lesson. Try it on a real task while it is fresh, then come back for the next one.
Describing the cleanup in plain English and letting AI do it is the skill that matters; the spreadsheet is just where your data lives. Paste the rows into Claude or ChatGPT and ask for the cleanup steps, the exact formulas, and the summary, then apply them in Excel or Google Sheets.
The same corner of the library, one job further on.