Spreadsheet Error Hunt: Did the AI Find the Seven Planted Wrong Ranges?

Logged

by

in

We planted seven wrong ranges in a made-up budget workbook and asked one AI model to audit its formulas. It named all seven, gave a corrected formula for each, and reported no correct cell as wrong. A second request asked for ten formulas, and each one evaluated to the value we had worked out by hand.

This is a record of one run.

Seven planted wrong ranges in a budget workbook

A budget sheet gets copied, extended and passed around, and a SUM that stops one row short is easy to miss. We wanted to know whether an AI model could find formulas that point at the wrong cells, and whether it could write the right formula for ordinary questions about the same sheet. The workbook is ours and is labeled “MADE UP FOR THIS RUN” on its first sheet.

No LibreOffice: checking formulas in Python instead

Run on November 16, 2026 (U.S. Eastern time). The topic plan said the formulas would be checked in LibreOffice Calc. LibreOffice is not installed on this PC, and we did not install it. We used the Python package formulas, version 1.3.4. It was not in the test environment before this run. It was added with pip on November 16, 2026, the day of the run (U.S. Eastern time), and nothing else was installed. We checked each result against values we worked out by hand before the run.

The workbook has six sheets and 189 cells with content. The Budget sheet holds ten categories by six months, with a half-year total column and a total row. The Summary sheet has five checks that point at Budget. The other sheets hold a note, a contract date pair, a five-row lookup, and twelve invoice lines. The seven planted errors are on Budget and Summary. Each one is a single formula that looks plausible at a glance: a SUM that stops one column or one row short, an average that takes in the total row, and references to the wrong month, row or cell. We also left three traps in on purpose. One number is typed as text, one sheet name has a space, and one invoice number appears twice. The traps are not counted as planted errors.

The model received a text dump of the cells, one line per cell with its address and its content. A text entry that looks like a number is marked as text. In a spreadsheet a text entry sits left-aligned, so the marking is a fair picture of what a person sees. The dump is still not the .xlsx file.

The tool was the OpenAI API, chat completions, with the model named gpt-5.5. The API returned gpt-5.5-2026-04-23. There were two requests, one run each. The audit request used 3,083 tokens and took 11.94 seconds. The formula-task request used 3,518 tokens and took 16.81 seconds. The second request was planned in the answer key before either run.

The audit request and the formula request

The audit request:

Below is a text dump of a small workbook. Each line is a sheet name and a cell address, then the cell's content: a value, a formula (starting with =), or a text entry. The first sheet is labeled as made up.

Audit the formulas in this workbook. Some formulas may point at the wrong cells or the wrong range. Examples of the kind of error to look for: a range that stops one row or one column short, a range that includes a total row, a reference to the wrong month, the wrong row, or the wrong cell.

For each formula that you think points at the wrong range, give:
- the cell address the formula is in;
- the wrong formula, exactly as written;
- a corrected formula;
- one line on what the wrong formula computes differently from the corrected one.

Then give a list titled "Unsure" with one line for each cell you are not sure about, and say why. If you find no errors on a sheet, say so for that sheet.

The workbook dump follows.

The formula-task request:

Below is a text dump of a small workbook. Each line is a sheet name and a cell address, then the cell's content: a value, a formula (starting with =), or a text entry. The first sheet is labeled as made up.

Write one Excel formula for each task below. Use only the cells in the dump. Use standard Excel functions. Give your answer as a table with three columns: task number | formula | the value you expect the formula to return. For task 8, write the formula for row 2 of the Transactions sheet in column D; it will be copied down to the other rows.

Tasks:
1. Total Marketing spend for March through June.
2. Average monthly Utilities spend for January through June.
3. How many months from January through June had Training spend above zero.
4. Total Travel spend in the months where Travel was over 500.
5. Half-year total for all rows whose owner is IT.
6. Number of days from the contract start to the contract end on the Contracts sheet.
7. The vendor name for code V-103 on the Lookup sheet.
8. A DUP mark in column D of the Transactions sheet when the invoice number appears more than once.
9. Total Supplies spend for January through June.
10. Percent change in Contractors spend from January to June.

Then give a list titled "Unsure" with one line for each task you are not sure about, and say why.

The workbook dump follows.

In each run the dump followed the request.

Seven findings, two shown

The audit reply grouped its findings by sheet. Two of the seven entries, copied from the reply:

- **Budget!I5**
  - Wrong formula: `=SUM(C5:G5)`
  - Corrected formula: `=SUM(C5:H5)`
- **Summary!B7**
  - Wrong formula: `=Budget!C11/Budget!C14`
  - Corrected formula: `=Budget!C11/Budget!C15`
  - The wrong formula divides Marketing January by Contractors January instead of by the January total.

The audit’s unsure list has two entries. One reads: “The formula range `=SUM(I5:I14)` appears correct, but its result will be affected by the error in `Budget!I5`.”

The formula-task reply is a table with ten rows. Row 4, copied:

| 4 | `=SUMIF(Budget!C9:H9,">500",Budget!C9:H9)` | `2170` |

On task 9, the reply’s unsure note reads: “Cell `Budget!G10` is text `”260″`, so `=SUM(Budget!C10:H10)` would return `1080`; I used a formula that coerces the text number and returns `1340`.” The audit run did not mention that cell. The task run did.

Seven of seven found, ten of ten formulas right

Check Audit (planted errors) Formula tasks
Items 7 10
Right 7 10
Wrong (a different fix, or a formula that gives another value) 0 0
Missed 0 0
Invented (a correct cell reported as wrong) 0 not applicable
Unsure entries 2 2
Text-number trap (not planted) not reported noted as an unsure entry on task 9

Each corrected formula in the audit evaluated to the value we expected. Each task formula evaluated to its expected value. The duplicate-invoice formula marked both rows that share INV-2041, which is what the task asked for. We give counts and no percentages, because seven items and ten tasks are each under 20.

The text number the audit did not flag

  • Convert Budget!G10 from text to a number. The audit did not flag it. It changes the May column total and the Supplies total, which SUM skips.
  • Apply the corrections together, and check the unsure notes against the formulas. Budget!I5 feeds the grand half-year total in I15. The reply’s note that Summary!B6 still depends on I5 is wrong: row 5 is a Rent row with owner Ops, and the SUMIF adds only IT rows.
  • Decide how a contract day count should treat the end date. The reply’s subtraction gives 319 days. A count that includes both ends would give 320.
  • Decide what to do with the two rows that share invoice INV-2041. The formula marks both, so a person has to say which one is real.
  • Open the file in Excel or LibreOffice before anyone relies on the results. We did not.

An audit that was told what to look for

This is two requests on one made-up workbook, with one model. The audit request named the kinds of error to look for: a range that stops short, a total row inside a range, and a reference to the wrong month, row or cell. A reader who does not know the kinds of error in advance would ask a harder question, and this run does not test that. The tool saw a text dump, not the file, with no formatting, charts or hidden cells.

The check used a Python engine, not Excel or LibreOffice. That engine counted the text number inside a plain SUM as a number. Microsoft’s SUM page says that SUM “will ignore text values and give you the sum of just the numeric values.” So the engine cannot check the text-number trap, and we worked that trap out by hand. Nothing here shows how the tool does on a real budget.

Changes made after the run: none. The answer key was written before the runs and was not changed after them.

Sources and the workbook run file

  • Microsoft Support, SUM function
  • Test material: a budget workbook, made up for this run.
  • Run record: two run files, run_20261117T005409Z.json to run_20261117T005423Z.json, with the request as sent, the full response, the model name the API returned and the token count. It is kept with the test files and the answer key and is not published.

How this entry was made: Work AI Brief Editorial Team chose the task and ran it with the tools and versions named in the entry, on the date given there. Every article is reviewed by Work AI Brief Editorial Team before it is published. Tools change, so a later run may not match ours. If something here is wrong, tell us and we will correct it.