Home › Data analysis › Analyze a spreadsheet: how to do it with AI
Analyze a spreadsheet: how to do it with AI
From official vendor pages; selected tasks also include dated logged-out free-plan trials. Report an error.
Beginner Risk: Medium 📊 Data analysis
Upload a CSV or Excel file and ask questions in plain words, like "which product grew fastest last quarter?", and the assistant calculates the answer and can draw a chart. It helps when you need a quick answer and don't want to build a pivot table.
Who it’s for: Anyone with a spreadsheet and a question: analysts, small business owners, managers and students.
Why medium risk: The numbers look authoritative even when the AI misreads a column or skips rows, and spreadsheets often contain customer or staff data.
ChatGPT has the highest score on our published rubric (94/100) of the 4 tools listed for this task. Free plan includes limited file uploads; Plus ($20/month, verified) adds more capacity.
When it fits, and when it doesn’t
Good fit:
- Quick answers from a clean CSV or Excel file.
- Exploring a dataset before building a proper report.
Not a good fit:
- Files with names, emails or salaries you can't remove.
- Final numbers for finance, payroll or regulators without a manual check.
Step by step
- Remove columns you don't need, especially names, emails and IDs.
- Make sure the first row has clear column names, numbers are stored as numbers and dates use one format.
- Upload the file and ask the assistant to describe the columns, row count, missing values and duplicates before any analysis.
- Decide how to treat missing values (exclude, zero or flag) and tell the AI; don't let it choose silently.
- Ask one question at a time and request the method (filters, formulas or code) it used.
- Rebuild one answer yourself with a SUMIFS or pivot table and compare.
- Ask for a chart only once the numbers are right.
AI prompts to analyze a spreadsheet
Replace the [brackets] with your details. See all prompt examples
Here is a spreadsheet of [what it contains]. Before analysing, tell me: the number of rows, each column and its type, missing values, and anything that looks wrong (duplicates, odd dates, text in number columns).
Using this file, answer: [question]. Show the steps or code you used, the exact filters, and the final number. If the data can't answer it, say so.
Compare [period A] with [period B] for [metric]. List the 3 biggest changes, by how much, and which rows drive them. Then suggest one chart that shows it clearly.
Write the Excel or Google Sheets formula (SUMIFS, COUNTIFS or a pivot setup) that reproduces your answer, using my column names, so I can verify it in the original file.
Illustrative example
You paste
sales.csv: 1,240 rows, columns date, region, product, units, revenue. Question: which region had the biggest revenue increase from Q2 to Q3?
A good answer looks like
Rows: 1,240; no missing revenue values. Q2 to Q3 revenue change by region: West +$18,400 (+22%) East +$6,100 (+7%) North -$2,300 (-4%) West grew most, mainly product "Kit B" (+$11,900). Method: grouped by region and quarter of date, summed revenue. Check formula: =SUMIFS(revenue, region, "West", date, ">="&DATE(2026,7,1), date, "<="&DATE(2026,9,30)), minus the same formula for Q2 (named ranges assumed). Missing values: 6 rows with blank region, excluded and listed separately.
Illustrative example written for this guide, not output captured from a specific tool.
Check before you rely on it
- Row count in the AI's answer matches the file (no rows silently dropped).
- Totals match a SUM in your spreadsheet.
- Filters and date ranges are the ones you meant (check the code or formula it shows).
- Missing and duplicate rows were handled the way you chose.
Which tool to pick, and why
- ChatGPT (incl. Work & Codex): Free plan includes limited file uploads; Plus ($20/month, verified) adds more capacity. Free plan can do this Visit official website ↗
- Claude (incl. Claude Code): Free plan includes files and code execution, so it can run calculations on your upload instead of guessing. Free plan can do this Visit official website ↗
- Google Gemini: Free plan includes Canvas and Deep Research; Google AI Pro adds Gemini in Gmail and Docs. Free plan can do this Visit official website ↗
- Microsoft Copilot: With a Microsoft 365 Copilot plan it works inside Excel, so your data stays in the workbook you already use. Visit official website ↗
Reasons come from the capabilities, free-plan details and prices we've checked on official pages (separate from any dated trial above). Sources: chatgpt.com/pricing · claude.com/pricing · gemini.google/subscriptions/ · www.microsoft.com/en-us/microsoft-copilot/for-individuals
Common mistakes
- Uploading a file with names, emails or account numbers you didn't need.
- Trusting a total without checking one figure by hand.
- Asking five questions in one message.
- Not asking how blanks and duplicates were handled.
- Pasting a chart into a report without checking the axis and units.
- Letting blanks count as zero without deciding that.
- Numbers stored as text, so they're skipped in totals.
Privacy tip
Delete or mask personal columns (names, emails, phone numbers, IDs) before uploading. In Claude, turn off "Help improve our AI models" in Settings → Privacy; in Gemini, turn off Keep Activity.
Claude (incl. Claude Code) setting · Google Gemini setting · ChatGPT (incl. Work & Codex) setting · Sources: privacy.claude.com/en/articles/12109829-how-do-i-change-my-model-improvement-privacy-settings · support.google.com/gemini/answer/13594961 · help.openai.com/en/articles/7730893-data-controls-in-chatgpt