description: Debug and audit financial models for errors — circular references, broken formulas, hardcoded overrides, balance sheet imbalances, cash flow mismatches, and logic gaps. Use when a model isn't tying, producing unexpected results, or before sending to a client or IC. Triggers on "debug model", "model check", "audit model", "model won't balance", "something's off in my model", "check my model", "QA model", or "model review".
Workflow
Step 1: Ingest the Model
Accept the user's Excel model (.xlsx or .xlsm)
Identify model type: DCF, LBO, merger, 3-statement, comps, returns, or custom
Map the structure: which tabs exist, how they're linked, where inputs vs. outputs live
Step 2: Structural Checks
Tab & Layout Review:
Are inputs clearly separated from calculations?
Is there a consistent color-coding convention? (blue = input, black = formula, green = link)
Are there hidden tabs or rows that could contain overrides?
Is the model flow logical? (assumptions → IS → BS → CF → valuation)
Formula Consistency:
Check for hardcoded numbers inside formulas (partial hardcodes)
Check for inconsistent formulas across row/column ranges (should be the same formula dragged across)
Identify any #REF!, #VALUE!, #N/A, #DIV/0! errors
Flag cells that are formatted as formulas but contain hardcoded values
Step 3: Integrity Checks
Balance Sheet:
Total Assets = Total Liabilities + Equity (every period)
If imbalanced, quantify the gap and trace where it breaks
Check that retained earnings rolls forward correctly: Prior RE + Net Income - Dividends = Current RE
Verify goodwill and intangibles flow from acquisition assumptions (if M&A model)