Spreadsheet-Dependent Operations to Intelligent Business Applications
Reverse-engineering a 25-tab, 17,061-formula workbook into a documented, oracle-verified pipeline — 95 logged decisions, nothing assumed.
A monthly reporting process ran entirely inside a single spreadsheet, built up incrementally over years by whoever needed the next number next month. The workbook: 25 tabs, 17,061 formulas, two native pivot tables. It was never built to be read or audited by anyone other than the person who last edited it. This case study covers the reverse-engineering discipline behind one of our governed-pipeline builds; a different angle on the same underlying platform migration — the baseline-and-cutover story — is covered in the companion case study, Legacy ERP Process Modernisation.
Nobody other than the workbook's original author could say with confidence what a given number in it actually depended on. Formulas referenced other formulas across tabs with no documentation of intent, and a pivot table's behaviour under edge cases was understood, if at all, only by trial and error. The workbook worked — until someone needed to know why it worked, or needed it to run somewhere else.
Copying the formulas into a new system and calling it "migrated" would silently inherit every undocumented assumption and every past mistake as permanent logic. There was no independent way to check the workbook against anything other than itself — it was both the process and the only record of the process, a single point of failure dressed up as a reporting tool.
Treat the spreadsheet as a specification to be reverse-engineered rule by rule, not copied. Every confirmed calculation rule is logged individually in a decision log — D-001 through D-095, roughly 95 logged decisions — rather than assumed correct in bulk. Anything ambiguous or undocumented in the original workbook is logged in an open-business-rule register and raised for the client to decide, never silently guessed. Every logged rule is then independently re-implemented in a separate oracle and diffed against the workbook's own output, so nothing is trusted on a single transcription.
Original workbook
(25 tabs, 17,061 formulas,
2 native pivots)
│
▼
┌──────────────────────────┐
│ Formula-by-formula │
│ forensic review │
└──────────────────────────┘
│
┌────────┴────────┐
▼ ▼
Confirmed rule Ambiguous / undocumented
│ │
▼ ▼
Decision log Open-business-rule register
(D-001..D-095) (raised for client decision)
│
▼
Independent oracle re-implementation
│
▼
Diff against original workbook's own output
│
▼
Confirmed rule carried into the production pipeline- Step 1Original workbook (25 tabs, 17,061 formulas)
- Step 2Formula-by-formula forensic review
- Step 3Decision log (D-001..D-095)
- Step 4Open-business-rule register
- Step 5Independent oracle re-implementation
- Step 6Diff vs. original output
The reverse-engineering process works from the original workbook's own formulas and output as the ground truth to match against. Confirmed rules are carried into a governed pipeline that consumes the same inputs the spreadsheet process consumed; the decision log and open-rule register are maintained as living documents alongside the build, not a one-time artefact produced and then discarded.
- Formula-forensics documentation process
- Independent oracle re-implementation of each confirmed rule, built separately so it can be diffed rather than assumed to agree
- Decision log and open-business-rule register as structured, versioned documents
- 1Examine
Each tab and each pivot table in the original workbook is examined formula by formula.
- 2Log confirmed rules
Every confirmed rule is logged individually and numbered (D-001 through D-095).
- 3Flag ambiguity
Where the workbook's intent is ambiguous or undocumented, the rule goes into the open-business-rule register instead of being guessed, and is raised for the client to resolve.
- 4Re-implement independently
Each logged, confirmed rule is independently re-implemented in a separate oracle — not just transcribed once from the formula and trusted.
- 5Diff
The oracle's output is diffed against the original workbook's own output, column by column; a mismatch triggers investigation before the rule is marked confirmed.
- 6Promote
Only rules that pass this round trip are carried into the production pipeline. Everything still open stays open until the client decides it.
The governing rule is: never transcribe a formula once and trust it. Every rule that makes it into the decision log was independently re-implemented and diffed against the original workbook's actual output, not just read and copied. This produces a decision log that is itself the audit trail of the reverse-engineering work — separate from, and prior to, whatever run-time logging the resulting pipeline produces once it's operating.
The decision log and open-business-rule register are durable, individually traceable artefacts. There is no single undocumented "migration completed" assertion standing in for proof — each of the roughly 95 logged decisions can be checked against the specific formula and the specific oracle diff that confirmed it.
The resulting pipeline is implemented and operating against the confirmed rule set; items still logged in the open-business-rule register remain open until the client resolves them, and are not silently treated as settled in the meantime.
Expected operational benefits
A spreadsheet that could only be trusted by the person who built it becomes a system whose every calculation traces to a numbered, confirmed decision.
Unresolved questions are visible and logged rather than buried inside a formula nobody remembers writing.
No time or error-reduction figure is stated — none has been measured and none exists on record for this engagement.
Reverse-engineering 17,061 formulas across 25 tabs and two native pivots without silently inheriting the original author's undocumented assumptions requires treating every single rule as unproven until independently re-implemented and diffed — not reading the formula once and moving on. At this scale, the discipline of logging roughly 95 individual decisions rather than one bulk "formulas reviewed" sign-off is the actual engineering work, not a formality layered on top of it.
Status: Implemented and ongoing. The decision log, the open-business-rule register, and the rule-to-oracle diffing described above are complete for the rules logged to date, and the resulting pipeline operates against that confirmed rule set. No measured customer outcome — time saved, error reduction, or otherwise — exists on record for this engagement. This page will be updated if that changes.