Inherited a Mystery Spreadsheet? Run an AI-Powered Forensic Audit in 30 Minutes
Inherited a 20-tab workbook full of cryptic formulas? Run an AI-assisted forensic audit and turn the mystery file into a map anyone can maintain.

Inherited spreadsheets look the same in every office: twenty tabs, nested formulas longer than a grocery receipt, one orange cell nobody is allowed to touch, and zero documentation. The file quietly powers the monthly report, the commission calculation, and the inventory recap — and everyone is too afraid to change it. The good news: you don't have to excavate it cell by cell alone. Modern AI chats can read Excel workbooks and Google Sheets directly, then map the structure, translate cryptic formulas, and flag the fragile spots. The seven-step workflow below usually takes 30–45 minutes on a mid-sized workbook and leaves behind two artifacts far more valuable than a one-off answer: complete understanding and an official document the next person can actually use.
1. Duplicate, Sanitize, Then Upload — Never the Original
Start with safe habits. Create a copy named audit-v1.xlsx and keep the original locked as an archive. Before uploading, strip sensitive data: salary columns, ID numbers, customer names, and vendor contacts should be deleted or replaced with dummy values. Beyond privacy, a leaner file also processes faster. If the workbook is heavy, export only the relevant tabs or grab the first 50–100 rows of each sheet — for structure mapping, a sample that size is enough. Keep a small note of everything you sanitized so the map you produce can still be read against the original file. Upload limits differ per service too: ChatGPT accepts files up to 512 MB each, while Claude lists its own size limits in the official documentation — check before pushing a giant workbook.
2. Ask for a Structure Inventory First, Not an Analysis
The most common mistake is asking the AI to explain this file right away. You get a shallow summary that sounds smart but helps nobody. Start with a census instead:
I uploaded an undocumented inherited workbook. Build an inventory:
1. Table per sheet: sheet name, data range (e.g. A1:R400), meaning of each column based on its headers.
2. Classify each sheet: INPUT (raw source), PROCESS (calculations), or OUTPUT (reports).
3. Flag the sheets with the most and the longest formulas.
4. Report risky patterns: merged cells, empty columns inside the data, hardcoded numbers in formulas, colors with no legend.
Present it as a markdown table.
The result is your mental skeleton. Only after you know what the file contains can you ask sharp questions instead of guessing.
3. Dissect the Scariest Formulas One by One
Find the three to five most frightening formulas — usually marked by long nested IFs, INDIRECT, OFFSET, or cross-sheet references full of dollar signs. Use the FORMULATEXT function (available in modern Excel and Google Sheets) to pull the formulas out as text, then paste them into the AI:
Explain this formula in plain language, step by step:
=IFERROR(INDEX(Data!$D$2:$D$500,MATCH(1,(Data!$B$2:$B$500=$B4)*(Data!$C$2:$C$500=D$2),0)),"-")
State: (1) what it computes, (2) the hidden assumptions behind it,
(3) three conditions that would make the result wrong or empty without warning,
(4) a more resilient alternative.
Point three matters most; that is where old bugs hide — for example, a range that stops at row 500 while the data now has 800 rows. Combine this with Excel's Trace Precedents feature on the Formulas tab to see visually which cells feed the formula.
4. Map the Data Flow and the Danger Zones
With the inventory and the formulas decoded, ask the AI to build a dependency map: which sheet feeds which, written as simple chains like Sales → Recap → Dashboard → CFO Email. Also request a list of danger zones: tabs where moving a single cell collapses multiple reports. While you are at it, open Excel's Name Manager and hand the list of named ranges to the AI — names like OldTable_FINAL_v2 almost always hide an undocumented story. Save this map as text on its own sheet, not just in your head; it is what you will open every time a change request arrives.
5. Test Your Understanding with Small Experiments on the Copy
Understanding is not validated until it is tested. In the copy, change one input value — say the March sales figure — and ask the AI to predict the impact on the final cells, then compare with reality. A missed prediction means a hidden assumption you haven't read yet. A faster alternative: ask the AI to design checksum rows that re-total the same column from a different direction. Two methods producing different numbers means you found a crack. Run these experiments now, while the file is still healthy — not at deadline time with every report already broken.
6. Build an Official README So the Mystery Never Returns
This is the most valuable deliverable of the whole process. Ask the AI to write the documentation:
Write a README sheet for this workbook:
- The purpose of each sheet in one sentence.
- A glossary of cryptic column names (e.g. QTY_ADJ = warehouse stock adjustment).
- The monthly update steps in order: which sheet to start from, which sheet must be closed.
- A list of must-know quirks: hardcoded cells, manual dates, volatile formulas.
Plain language, one page max, ready to paste into a sheet named README.
Paste the result as the first sheet of the workbook. Six months from now, this README is what saves you — or the new colleague — from excavating everything from zero.
7. Plan Gradual Repairs — Don't Renovate Everything at Once
Close the session with a risk-ranked plan: replace INDIRECT and OFFSET with direct references, split giant formulas into helper columns, add data validation to the input columns, then lock the formula cells with sheet protection. Apply one change per week in a fresh copy, and confirm the final numbers stay identical to the old version before overwriting the live file. The original stays frozen as a read-only archive — if a numbers dispute ever arises, it is the judge.
Inherited spreadsheets aren't scary because they are complex; they are scary because they are unmapped. AI compresses days of excavation into a half-hour forensic session, but the final judgment stays with you: every claim from the AI should be cross-checked against the original file before it is trusted. Run this workflow once, and the file that felt like a boomerang becomes an asset anyone on the team can maintain.
References
- OpenAI Help Center — Uploading files and audio to ChatGPT — upload limits and supported file types.
- Claude Help Center — Upload files to Claude — official guide to uploading documents.
- Claude Docs — Use Claude for Excel — official documentation for the Claude–Excel integration.
- Microsoft Support — FORMULATEXT function — pulling formulas as text.
- Microsoft Support — Display the relationships between formulas and cells — official Trace Precedents and Dependents guide.



