A subtotal is a small total, and an AI can get it wrong in the same ways it gets a grand total wrong: a dropped line, a duplicated line, or a misread amount. Recomputing each subtotal from its own lines, and then adding the subtotals, proves the whole table before the grand total is trusted.
Prerequisites
- The source document with subtotals
- The extracted sheet
- A copy of the source file, so the original stays untouched.
Steps
- Group the lines in the sheet by the subtotal they belong to, matching the groups in the source.
- Recompute each subtotal by adding its lines, and compare it with the subtotal printed in the source.
- Flag any subtotal that differs, and check its lines one by one against the source.
- Add the checked subtotals together and compare the result with the grand total printed in the source.
- Correct any flagged line from the source, then recompute both the subtotal and the grand total.
Worked example: Fictional department budget subtotals
The practice table below is a fictional five-line budget with two subtotals. The subtotal rows are the sums of the lines above them, and the total is the sum of the two subtotals. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.
| Line | Amount |
|---|---|
| Stationery | 120.00 |
| Printing | 80.00 |
| Office subtotal | 200.00 |
| Travel | 150.00 |
| Training | 90.00 |
| Staff subtotal | 240.00 |
Expected result. Two subtotals recomputed, 200.00 and 240.00, and the grand total is 440.00. UNTESTED: no AI extraction was run for this guide; the table shows the expected values a check should produce.
Limits
- A line counted in two subtotals will inflate the grand total, so check the grouping first.
- A subtotal row stored as a data row will be added twice by a SUM over the whole column, so exclude it.
