How to check an AI's work in a spreadsheet

Six checks that catch most mistakes an AI agent (or a person) makes in a spreadsheet model, from tracing precedents to finding typed numbers, with the formulas for each.

By the Jordan team · · 3 min read

An AI agent can build a model in a minute that would take you an afternoon. That's only useful if you can tell whether the model is right, and "it looks reasonable" isn't a check.

The good news is that a spreadsheet is the easiest place there is to check an AI's work. A chat answer is a paragraph you have to take on faith. A spreadsheet is made of cells, and every derived number is a formula you can follow back to the data. The checks below take a few minutes and catch most real mistakes, whether an agent made them or a person did.

1. Trace one number back to its inputs

Pick the number you care about most, the one you'd quote in a meeting, and follow it all the way down. Click the cell, read the formula, and find the cells it reads. Then do the same for those.

You're looking for three things:

  • The right range. =SUM(D7:D18) for twelve months is right; =SUM(D7:D17) is a month short.
  • The right inputs. A weight should divide by the portfolio total, not by the sector total.
  • No surprises. A formula that reads a sheet you didn't expect deserves a second look.

In Jordan, clicking a cell shows its formula and highlights the cells it reads, so this takes seconds.

2. Find the typed numbers

The most common silent error in any model is a number typed where a formula should be. It looks right today and never updates when the inputs change.

ISFORMULA finds them. Next to a block of derived values in B7:B18, add:

=ISFORMULA(B7)

and fill it down. Any FALSE in a column that should be calculated is a typed number. Assumptions belong in their own labeled cells at the top; everything below them should be formulas.

3. Reconcile totals two ways

If a table has row totals and column totals, they must agree. For a budget with categories in rows and months in columns:

Sum of the row totals      =SUM(E3:E10)
Sum of the column totals   =SUM(B11:D11)
Difference                 =SUM(E3:E10) - SUM(B11:D11)

The difference should be zero. If it isn't, a subtotal is probably inside a range it shouldn't be, or a row was left out of one of the sums.

The same idea works across sheets: the total of the categorized transactions should equal the total of the raw transactions.

4. Count rows in and rows out

An agent that filtered, deduplicated or joined data can lose rows without any error appearing. Count both ends:

Rows in the source       =COUNTA(statements!A:A) - 1
Rows categorized         =COUNTA(Categorized!A:A) - 1

If the numbers differ, find out why before trusting anything built on top. Sometimes the difference is intended (duplicates removed); you should still know it happened.

5. Look for errors anywhere

One #REF! deep in a model can leave the headline number blank or wrong. Count errors across the whole range:

=SUMPRODUCT(--ISERROR(A1:Z200))

It should be zero.

6. Check one row by hand

Pick a single row and redo it with a calculator: one transaction's category, one position's value, one month of the forecast. If one row is wrong, the formula is wrong for every row. If one row is right, the fill is probably right too.

Review before you accept

Every check above works after the fact. The cheapest place to catch a mistake is before it lands. In Jordan, each edit the agent makes arrives as a changeset you can review cell by cell, then accept, partly accept or reject. Use the review to read the formulas it's adding, not just the values: a wrong formula with a plausible value is exactly the mistake you're trying to catch.

You can also ask the agent to check itself: "Add a check that the category totals reconcile with the raw transactions, and flag any typed numbers below the assumptions." The checks become cells, so they keep working after the next change.

Frequently asked questions

Do AI agents make different mistakes than people?

Mostly the same ones: ranges that are one row short, subtotals counted twice, a typed number left behind. The difference is speed. An agent builds more in a minute, so the checks matter more, not less.

What if the AI pulled numbers from the web?

Treat them like any other input. A sourced number should sit in a cell with its source written next to it, so you can follow it. If a number has no source, ask for one or replace it with your own.

How long should checking take?

For a typical model, five to ten minutes: trace the headline number, run ISFORMULA over the calculated block, reconcile the totals and count the rows. That's a small price for a model you can stand behind.

Build this analysis in Jordan

Describe it in a sentence. Jordan brings in the data, writes the formulas and shows you every change before it lands.

Join early access

Keep reading

  • AI spreadsheets · 2 min read

    What is an AI spreadsheet?

    What makes a spreadsheet AI-native rather than a spreadsheet with a chatbot attached, what an agent can and can't do in one, and how to check its work.

  • AI spreadsheets · 3 min read

    How to describe a model so an AI agent builds it right

    What to put in a request to a spreadsheet agent, from the data source to the shape of the output, with weak and strong examples and a short checklist.

  • Trading and backtests · 6 min read

    How to backtest a trading strategy without fooling yourself

    A step-by-step method for backtesting a stock strategy, the six biases that make bad strategies look good, and the spreadsheet layout and formulas to run one honestly.