How to use AI for Excel and Google Sheets formulas and data cleanup
Get working spreadsheet formulas, clean messy data and analyze tables using ChatGPT, Claude or Copilot, with prompts and a verification checklist.
A printable 10-page reference with error fixes and a "works in" label on every formula. One-time $5, 30-day refund.
Get the cheat sheet for $5 →You don't need to memorize formulas anymore. You need to describe your sheet precisely.
Describe your columns
AI can't see your file unless you upload it, so tell it the layout:
I'm using Google Sheets. Column A = order date, B = customer name, C = product, D = quantity, E = unit price. Data is in rows 2-500.
Write a formula for F2 that calculates the order total, and a formula that sums total revenue for "Widget Pro" in March 2026.
Explain each formula in one sentence.Fix broken formulas
This Excel formula returns #N/A: =VLOOKUP(B2,Prices!A:B,2,FALSE)
Column B has product codes; Prices!A has codes too. What are the likely causes and how do I fix them? Suggest an XLOOKUP version.(The usual culprit: stray spaces or numbers stored as text. AI will suggest TRIM or VALUE.)
Clean messy data
Give me formulas to: split "Last, First" in A into two columns; standardize phone numbers in C to (555) 123-4567; flag duplicate emails in D.Analyze with an upload
ChatGPT, Claude and Gemini can read uploaded CSV/XLSX files on many plans. Ask: What are the top 3 trends in this sales data? Show a table by month and point out anything unusual. Remove personal data before uploading.
Verification checklist
- Test the formula on 3 rows you can check by hand.
- Ask the AI to show its working for any summary number.
- Lock ranges with
$before dragging formulas down.
Ready to automate? Build your first AI automation in Make.com, free.
Picking a tool? Compare Make vs Zapier vs n8n for beginners.
🧩 Formula not what you wanted? Fix the prompt first
Role, task, context, format, constraints: the 5-part formula behind every prompt on this page, with a before/after example and a reusable template.
A printable 10-page reference with error fixes and a "works in" label on every formula. One-time $5, 30-day refund.
Get the cheat sheet for $5 →Frequently asked questions
Can AI write Excel formulas?
Yes. Describe your columns and the result you want, and ask for the formula plus a plain-English explanation. Test it on a few rows before filling it down.
Does Google Sheets have AI built in?
Google offers Gemini in Sheets on eligible Workspace plans, and Excel has Copilot on eligible Microsoft 365 plans. You can also use any chatbot by describing your sheet.
Can I upload a spreadsheet to ChatGPT?
ChatGPT and other tools accept file uploads on many plans. Remove sensitive data first and spot-check any totals it reports.
Quick tips on this topic
⚡ Describe your columns, get a formula
AI can't see your sheet. Tell it what's in each column and you'll get a working formula.
⚡ Paste the error, get the fix
#N/A, #REF, #VALUE: paste the formula and the error, and ask for likely causes.
⚡ Clean names in seconds
Splitting 'Last, First' or fixing ALL CAPS? Ask for the cleanup formulas.
🎁 Get all 162 copy-paste prompts free
Every prompt from our guides and tips on one page, for email, spreadsheets, meetings, automation and more. Fill in the brackets and paste.