To get useful business insights from spreadsheet data with AI, give the model the file (or its headers and a sample), say what each column means, and ask one scoped question: which metric, compared across which dimension, over which period, in what output format. Use a tool that runs code for the calculations, ask it to show its working, and recompute at least one number yourself before anything reaches a decision-maker. Open-ended requests like “what insights can you find?” mostly return generic observations.
This guide is a worked example. It takes one small, illustrative sales dataset through five prompts, from checking the data to writing an executive summary, and shows what each step catches. The prompts are copy-ready and work in any assistant that accepts file uploads or pasted tables.
Pick the right tool before you write a prompt
How the model reads your spreadsheet matters more than how you word the prompt. There are three common setups, and they fail in different ways:
| Setup | How the numbers are computed | Good for | Watch out for |
|---|---|---|---|
| Pasting a table into a chat | The model reads the text and estimates | A few dozen rows, quick explanations, drafting formulas | Arithmetic errors on totals and percentages; truncated pastes |
| Uploading a file to an assistant with code execution | The assistant writes and runs code (often Python with pandas) on the file | Thousands of rows, grouping, period comparisons, charts | Wrong assumptions about column meaning; silent row drops when parsing |
| AI built into the spreadsheet app | The assistant creates formulas, PivotTables and charts in the workbook | Keeping the analysis inside the file where colleagues can audit it | Licensing and availability depend on your plan and organization |
For the second setup, OpenAI’s data analysis help page describes ChatGPT writing and running Python in a notebook environment against uploaded .xls, .xlsx and .csv files, and warns that it may pick a method or chart type that does not match your intent unless you specify it. It also notes that scanned or image-based tables are unreliable when exact values matter. For the third, Microsoft’s Copilot in Excel guide lists building PivotTables and charts, summarizing data and surfacing trends or outliers inside the workbook, subject to your Microsoft 365 license and your organization enabling it.
The prompts below assume you can upload a file to a code-running assistant. If you can only paste text, keep the data small and lean harder on the verification step.
The example dataset
The dataset below is invented for illustration. Imagine a small company that sells three product lines in four regions and exports monthly orders to a CSV with these columns:
month,region,product_line,orders,revenue,discount_pct,returns
2026-04,North,Core,412,61800,5,9
2026-04,South,Core,388,58200,5,11
2026-04,East,Pro,140,42000,10,3
2026-04,West,Addons,,9100,0,1
...
2026-09,South,Core,301,40635,15,27
2026-09,East,Pro,151,45300,10,2
The question the sales director asks is simple: “Why did revenue fall in Q3?” Typing exactly that into a chat with the file attached tends to return a list of plausible causes (seasonality, competition, pricing) with no link to the data. The steps below replace that one vague question with five specific ones.
Step 1: Make the model describe the data back to you
Before any analysis, confirm that the model understands what each column means and spot data quality problems. Misread columns are the most common reason an AI analysis is confidently wrong.
I have attached [file name]. Do not analyse it yet.
Context: monthly order data for a B2B company. One row = one month x
region x product line. revenue is in USD, after discount, before
returns. discount_pct is the average discount given that month.
returns is the number of orders returned.
1. Load the file and report: row count, columns, data types, and
the date range.
2. For each column, state in one line what you think it means and
whether that matches my description. Flag anything ambiguous.
3. Data quality: missing values (count per column and the affected
rows), duplicate rows, negative or implausible values, months
or regions missing from the grid.
4. Show the code you ran.
Then stop and wait for my next instruction.
In the example, this step surfaces two issues that would otherwise distort everything downstream: the West/Addons rows have blank orders values, and August is missing for the North region entirely. Both are now visible decisions (exclude, fill, or ask the person who exported the data) rather than silent assumptions. “Stop and wait” keeps the model from charging ahead into analysis built on a misunderstanding.
Step 2: Ask a scoped comparison question
A scoped question names the metric, the dimension to break it down by, the periods to compare and the output shape. That turns “why did revenue fall?” into something the model can compute:
Exclude the West/Addons rows with blank orders and note how many rows
that removes. Treat North/August as missing, not zero.
Compare Q2 2026 (Apr-Jun) with Q3 2026 (Jul-Sep):
1. Total revenue by region x product_line for each quarter, the
absolute change and the % change. Sort by absolute change,
largest decline first.
2. For the three largest declines, break the change into:
- change in orders
- change in average revenue per order
3. Output as a table, then one sentence per row explaining which
driver dominated.
Show the code. Round money to whole dollars and percentages to one
decimal place.
Splitting revenue into orders and revenue per order is the key analytical move: it separates “we sold fewer” from “we sold at lower prices”. In the illustrative data, the South/Core segment drives most of the decline, and the decomposition shows that orders fell only modestly while revenue per order dropped sharply. That points at pricing, not demand.
Step 3: Test a hypothesis instead of asking for causes
Language models are fluent at producing explanations, which is a risk in analysis: a plausible story can arrive with no support in the data. Ask the model to test a specific hypothesis and to say what the data cannot show:
Hypothesis: the South/Core revenue decline in Q3 is mainly explained
by higher discounting.
Using only the data in the file:
1. Show discount_pct, revenue per order and returns per 100 orders
by month for South/Core, Apr-Sep.
2. Do the same for North/Core as a comparison.
3. State whether the data supports, contradicts, or cannot decide the
hypothesis, and why.
4. List other explanations consistent with the data, and what
additional data would distinguish between them.
Do not use outside knowledge about the market.
The comparison region is what makes this useful. If South’s discount rose from 5% to 15% while North’s stayed flat, and South’s revenue per order fell while North’s did not, the hypothesis is supported, though not proven. In the example data, South’s returns also rose, which is worth flagging: it could mean discounted deals went to poorer-fit customers. Point 4 asks the model to name what it cannot know, such as whether a competitor cut prices in the South, which only someone in the business can answer.
Step 4: Verify before you share
Verification is the step most people skip and the one that protects your credibility. Three checks catch most errors:
Before I share this, run these checks and report pass/fail:
1. Sum of revenue across all rows used for Q2 and for Q3. These must
equal the quarter totals in your earlier table.
2. Number of rows per month and region after exclusions.
3. Recompute the South/Core Q2-to-Q3 % change with a different method
(e.g. directly from the raw rows rather than the grouped table).
If any check fails, explain the discrepancy before doing anything else.
Then do one check by hand: filter the spreadsheet for South/Core in Q3 and sum the revenue column yourself, or build a quick PivotTable. If the model’s number matches, you can share the analysis with reasonable confidence. If it does not, the model’s code is the place to look; reading the code it showed in steps 1 to 3 usually reveals a wrong filter or a mis-parsed date. The general techniques in reducing AI hallucinations and chain-of-verification prompting apply here too.
Step 5: Write the summary for a non-analyst
Finding the pattern and explaining it are different tasks, so run them as separate prompts. Once the numbers are verified, ask for a short summary written for the person who has to act:
Write a summary of the verified analysis for the sales director.
Audience: not an analyst; reads on a phone; needs to decide what to
do about discount policy.
Format:
- Headline: one sentence with the single most important number.
- What happened: 2-3 bullets with numbers from the verified tables.
- Likely cause and confidence: one bullet; say what is supported by
data and what is still an assumption.
- One recommended next step and what data would confirm it worked.
- One line on data caveats (excluded rows, missing month).
Under 150 words. No jargon. Do not introduce any number not in the
verified tables.
An illustrative result: “Q3 revenue fell mainly in the South Core line, where average discounts rose from 5% to 15% and revenue per order dropped; order volume fell only slightly. Returns also rose in that segment. Recommended next step: cap Core discounts at 10% in the South for October and compare revenue per order and returns with September. Caveat: West Addons rows with missing order counts and North August data were excluded.” The last line matters: a reader who knows about the missing data will trust a summary that admits it.
If the summary feeds a recurring report, the structure in weekly status reports keeps it consistent from period to period.
Optional: a simple forecast, with its limits stated
Forecasting from six months of data is fragile, but a rough projection can still frame a conversation if the method and limits are explicit:
Project monthly revenue for South/Core for Oct-Dec 2026 under two
scenarios: (a) current discount level continues, (b) discount returns
to 5%. Use a simple, explainable method and name it. Show the code.
State the main reasons this projection could be wrong, including
seasonality you cannot see in six months of data.
Treat the output as a scenario sketch, not a forecast to plan budgets on. Six months cannot reveal annual seasonality, and scenario (b) assumes demand responds to price the way it did in the past, which the data alone cannot confirm.
Mistakes that produce bad insights
- Asking “what insights can you find?” The model has no idea what decision you face, so it lists everything. Name the metric, comparison, period and output.
- Skipping the data description step. If revenue is gross in one column and net in another, every downstream number is wrong, and the model will not know unless you tell it.
- Trusting pasted-table arithmetic. Models reading a pasted table can miscalculate totals and percentages. Use code execution or spreadsheet formulas for anything you will share.
- Treating zero and missing as the same. A missing month treated as zero revenue creates a fake decline. Say how to handle gaps.
- Letting the model fill in market context. Explanations about competitors or the economy that are not in your data are guesses. Keep them out of the summary or label them as assumptions.
- Uploading data you should not. Customer names, salaries and contract values may be restricted. Check your organization’s policy, and remove or pseudonymize columns the analysis does not need.
When the data lives in a database instead
If your spreadsheet is an export from a database, it is often better to ask the AI for the query than for the analysis, so the numbers come straight from the source and can be rerun next month. The prompts in writing SQL queries from plain English cover that route, and the same scoping rules apply: metric, dimension, period, output.



