Capturing Templates from Existing Spreadsheets
Guide for extracting skill templates from existing Excel financial models.
Overview
When you have a well-built Excel model, you can capture its structure and logic to create a reusable skill template. This process involves:
- Analyzing the spreadsheet structure
- Documenting the layout
- Extracting formulas
- Recording formatting
- Creating the skill file
Step 1: Analyze the Spreadsheet
Identify Structure
Open the workbook and document:
| Element | What to Record |
|---|---|
| Sheets | List all sheet names in order |
| Sections | Major sections per sheet |
| Row Layout | Row numbers for headers and data |
| Column Layout | Column assignments (labels, data, calculations) |
Example Analysis
Workbook: LBO_Model.xlsx
Sheets:
1. Assumptions (inputs)
2. Sources & Uses (transaction structure)
3. Operating Model (projections)
4. Debt Schedule (debt paydown)
5. Returns (IRR/MOIC)
Cross-References:
- Sources & Uses → Assumptions (entry multiple, EBITDA)
- Debt Schedule → Assumptions (interest rates)
- Returns → Debt Schedule (ending debt)
Step 2: Document the Layout
Create ASCII Diagram
Convert each sheet to ASCII format:
Sheet: Assumptions (B2:E25)
Row 2: LBO ASSUMPTIONS
Row 3: (blank)
Row 4: TRANSACTION
Row 5: Entry EV/EBITDA Multiple 10.0x ← Input
Row 6: LTM EBITDA ($M) $100.0 ← Input
Row 7: Purchase Price (EV) $1,000.0 ← =C5*C6
Row 8: Transaction Fees (% EV) 2.0% ← Input
Tips for ASCII Layouts
- Start at Row 2, Column B - Leave margins
- Show Row Numbers - For reference in formulas
- Mark Inputs vs. Formulas - Use arrows (←) with notes
- Indicate Blank Rows - Use
(blank)explicitly - Include Sample Values - Makes layout clearer
Step 3: Extract Formulas
Document Key Formulas
For each calculated cell, record:
| Cell | Purpose | Formula |
|---|---|---|
| C7 | Purchase Price | =C5*C6 |
| C13 | Sponsor Equity | =C23-C11 (plug) |
| D6 | Interest Expense | =D5*Assumptions!$C$15 |
Formula Categories to Capture
- Links - Cross-sheet references
- Drivers - Growth rates, margins
- Calculations - Sums, products
- Plugs - Balancing figures
- Outputs - Final results (IRR, share price)
Recording Format
### Purchase Price
=Entry_Multiple * LTM_EBITDA Excel: =C5*C6
### Interest Expense (BOP-based)
=Beginning_Balance * Interest_Rate Excel: =D5*Assumptions!$C$15
Step 4: Record Formatting
Document Styles
Inspect each element and record:
| Element | Fill | Font | Format |
|---|---|---|---|
| Title (B2) | Navy #203864 | White Bold | Text |
| Section (B4) | Blue #4472C4 | White Bold | Text |
| Inputs | None | Blue #0000FF | Varies |
| Output (IRR) | Yellow #FFF2CC | Bold | 0.0% |
Capture Number Formats
Select each cell type and check Format Cells > Number:
| Data Type | Format String |
|---|---|
| Currency | $#,##0.0 |
| Percentage | 0.0% |
| Multiple | 0.0x |
| Integer | #,##0 |
Note Conditional Formatting
Document any conditional rules:
### Conditional Formatting
| Range | Condition | Format |
|-------|-----------|--------|
| C25 | =0 | Green fill |
| C25 | <>0 | Red fill |
| IRR cells | >20% | Green text |
Step 5: Identify Dependencies
Map Cross-Sheet References
Create a dependency diagram:
Assumptions
↓ (Entry Multiple, EBITDA, Rates)
Sources & Uses
↓ (Equity Investment)
Operating Model
↓ (EBITDA, FCF)
Debt Schedule
↓ (Ending Debt)
Returns
Document Link Patterns
## Cross-Sheet References
| Target Sheet | Source Cell | Source Sheet | Purpose |
|--------------|-------------|--------------|---------|
| Sources & Uses | =Assumptions!C5 | Assumptions | Entry multiple |
| Debt Schedule | =Assumptions!C15 | Assumptions | Interest rate |
| Returns | ='Debt Schedule'!K17 | Debt Schedule | Exit debt |
Step 6: Create the Skill File
Assemble Components
- Write frontmatter with name and description
- Create Overview explaining model purpose
- Add Critical Errors based on common mistakes
- Document Architecture using ASCII diagrams
- List Formulas with Excel syntax
- Include Formatting table
- Add Validation checklist
- Define Triggers
Template Assembly Checklist
[ ] YAML frontmatter complete
[ ] Overview section written
[ ] All sheets documented as ASCII
[ ] Cross-sheet dependencies mapped
[ ] Key formulas extracted with Excel syntax
[ ] Formatting table populated
[ ] Validation checks comprehensive
[ ] Common triggers defined
[ ] Tested with sample prompts
Extraction Tools & Tips
Excel Tips
View Formulas
- `Ctrl + `` to toggle formula view
- Or: Formulas > Show Formulas
Trace Dependencies
- Formulas > Trace Precedents (arrows show sources)
- Formulas > Trace Dependents (arrows show destinations)
Copy Formats
- Format Painter to inspect applied styles
- Right-click > Format Cells for detailed settings
Quick Extraction Method
- Screenshot each sheet for reference
- Export to text (Save As > .txt) for structure
- Use formula auditing to trace links
- Create template section by section
Example: Capturing a DCF Template
Original Spreadsheet Analysis
Sheet: DCF Model
Range: B2:K45
Structure:
- Header: B2-K2 (Years)
- FCF Section: B4-K15
- Valuation: B17-E30
- Sensitivity: G17-L30
Captured ASCII
### DCF Model Sheet
Row 2: x FY20A FY21A FY22A FY23A FY24A FY25E FY26E Row 4: Revenue $3,500 $4,500 $6,000 ... Row 5: % growth - 28.6% 33.3% ... Row 7: EBIT $1,320 $2,125 $2,888 ... ... Row 24: FCF $1,432 $2,020 $7,367 ... Row 26: Discount Factor 0.896 0.803 Row 27: PV of FCF $6,298 $6,647
Captured Formulas
## Key Formulas
### Revenue Growth
=(C4-B4)/B4
### Discount Factor
=1/(1+WACC)^(COLUMN()-6) Reference: =1/(1+$C$5)^(G1)
Validation After Capture
Before finalizing the skill, verify:
- Recreate the model using only the skill instructions
- Compare outputs to the original
- Test edge cases (negative values, zeros)
- Verify formatting matches
- Confirm all links work across sheets
Common Capture Mistakes
| Mistake | Fix |
|---|---|
| Missing row numbers | Recount from original with Ctrl+G |
| Wrong cell references | Use Trace Precedents |
| Incomplete formatting | Document all unique styles |
| Broken cross-references | Map dependencies first |
| Hardcoded values in formulas | Replace with cell references |