Spreadsheet Analysis Prompt That Shows Its Numbers
An AI prompt for spreadsheet data that checks the rows for errors first, shows the numbers behind each claim, and keeps findings apart from guesses.
Run on Claude Sonnet 5.5, Dec 3, 2026; GPT-6.2 Sol, Dec 4, 2026. Not yet run on Gemini.
When to use it
Use it when you have an export of a few dozen rows and a decision to make from it: where to cut spend, which product is slipping, which customers pay late. It is for people who can read a spreadsheet but would not call themselves analysts.
The prompt
<data> [PASTE THE ROWS, INCLUDING THE HEADER ROW] </data> That's [WHERE THE DATA CAME FROM, THE PERIOD IT COVERS AND WHAT ONE ROW IS]. What I'm trying to decide: [THE DECISION OR QUESTION] Before any analysis, tell me in a few lines what you see: the columns as you understand them, how many rows, and anything that looks wrong with the data (blanks, duplicates, mixed formats, totals rows mixed in). If a column's meaning isn't clear, ask me, because a wrong guess about a column makes everything after it wrong. Then answer my question from the data. Show the numbers behind each claim (which rows or groups, and what you added up), so I can check one or two in my spreadsheet. Keep the arithmetic simple enough for me to verify, and lay the numbers out as plain lines, not tables, so they survive being pasted into an email. If the question needs a calculation too big to do reliably by reading rows, tell me which formula or pivot table to build instead of estimating. Then up to three things in the data that I didn't ask about but would want to know, each with its numbers. If nothing stands out, say that. Keep what the data shows separate from your explanation of why. The data can show that refunds went up; it can't show the reason. Label reasons as guesses and say what I'd check to confirm each one. Finish with the answer to my question in two sentences, and how confident you are in it given the size and quality of the data.
What came back
A made-up case: six months of sales by channel for an online store, 26 rows pasted from a report. We planted three problems: a duplicated row, a totals row that counted the duplicate, and a blank ad-spend column for email. The question was where to cut $2,000 from about $12,500 of monthly ad spend.
What I see Columns as I understand them: - month (YYYY-MM) - channel - orders (count) - revenue (dollars, I assume) - refunds (count of refunded orders) - refund_amount (dollars refunded) - ad_spend (dollars) Rows: 26 under the header. That is 25 channel-month rows plus 1 TOTAL row. Six months times four channels should give 24 rows, and the extra one is a duplicate. Problems: - Duplicate: 2026-07 TikTok ads appears twice with identical numbers (71 orders, 3550 revenue, 13 refunds, 650 refunded, 2400 spend). I dropped one copy. - TOTAL row is inflated: it includes the duplicate. I re-added the columns and they match the TOTAL row only if the duplicate is counted. Corrected totals, with the TOTAL row's figure in parentheses: - orders 3566 (3637) - revenue 265930 (269480) - refunds 314 (327) - refund_amount 21505 (22155) - ad_spend 68300 (70700) - Blank ad_spend: every Email row is blank. I read this as "no paid ad spend," not "unknown," so Email is left out of the return-on-ad-spend comparisons. - Formats: no mixed formats. Currency isn't labeled. […] Where to cut the $2,000 Six-month totals per paid channel, duplicate removed. Return is revenue divided by ad spend, and "after refunds" means (revenue minus refund_amount) divided by ad spend. Instagram ads: - Revenue 14840+14350+13860+13090+12530+11900 = 80570 - Spend 5200+5400+5600+5900+6100+6300 = 34500 - Return: 80570 / 34500 = 2.34 per $1 (2.04 after refunds) Google search: - Revenue 13120+13680+14400+14080+15200+15760 = 86240 - Spend 3100+3150+3200+3200+3300+3350 = 19300 - Return: 86240 / 19300 = 4.47 per $1 (4.25 after refunds) TikTok ads: - Revenue 2900+3300+3550+3450+3700+3850 = 20750 - Spend 1800+2100+2400+2600+2700+2900 = 14500 - Return: 20750 / 14500 = 1.43 per $1 (1.16 after refunds) […] My recommendation: don't cut Google. Take $1,100 from Instagram (6300 back to 5200) and $900 from TikTok (2900 to 2000). That reverses most of the increases since May, and neither increase paid back. TikTok's extra $1,100 brought $950 more revenue, and Instagram's extra $1,100 came with revenue falling by 2940 (14840 to 11900). […] Answer Cut the $2,000 from Instagram and TikTok, not Google: about $1,100 from Instagram and $900 from TikTok, or all $2,000 from TikTok if you prefer a simpler cut. Google returns about $4.70 per ad dollar against $1.89 for Instagram and $1.33 for TikTok. Confidence is high that Google shouldn't be cut. It is moderate that the cut belongs on TikTok and Instagram, and low on the exact split, because this is six months of monthly totals with no margin data, no ad-level detail, and a May-to-October comparison where other things may have changed. If you can send me gross margin per channel, I can say whether Instagram and TikTok are losing money, not just underperforming.
Trimmed for length: the full answer ran to about 1,100 words. It also listed its three assumptions, each channel’s return month by month, a simpler alternative cut, three findings we had not asked about and its guesses at the causes.
On other models
The answer above is from Claude Sonnet 5.5. We gave the same made-up case to:
- GPT-6.2 Sol: Caught the same three planted problems, and asked two questions about what the columns mean before answering. Its answer was under half the length and its advice differed: take the whole $2,000 from TikTok, which Claude had offered as the simpler option. We checked every figure by hand and the arithmetic held.
Why it is written this way
- It makes the AI describe the data before analysing it. In our run that step caught a duplicated row, a totals row and a blank column before any sums were done.
- It asks for the numbers behind every claim, so you can check one or two in your own spreadsheet and decide how far to trust the rest.
- It separates what the data shows from why. The reasons come back labelled as guesses, each with a way to check it.
Where it falls short
It reads the rows as text and does the sums itself. We ran it on 25 rows and have not tested a long file; for one, use a chat tool that can run code on the file, or build the pivot table it suggests. We checked every figure in this run by hand and the arithmetic held, apart from a $5 rounding slip in a part we trimmed. Correct sums are not proof, though. Its advice rests on each channel’s average return, which cannot show what the next dollar of spend earns, and “brought $950 more revenue” describes two numbers that moved together, not a proven cause. It cannot see your margins or anything else that is not in the export.
Sources
More prompts
- Difficult Email Reply Prompt
- Edit My Writing Prompt That Keeps Your Voice
- Meeting Notes to Action Items Prompt
- Pressure-Test a Plan Prompt
- Write a Procedure Prompt for Handing Off a Task
- Turn One Article Into Social Posts Prompt
- Summarize a Document for a Decision Prompt
Want this set up across your team? Explore the Operator Sprint.