How to analyze a spreadsheet with AI, step by step
The order matters more than the tool. This is the sequence that gets you a number you can defend:
- Upload the raw .xlsx or CSV, not the presentation copy with subtotals in it.
- Ask for a profile: rows, column types, blanks, duplicates, distinct values.
- Fix what the profile found, approving the cleanup mapping before it runs.
- Ask one specific question, and require the method and exclusions with the answer.
- Check it: run the anomaly prompt, hand-check the smallest group, and ask for the formula or code behind the headline figure.
Step 2 is the one people skip, and it's the one that saves the analysis. A messy export can carry rows with a trailing space in the region name, two date formats, a subtotal row in the middle and hundreds of blanks in the column you're about to average. Ask your question first and you get a confident answer computed over all of that.
Prompt: the profile
Profile this file before we analyse anything. Return: row count, column names with inferred type, the count and percentage of missing values per column, the number of exact duplicate rows, the distinct values for every column with fewer than 25 distinct values, the min and max of every numeric and date column, and any column where the values look inconsistent (mixed formats, trailing whitespace, mixed units, mixed date formats). Do not analyse or interpret yet. Just tell me what is in the file and what looks wrong with it.
Read the distinct-values list line by line. That's where "UK", "U.K." and "United Kingdom" show up as three regions, and where a row labelled "North total" gives away a subtotal hiding in the data.
Prompt: fix what it found
Standardise the issues you identified: trim whitespace, unify [column] to a single format, and consolidate these variants: [list them]. Show me the mapping you applied as a table before applying it. Do not drop any rows without telling me which and why.
Prompts for pivot tables, cohorts and anomalies
A good analysis prompt names the column, the operation and the output, and it asks for the working. Vague questions get vague answers.
Prompt: a pivot table with the working shown
Group by [column] and calculate [metric]. Return a Markdown table with the group, the count of rows in it, and the metric. Below the table, state exactly how you computed the metric, which rows you excluded and why, and how you handled blanks. Sort descending by [column].
Prompt: the cohort question
For each [cohort dimension, for example signup month], calculate [metric] at [interval]. Show the cohort size alongside every figure. Flag any cohort with fewer than [n] rows as too small to interpret rather than reporting a percentage for it.
The small-cohort line stops the most misleading output in spreadsheet work: four users reported as "75% retention" in the same table as a cohort of nine thousand.
Prompt: anomaly hunting
What is suspicious about this data? Look for: values outside a plausible range, sudden discontinuities in a time series, columns where the distribution changes partway through, rows that are exact or near duplicates, values that appear too round, and anything that suggests a change in how the data was collected. For each, quote the specific rows.
No formula does what that prompt does. It finds the day tracking broke, the vendor who switched currencies, and the duplicate import that inflated a quarter, and because it quotes rows, you can check each claim in seconds.
Prompt: the chart specification
Recommend the right chart for this question and this data shape, and explain why the obvious alternative is worse here. Then give me the specification: chart type, x, y, series, aggregation, sort order, and axis treatment. Do not use a dual axis. Do not truncate a bar chart axis.
Can AI do spreadsheet math? Only some tools run real code
Here's the split that decides whether you can trust a total. A model that reads your numbers as text predicts the digits, and over hundreds of rows it slips without warning. A tool that writes and runs Python on the file computes them. Most big assistants now do the second, but limits differ a lot:
| Tool | Spreadsheet files | File limit (vendor's own page) | Runs code on the numbers? |
|---|---|---|---|
| ChatGPT | .xlsx, .csv | About 50MB for spreadsheets, depending on row size | Yes, Python |
| Claude | .csv; .xlsx once code execution is on | 30MB for files it works on with code | Yes, Python, on every plan including Free |
| Copilot in Excel | Tables or table-like ranges in the open workbook | None stated | Yes, Python-based analysis |
| Gemini app | "Most file types" | 100MB per file, up to 10 files per prompt | Not stated on Google's help page |
| Whizi (website) | .xlsx, .csv; old .xls gets a re-save prompt | 100MB per file, 6 files per message | Can run Python on attached files when you ask for a calculation; ask to see the code |
Limits checked on OpenAI's, Anthropic's, Microsoft's and Google's help pages in November 2026; Whizi's from its own composer and chat code.
Code doesn't make an answer right, though. It makes the mistake findable. These checks still apply:
- Ask for the code or the method, not just the result. "Show the code you ran and the rows you excluded" turns a silent error into a visible one.
- Spot check one group by hand. Pick the smallest group in the output and verify it in the sheet. If it matches, the method is probably right; if it doesn't, nothing in the table can be trusted.
- Watch for double counting. Subtotal rows left in the file and one-to-many joins are the usual culprits, and code sums them as happily as a person would.
- Cross-check anything consequential with a second model. Two independent models landing on the same number is better evidence than one model repeating itself. Whizi's side-by-side view exists for exactly this.
- For reporting work, ask for the formula.
Give me the Excel formulaputs the arithmetic in your own workbook, where it stays reproducible after the chat is gone.
For financial or reporting work, that last check is the one that counts. Let the model design the analysis and let your workbook or a script hold the arithmetic.
Which model to pick in Whizi, and how big a file can be
CSV and Excel both upload directly in Whizi, and three models cover nearly every spreadsheet job.
| Model | Context window | Credits per message | Use it for |
|---|---|---|---|
| GPT-5.6 Terra | 1M tokens | 4 | Strict formats: clean tables, JSON, exact column mappings |
| Claude Sonnet 5 | 1M tokens | 10 | The cross-check pass on multi-step aggregation |
| Gemini 3.7 Flash | 1M tokens | 2 | Big files on a budget, or a spreadsheet plus a PDF in one thread |
Context and credit figures come from Whizi's model cost index, list rates fetched 2026-08-20.
Before you upload:
- Give it a clean rectangle. One header row, no merged cells, no blank spacer rows, no notes in column K. Multi-header formatted reports confuse extraction more than any size limit does.
- Send the raw sheet, not the presentation sheet. The version with formatting and subtotals is the one that produces double counting.
- Explain cryptic columns first. On wide files, ask what each column means before analysing, and correct what it gets wrong.
- Sample on purpose when a file is huge.
Analyse a random 5000 row sample and tell me the sampling error I should expect on each figurebeats silent truncation. - Strip personal data first. Names, emails and IDs are almost never needed for the analysis, and removing them is faster than arguing about whether you were allowed to upload them.
The mechanics of attaching files are covered in uploading documents.
Worked example: the subtotal row that doubles a total
A six-row sales sheet, exported from a report that still has its subtotal rows:
| Region | Rep | Revenue |
|---|---|---|
| North | Ana | 12,400 |
| North | Ben | 8,600 |
| North total | 21,000 | |
| South | Cy | 15,200 |
| South | Dee | 9,800 |
| South total | 25,000 |
Ask "what's total revenue?" and anything that sums the column, whether a model or Python, returns 92,000. The real figure is 46,000. Average revenue per rep comes out at 15,333 instead of 11,500, because the two subtotal rows count as reps.
The profile prompt catches this in step 2: "North total" and "South total" appear in the Region column's distinct values. Drop those rows, or ask for a formula that skips them, such as =SUMIFS(C2:C7, A2:A7, "<>*total"), and the total is 46,000 again.
- Upload the raw rows, not the formatted report
- Profile the file before asking a single analytical question
- Read the distinct-value list for variant spellings and subtotal rows
- Require the method and the exclusions alongside every number
- Flag small groups as too small rather than reporting a percentage for them
- Run the "what is suspicious about this data" prompt every time
- Hand-check the smallest group before trusting the table
- Ask for the formula or code when the number has to be exactly right
Frequently asked questions
Can AI analyze an Excel file or a CSV?
Yes. ChatGPT, Claude and Copilot in Excel run Python on an uploaded spreadsheet, so totals and averages are computed rather than predicted. On the Whizi website a model can do the same when you ask for a calculation, so ask to see the code it ran. Claude needs code execution switched on before it accepts .xlsx. Old .xls files are the usual snag: Whizi asks you to re-save them as .xlsx, and merged cells or stacked headers trip every tool, so export a plain sheet first.
Which AI is best for spreadsheet analysis?
If the data already lives in Excel and you have a Copilot license, Copilot in Excel works inside the workbook. For a standalone file, use a chat tool that runs code. In Whizi, GPT-5.6 Terra suits strict tables and JSON, Claude Sonnet 5 is the cross-check because it tends to make different mistakes, and Gemini 3.7 Flash is the cheapest of the three for large files at 2 credits a message.
Can I trust the numbers it gives me?
Trust the structure, check the arithmetic. When the tool runs code, ask to see it; when it answers from text alone, expect slips on long sums. Either way, hand-check the smallest group, cross-check headline figures with a second model, and for anything that must be exact, ask for the Excel formula and put it in your own workbook.
How big can my spreadsheet be?
On the Whizi website each attached file can be up to 100MB, with up to 6 files per message, and GPT-5.6 Terra, Claude Sonnet 5 and Gemini 3.7 Flash all read a 1M token context. Elsewhere, OpenAI puts spreadsheets at about 50MB depending on row size, and Google's Gemini app takes 100MB per file. Past those limits, analyse a deliberate sample and ask for the sampling error.
Does it work with Excel formulas and multiple sheets?
It reads the values rather than executing your workbook, so formula results come through but the live formula logic does not. For multi-sheet workbooks, say which sheet you mean and how the sheets relate, or export the one you care about as CSV. Files built for presentation, with merged cells and subtotals inside the data, cause far more problems than large files do.