You are reading Chapter 19 of 36 in the AI Bootcamp, AI Central's free course for professionals who want to use AI in their own work. The chapters build on each other, so if this is your first one, Chapter 1 is the place to start. All of them sit on the AI Bootcamp page, and three more arrive every week.
To check an AI math or spreadsheet answer, look for the working rather than the number: your assistant either predicted the figure the way it predicts the next word of a sentence, or it wrote a small program, ran it, and reported what came back. Both arrive formatted the same way, rounded the same way, stated with the same confidence. Only one of them is arithmetic.
This guide shows you how to tell those two apart, how to make your assistant compute on demand, the four things that happen to a spreadsheet between your desktop and the answer, and one rule that covers every figure someone else will read.
We publish AI systems like this for 300,000+ senior professionals at AI Central, and more of them live in the AI Central Library.
A wrong number is not the same kind of mistake
Numbers are what you are held accountable for. A clumsy sentence in a board pack is embarrassing. A wrong figure is not the same kind of mistake, and this one is easy to miss: it arrives formatted, rounded sensibly, and surrounded by prose that is completely correct.
That is the whole problem in one line. Nothing about a wrong number looks wrong. There is no red flag on screen, no hedge in the wording, and no difference in tone between a figure a computer calculated and a figure the model made up on the way past.
This chapter assumes the previous one. If you have not worked through it, Chapter 18 covers putting a long document in front of your assistant and pulling structure out of it without losing what matters. Bring two things here: one real spreadsheet from your own work, and one number you have already sent to somebody.
Checking claims in general, including sources and quotes and things that merely sound right, is covered in Chapter 8 on fact-checking AI answers. This chapter stays on arithmetic, spreadsheets and the figures that come out of them.
There are two ways it can give you a number
It can predict the number, or it can compute it. Those are not two grades of the same skill.
Predicted
The number is generated the same way the sentence around it is, as the most plausible thing to say next. It appears instantly, inside the prose, with no code, no formula and no steps you can open. It reads exactly as confident when wrong as when right.
That is fine for an estimate you are about to sanity-check, and fast enough to think out loud with. Ask twice and you can get two answers, and it degrades sharply on long multiplication and multi-step sums.
Computed
The assistant writes code, runs it in a sandbox, and reports what the code returned. There is a block of code on screen you can open and read, and the same inputs give the same answer every time.
The arithmetic is then done by a computer rather than by a model, so the arithmetic itself is effectively reliable, and you can check the method instead of only the result. What is left to go wrong is which rows it ran on. The sandbox is also offline, so no live rates or prices.
On something like 12 times 8, prediction works, because the answer appears everywhere in what the model learned. On long multiplication it falls apart. A 2025 study presented at the AIME-Con conference gave four models thirty five-digit multiplications each: GPT-4o got 2 of 30 right, while o1, a model that reasons step by step before answering, got 30 of 30. Same lab, same question, and neither of them touched a calculator.
The paper also found that the errors were overwhelmingly procedural rather than conceptual, which is the honest version of "it is bad at maths": it knows what to do and slips while doing it.
Since then all four assistants have added the second method. Claude, ChatGPT and Gemini can each write code, run it in a sandboxed container and report the result. Anthropic is blunt about why, describing the point as answers that are mathematically precise and reproducible rather than merely well reasoned. Microsoft made running Python from Copilot inside Excel generally available in August 2026, and its Analyst agent writes and runs Python across several files at once.
That comes with a condition almost nobody states out loud. Reaching for the tool is a decision the assistant makes, question by question. A piece of arithmetic sitting in the middle of a paragraph often does not look, to the model, like it warrants spinning up a sandbox. So it answers from prediction, in the same voice, in the same reply, with no marker of any kind.
None of this is an argument for keeping numbers away from your assistant. It is an argument for knowing which of the two answered you.
Look for the working, not for a warning
Nothing on screen announces a guess. There is no red flag, no hedge, no "I estimated this". What there is, when computation actually happened, is an artefact you can open.
Read down this list until a line is true. There is code on screen you can open, so it computed it. It gave you a formula you can run yourself, so you can compute it. It quoted a figure from your file, unchanged, so it read it. None of the above, so it predicted it.
That fourth line catches more questions than people expect, and a number that lands there is not wrong on purpose. It is a plausible number, made the way a plausible sentence is made.
The reliable tell is code. The wording differs by product and changes every few months: ChatGPT collapses it into an analysis step you expand, Claude puts the code and its output into the conversation, Gemini shows the Python it wrote, and Copilot lets you watch the Analyst agent work in real time. Ignore the labels and look for the artefact. No code anywhere means no computation anywhere.
A second tell is cheaper and works when you are not sure what you are looking at. Ask the same question again in a fresh chat. A computed answer comes back identical, because the same code ran on the same inputs. A predicted one tends to wobble, and two different answers to one arithmetic question is all the evidence you need.
You can also just insist. "Compute this by running code, and show me the code" is understood by all four, and it is worth making a habit rather than a special occasion.
Two caveats. Free tiers cap how often the analysis tool can run, and when you hit that cap you can still ask the question and still get a number, so check for the code rather than waiting to be told. And on Copilot the Python route lives behind a Microsoft 365 Copilot licence, so on free consumer Copilot assume prediction unless you can see otherwise.
One last thing looks like computation and is not: a number carried forward from earlier in the same conversation. The whole thread is context. A figure you superseded ten messages ago is still sitting there, as visible to your assistant as the corrected one, and it will sometimes pick up the dead version and do flawless arithmetic on top of it. When a key number changes mid-thread, do not correct it in place. Start a new chat containing only the numbers that survived.
The workbook it answered about is not always the one you attached
Attaching a file feels like handing someone the file. It is closer to handing them a photocopy of one page, taken at an angle, with the formulas frozen at whatever they said the last time anyone saved.
You attach the workbook, ask your question, get an answer in nine seconds, and the answer is about a slightly different workbook than the one you attached. Four things do that.
1. Formulas are read as the value last saved
A cell containing a formula stores two separate things: the formula itself, and the value your spreadsheet program calculated the last time it opened the file. Every standard tool for reading these files outside Excel returns the second.
The documentation for openpyxl, the Python library sitting inside these assistants' sandboxes, says so in as many words: what you get back is the value stored the last time Excel read the sheet. So if the workbook came out of an export, or was last touched by something that did not recalculate, your assistant reads a stale number and cannot possibly know it. From inside the file, a stale value and a fresh one are identical.
2. It picks a sheet unless you name one
Left to itself it will work on one tab, typically the first visible one, and quietly answer as though that were the whole file. Naming the sheet and the range in your prompt costs six words and removes the entire class of problem: "in the sheet named Balance, rows 4 to 380."
3. Large files get sampled
The published limits differ and move around, and they are the wrong thing to memorise. Gemini currently takes 10 files per prompt at up to 100 MB each, and the others publish their own numbers and change them.
What matters is the behaviour near the limit rather than the limit itself. Rows get sampled or truncated, and a total computed on a sample looks exactly like a total computed on the file. If your file is large, ask how many rows it actually read, and check that number against the one at the bottom of your screen.
4. Layout scrambles the columns
A title in A1, two rows of stacked headers, merged cells across a quarter, a totals row sitting inside the data. You read past all of that without noticing. A parser does not.
A totals row swept into an average is one of the most common ways a spreadsheet answer goes wrong without looking wrong, and it is why the numbers can be internally consistent and still not reconcile with the report you already published.
One more, and it matters more than its size suggests. The code sandbox has no internet. Anthropic's documentation says outbound access is completely disabled, and the others are built the same way for the same reason. So if a currency conversion, a share price or an inflation figure appears in your output, that rate did not come from a source. It came from the model's memory of a rate. Supply the rate yourself, in the prompt, with its date.
Any number someone else will see arrives with its working
Here is the rule, and it is short on purpose so that it still works at 6pm on a Thursday. Any number that will be seen by someone else arrives with its working attached, and you have looked at the working.
Numbers you are only thinking with are exempt. The moment one gets pasted into a deck, an email or a board pack, it is not exempt any more.
Working means one of three things. Code you can open. A formula you can paste into a cell and run. Or the steps written out with the inputs named, so you can follow them. What it does not mean is your assistant confirming its own answer: asking it whether a number is right gets you a second prediction from the same machine, usually agreeing with the first.
Four steps, in this order, on any figure leaving your desk.
1. Ask for the working, not just the answer
Code, or a formula. If neither appears, you have a predicted number, whatever it looks like.
2. Check the inputs it used, not the arithmetic
Rows, column, dates. Read the top of the working, not the middle: the two lines that matter are the ones that load the file and filter the rows. Which sheet, which column, which date range, which definition of "active".
You do not need to read Python to see whether it filtered to 2026 or to 2025, or whether the column it summed is the one called revenue or the one called revenue_gross. That is where the errors now live. Step 2 catches more real errors than step 3 does, because once code runs, the arithmetic is a computer's arithmetic.
3. Recompute the one number that matters
By hand, or in a cell. Pick the single figure the decision turns on and do it yourself.
4. Make the total reconcile to its parts
Or find out why not. A total that does not add up to its own components is the cheapest error to catch and the most expensive one to publish.
Two units will get you if you let them. Percent and percentage points are different quantities, and your assistant will mix them exactly as readily as your colleagues do: a move from 4% to 6% is a rise of 2 percentage points and an increase of 50%, and both sentences are true. Growth rates across periods do not average either, so three years of 10%, 10% and minus 20% does not net to zero.
State the unit you want back in the prompt, and state it in the answer too. The same discipline applies to currencies and to fiscal versus calendar years. Dates work the same way: "last 12 months" depends on what today is, so give it the range rather than the phrase.
This chapter is not an argument for doing your own sums. Your assistant is weak at one narrow slice of quantitative work, the arithmetic, and that slice is the one you can make verifiable. It is strong at everything wrapped around it: structuring an analysis before you build it, writing the commentary under the table, naming the column that should be in this report and is not, explaining why a variance moved, and listing what would have to be true for the number to be wrong.
None of that is arithmetic, and all of it is the part that takes you an afternoon. Give it that work. Make the arithmetic show its working, and keep it.
What actually changes
Before: a number comes out of your assistant, it looks right, and you send it. You could not say afterwards whether it was computed or predicted, and you had no habit that would have caught the difference.
After: you look for the code before you look at the number, you name the sheet and the range when you attach a workbook, and nothing leaves your desk without its working attached. The guide closes with 3 exercises, about 15 minutes, on your own spreadsheet and one number you have already sent to somebody.
Two things carry into Chapter 20: the working rule, ready to point at facts instead of figures, and one question you would normally answer with 20 minutes of searching. Chapter 20 moves from numbers you supplied to facts your assistant goes out and finds.
If you want the prompt habits underneath this, naming the sheet, stating the unit, giving the date range, the 26 principles of prompt engineering covers them. For a one-page reference to keep beside you while you work, start with our free AI cheat sheets, and the rest of the syllabus lives in the AI Central Library.
Frequently Asked Questions
Can ChatGPT do math accurately?
Only when it runs code. A 2025 study presented at the AIME-Con conference gave four models thirty five-digit multiplications each: GPT-4o got 2 of 30 right, and o1, which reasons step by step, got 30 of 30, with neither using a calculator. When an assistant writes code and runs it in a sandbox, the arithmetic is a computer's arithmetic and is effectively reliable. Ask for the code, and check that it appeared.
How do I know if AI calculated a number or guessed it?
Look for an artefact you can open. Code on screen means it computed it. A formula you can run yourself means you can compute it. A figure quoted unchanged from your file means it read it. None of those means it predicted it. You can also ask the same question in a fresh chat: a computed answer comes back identical, a predicted one tends to wobble.
Why is my AI spreadsheet analysis wrong?
Usually not the arithmetic. Formulas are read as the value last saved rather than recalculated, your assistant works on one sheet unless you name one, large files get sampled or truncated, and merged cells, stacked headers and a totals row inside the data scramble the columns. A totals row swept into an average is one of the most common ways a spreadsheet answer goes wrong without looking wrong.
Can AI read the formulas in an Excel file?
It reads the value your spreadsheet program calculated last, not a live formula. An .xlsx file stores both the formula and the last calculated value, and standard tools for reading these files outside Excel return the second. The documentation for openpyxl, the Python library inside these sandboxes, says what you get back is the value stored the last time Excel read the sheet.
Can an AI assistant look up a live exchange rate while analysing my file?
No. The code sandbox has no internet, and Anthropic's documentation says outbound access is completely disabled. Any exchange rate, share price or inflation figure in the output came from the model's memory of a rate rather than from a source. Supply the rate yourself in the prompt, with its date.

