Audit Spreadsheet
Audit formulas and data for accuracy and mistakes. Scope determines depth — from quick formula checks on a selection up to full financial-model integrity audits.
Step 1: Determine scope
If the user already gave a scope, use it. Otherwise ask them:
What scope do you want me to audit?
- selection — just the currently selected range
- sheet — the current active sheet only
- model — the whole workbook, including financial-model integrity checks (BS balance, cash tie-out, roll-forwards, logic sanity)
The model scope is the deepest — use it for DCF, LBO, 3-statement, merger, comps, or any integrated financial model before sending to a client or IC.
Step 2: Formula-level checks (ALL scopes)
Run these regardless of scope:
| Check |
What to look for |
| Formula errors |
#REF!, #VALUE!, #N/A, #DIV/0!, #NAME? |
| Hardcodes inside formulas |
=A1*1.05 — the 1.05 should be a cell reference |
| Inconsistent formulas |
A formula that breaks the pattern of its neighbors in a row/column |
| Off-by-one ranges |
SUM/AVERAGE that misses the first or last row |
| Pasted-over formulas |
Cell that looks like a formula but is actually a hardcoded value |
| Circular references |
Intentional or accidental |
| Broken cross-sheet links |
References to cells that moved or were deleted |
| Unit/scale mismatches |
Thousands mixed with millions, % stored as whole numbers |
| Hidden rows/tabs |
Could contain overrides or stale calculations |
Step 3: Model-integrity checks (MODEL scope only)
If scope is model, identify the model type (DCF / LBO / 3-statement / merger / comps / custom) and run the appropriate integrity checks below.
3a. Structural review
| Check |
What to look for |
| Input/formula separation |
Are inputs clearly separated from calculations? |
| Color convention |
Blue=input, black=formula, green=link — or whatever the model uses, applied consistently? |
| Tab flow |
Logical order (Assumptions → IS → BS → CF → Valuation)? |
| Date headers |
Consistent across all tabs? |
| Units |
Consistent (thousands vs millions vs actuals)? |
3b. Balance Sheet
| Check |
Test |
| BS balances |
Total Assets = Total Liabilities + Equity (every period) |
| RE rollforward |
Prior RE + Net Income − Dividends = Current RE |
| Goodwill/intangibles |
Flow from acquisition assumptions (if M&A) |
If BS doesn't balance, quantify the gap per period and trace where it breaks — nothing else matters until this is fixed.
3c. Cash Flow Statement
| Check |
Test |
| Cash tie-out |
CF Ending Cash = BS Cash (every period) |
| CF sums |
CFO + CFI + CFF = Δ Cash |
| D&A match |
D&A on CF = D&A on IS |
| CapEx match |
CapEx on CF matches PP&E rollforward on BS |
| WC changes |
Signs match BS movements (ΔAR, ΔAP, ΔInventory) |
3d. Income Statement
| Check |
Test |
| Revenue build |
Ties to segment/product detail |
| Tax |
Tax expense = Pre-tax income × tax rate (allow for deferred tax adj) |
| Share count |
Ties to dilution schedule (options, converts, buybacks) |
3e. Circular references
- Interest → debt balance → cash → interest is a common intentional circ in LBO/3-stmt models
- If intentional: verify iteration toggle exists and works
- If unintentional: trace the loop and flag how to break it
3f. Logic & reasonableness
| Check |
Flag if |
| Growth rates |
>100% revenue growth without explanation |
| Margins |
Outside industry norms |
| Terminal value dominance |
TV > ~75% of DCF EV (yellow flag) |
| Hockey-stick |
Projections ramp unrealistically in out-years |
| Compounding |
EBITDA compounds to absurd $ by Year 10 |
| Edge cases |
Model breaks at 0% or negative growth, negative EBITDA, leverage goes negative |
3g. Model-type-specific bugs
DCF:
- Discount rate applied to wrong period (mid-year vs end-of-year)
- Terminal value not discounted back
- WACC uses book values instead of market values
- FCF includes interest expense (should be unlevered)
- Tax shield double-counted
LBO:
- Debt paydown doesn't match cash sweep mechanics
- PIK interest not accruing to principal
- Management rollover not reflected in returns
- Exit multiple applied to wrong EBITDA (LTM vs NTM)
- Fees/expenses not deducted from Day 1 equity
Merger:
- Accretion/dilution uses wrong share count (pre- vs post-deal)
- Synergies not phased in
- Purchase price allocation doesn't balance
- Foregone interest on cash not included
- Transaction fees not in sources & uses
3-statement:
- Working capital changes have wrong sign
- Depreciation doesn't match PP&E schedule
- Debt maturity schedule doesn't match principal payments
- Dividends exceed net income without explanation
Step 4: Report
Output a findings table:
| # |
Sheet |
Cell/Range |
Severity |
Category |
Issue |
Suggested Fix |
Severity:
- Critical — wrong output (BS doesn't balance, formula broken, cash doesn't tie)
- Warning — risky (hardcodes, inconsistent formulas, edge-case failures)
- Info — style/best-practice (color coding, layout, naming)
For model scope, prepend a summary line:
Model type: [DCF/LBO/3-stmt/...] — Overall: [Clean / Minor Issues / Major Issues] — [N] critical, [N] warnings, [N] info
Don't change anything without asking — report first, fix on request.
Notes
- BS balance first — if it doesn't balance, everything downstream is suspect
- Hardcoded overrides are the #1 source of silent bugs — search aggressively
- Sign convention errors (positive vs negative for cash outflows) are extremely common
- If the model uses VBA macros, note any macro-driven calculations that can't be audited from formulas alone
1---
2name: audit-xls
3description: Audit a spreadsheet for formula accuracy, errors, and common mistakes. Scopes to a selected range, a single sheet, or the entire model (including financial-model integrity checks like BS balance, cash tie-out, and logic sanity). Triggers on "audit this sheet", "check my formulas", "find formula errors", "QA this spreadsheet", "sanity check this", "debug model", "model check", "model won't balance", "something's off in my model", "model review".
4metadata:
5 source: https://skillmd.com/skills/infometa/audit-xls
6---
7
8# Audit Spreadsheet
9
10Audit formulas and data for accuracy and mistakes. Scope determines depth — from quick formula checks on a selection up to full financial-model integrity audits.
11
12## Step 1: Determine scope
13
14If the user already gave a scope, use it. Otherwise **ask them**:
15
16> What scope do you want me to audit?
17> - **selection** — just the currently selected range
18> - **sheet** — the current active sheet only
19> - **model** — the whole workbook, including financial-model integrity checks (BS balance, cash tie-out, roll-forwards, logic sanity)
20
21The **model** scope is the deepest — use it for DCF, LBO, 3-statement, merger, comps, or any integrated financial model before sending to a client or IC.
22
23---
24
25## Step 2: Formula-level checks (ALL scopes)
26
27Run these regardless of scope:
28
29| Check | What to look for |
30|---|---|
31| Formula errors | `#REF!`, `#VALUE!`, `#N/A`, `#DIV/0!`, `#NAME?` |
32| Hardcodes inside formulas | `=A1*1.05` — the `1.05` should be a cell reference |
33| Inconsistent formulas | A formula that breaks the pattern of its neighbors in a row/column |
34| Off-by-one ranges | `SUM`/`AVERAGE` that misses the first or last row |
35| Pasted-over formulas | Cell that looks like a formula but is actually a hardcoded value |
36| Circular references | Intentional or accidental |
37| Broken cross-sheet links | References to cells that moved or were deleted |
38| Unit/scale mismatches | Thousands mixed with millions, % stored as whole numbers |
39| Hidden rows/tabs | Could contain overrides or stale calculations |
40
41---
42
43## Step 3: Model-integrity checks (MODEL scope only)
44
45If scope is **model**, identify the model type (DCF / LBO / 3-statement / merger / comps / custom) and run the appropriate integrity checks below.
46
47### 3a. Structural review
48
49| Check | What to look for |
50|---|---|
51| Input/formula separation | Are inputs clearly separated from calculations? |
52| Color convention | Blue=input, black=formula, green=link — or whatever the model uses, applied consistently? |
53| Tab flow | Logical order (Assumptions → IS → BS → CF → Valuation)? |
54| Date headers | Consistent across all tabs? |
55| Units | Consistent (thousands vs millions vs actuals)? |
56
57### 3b. Balance Sheet
58
59| Check | Test |
60|---|---|
61| BS balances | Total Assets = Total Liabilities + Equity (every period) |
62| RE rollforward | Prior RE + Net Income − Dividends = Current RE |
63| Goodwill/intangibles | Flow from acquisition assumptions (if M&A) |
64
65If BS doesn't balance, **quantify the gap per period and trace where it breaks** — nothing else matters until this is fixed.
66
67### 3c. Cash Flow Statement
68
69| Check | Test |
70|---|---|
71| Cash tie-out | CF Ending Cash = BS Cash (every period) |
72| CF sums | CFO + CFI + CFF = Δ Cash |
73| D&A match | D&A on CF = D&A on IS |
74| CapEx match | CapEx on CF matches PP&E rollforward on BS |
75| WC changes | Signs match BS movements (ΔAR, ΔAP, ΔInventory) |
76
77### 3d. Income Statement
78
79| Check | Test |
80|---|---|
81| Revenue build | Ties to segment/product detail |
82| Tax | Tax expense = Pre-tax income × tax rate (allow for deferred tax adj) |
83| Share count | Ties to dilution schedule (options, converts, buybacks) |
84
85### 3e. Circular references
86
87- Interest → debt balance → cash → interest is a common intentional circ in LBO/3-stmt models
88- If intentional: verify iteration toggle exists and works
89- If unintentional: trace the loop and flag how to break it
90
91### 3f. Logic & reasonableness
92
93| Check | Flag if |
94|---|---|
95| Growth rates | >100% revenue growth without explanation |
96| Margins | Outside industry norms |
97| Terminal value dominance | TV > ~75% of DCF EV (yellow flag) |
98| Hockey-stick | Projections ramp unrealistically in out-years |
99| Compounding | EBITDA compounds to absurd $ by Year 10 |
100| Edge cases | Model breaks at 0% or negative growth, negative EBITDA, leverage goes negative |
101
102### 3g. Model-type-specific bugs
103
104**DCF:**
105- Discount rate applied to wrong period (mid-year vs end-of-year)
106- Terminal value not discounted back
107- WACC uses book values instead of market values
108- FCF includes interest expense (should be unlevered)
109- Tax shield double-counted
110
111**LBO:**
112- Debt paydown doesn't match cash sweep mechanics
113- PIK interest not accruing to principal
114- Management rollover not reflected in returns
115- Exit multiple applied to wrong EBITDA (LTM vs NTM)
116- Fees/expenses not deducted from Day 1 equity
117
118**Merger:**
119- Accretion/dilution uses wrong share count (pre- vs post-deal)
120- Synergies not phased in
121- Purchase price allocation doesn't balance
122- Foregone interest on cash not included
123- Transaction fees not in sources & uses
124
125**3-statement:**
126- Working capital changes have wrong sign
127- Depreciation doesn't match PP&E schedule
128- Debt maturity schedule doesn't match principal payments
129- Dividends exceed net income without explanation
130
131---
132
133## Step 4: Report
134
135Output a findings table:
136
137| # | Sheet | Cell/Range | Severity | Category | Issue | Suggested Fix |
138|---|---|---|---|---|---|---|
139
140**Severity:**
141- **Critical** — wrong output (BS doesn't balance, formula broken, cash doesn't tie)
142- **Warning** — risky (hardcodes, inconsistent formulas, edge-case failures)
143- **Info** — style/best-practice (color coding, layout, naming)
144
145For **model** scope, prepend a summary line:
146
147> Model type: [DCF/LBO/3-stmt/...] — Overall: [Clean / Minor Issues / Major Issues] — [N] critical, [N] warnings, [N] info
148
149**Don't change anything without asking** — report first, fix on request.
150
151---
152
153## Notes
154
155- **BS balance first** — if it doesn't balance, everything downstream is suspect
156- **Hardcoded overrides are the #1 source of silent bugs** — search aggressively
157- **Sign convention errors** (positive vs negative for cash outflows) are extremely common
158- If the model uses VBA macros, note any macro-driven calculations that can't be audited from formulas alone