Analyse a spreadsheet with AI: ask, chart, then check
Upload a CSV or Excel file, ask questions in plain language and get charts. The step that matters most comes last: recompute a few numbers yourself before you rely on the answer.
- You'll get
- Answers to a few questions, one or two charts, and key numbers you've checked yourself.
- You need
- A spreadsheet (CSV or Excel) with clear column names in the first row. Remove names, phone numbers, ID numbers and other personal details you don't need. For a first try, a sheet of a few hundred rows is plenty.
- Cost
- Try the tools and free plans you already have first; limits, features and availability vary — check the provider.
Sample file: download it to try along in your AI (a fictional example)
Which tool? See suggestions and limits
Which tool
Suggestions by task, not a tested ranking. If a tool you already have can do the job, keep using it.
| Tool | When to use it | Watch out for |
|---|---|---|
| ChatGPT | You want to upload a spreadsheet and ask about it in conversation. To combine several sheets, produce a report with charts or create a new spreadsheet, switch to Work. | As of October 2026, OpenAI's feature table lists Work on Plus, Pro and business plans. Open any generated file and check every sheet. |
| Claude | You want it to write code to do the maths and draw charts, or to create an Excel file with working formulas. | Turn on "Code execution and file creation" in Settings > Capabilities. Files are limited to 30MB each. |
| Gemini (Google Sheets) | Your data already lives in Google Sheets and you want help with formulas, charts and pivot tables from the side panel. | Needs an eligible Google Workspace or Google AI plan. Save Excel files as Google Sheets first. Reloading the page clears the side-panel history. |
| Copilot (Excel) | Your organisation uses Microsoft 365 and you want to edit, chart and pivot right inside Excel. | Not every Microsoft 365 subscription includes Copilot. It opens in edit mode and changes the workbook directly; switch to chat-only mode if you just want answers. |
How to do it the first time
When an AI analyses a spreadsheet, it usually doesn’t just glance at it and report a number. It writes a small program or a formula to do the calculation, then explains the result. That makes it more reliable than mental arithmetic. But if it reads the wrong column, skips blank rows or treats text as numbers, every conclusion after that goes off course, and it still looks perfectly organised.
- Tidy the sheet before uploading. Put column names in the first row (“Date”, “Store”, “Sales”), keep one kind of thing per column, and put units in the column name (“Sales (£)”). Remove personal details the analysis doesn’t need.
- Ask it to describe the data before asking for conclusions. “How many rows and columns are there? What type is each column? Are there blanks, duplicate rows or outliers?” Compare that with what you see when you open the file yourself, and only carry on once they match.
- Ask specific questions in plain language. “Which store grew fastest from July to September? Show it month by month” works far better than “analyse this”. Say how to handle the data: skip blanks or count them as zero, subtract returns or not.
- For charts, say what question the chart should answer. For example: “A line chart comparing the two stores’ monthly sales, months along the bottom, amount up the side, and mark any month with missing data.”
- Recompute a few key numbers yourself. In Excel or another spreadsheet app, use sum, count and filters to work out one or two totals and one percentage. If they match, read its conclusions. If not, ask it to show its steps or formulas and find where the difference comes from.
Prompts to copy
Replace the parts in square brackets with your own situation, then attach the spreadsheet.
I've uploaded a spreadsheet of [short description, e.g. sales records for three stores, July–September 2026]. Step one: don't analyse anything yet. Just tell me: - the number of rows and columns, and what each column means and its data type; - how many blanks, duplicate rows and obvious outliers there are, and where. Step two: once I've confirmed, answer this question: [your specific question] Requirements: - Blanks: [skip them / count as zero / ask me first] - Show the calculation method or formulas so I can check them myself. - If you make a chart, say which question it answers. - In your conclusions, separate what the data shows directly from what you're inferring.
Example
An illustrative example written by our editors to show the shape of a good result; not a recorded output from a specific tool.
Month, Store, Sales (£) July, East, 12000 July, West, 9000 August, East, 12600 August, West, 10800 September, East, 13200 September, West, (blank) Question: which store grew faster from July to September?
Data check: 6 rows; West's September sales are blank. East: July 12,000 → September 13,200, up 10% (13,200 ÷ 12,000 = 1.10). West: no September figure, so July–September growth can't be calculated; July → August went from 9,000 to 10,800, up 20%. Conclusion: there isn't enough data to compare the whole quarter. Add West's September figure, or confirm you only want to compare July–August. For you to check: East's three-month total should be 37,800.
Check and adjust
- The row count and column names match what you see in the file; no sheet was skipped and the header row wasn’t read as data.
- You’ve recomputed at least two or three key numbers yourself and they match.
- You agree with how blanks, duplicates and outliers were handled.
- Chart axes, units and time ranges are right, and the vertical axis doesn’t start halfway up and exaggerate differences.
- The conclusions don’t go beyond what the data can show: a spreadsheet tells you what happened; why needs other evidence.
If the result is off, you can follow up like this:
Your figure of [number] doesn't match my own calculation of [my result]. Show me how you calculated it: which columns and rows you used (and any filters), how you treated blanks and duplicates, and the exact formula or code. Once you've found the difference, recalculate and tell me whether any other conclusions are affected.
Next steps
Once you’re comfortable, ask it for a spreadsheet you can reuse, such as a summary sheet with formulas that updates when you paste in next month’s data. Claude and ChatGPT can both create Excel files to download; Gemini in Google Sheets and Copilot in Excel work directly in your sheet. Whichever you use, open every sheet and click into a few formulas before you hand it on.
Try it yourself
An example is filled in. Change the goal, input, output and constraints to your own; the prompt updates as you type. Copy it into your AI app. Nothing leaves this page.
Goal: Compare July–September sales growth for two stores Input: A CSV in yuan; West store is missing September Output: Data checks, formulas and a labelled trend chart Constraints: Do not turn missing values into zero; separate facts from inference Ask if information is missing; do not invent it. Explain what I need to verify.
Copy into your usual AI, then attach your source material.
Sources
- OpenAI: Use ChatGPT (attaching spreadsheets, checking results)
- OpenAI: Work with files in ChatGPT
- OpenAI: ChatGPT Work plans and feature availability
- Claude: Create and edit files with Claude (data analysis, file limits, security)
- Google: Gemini in Google Sheets
- Microsoft: Get started with Copilot in Excel
- OpenAI: Data controls FAQ
- Anthropic: Is my data used for model training?
- Google: Gemini Apps Privacy Hub