Sub topic 15
Common structural pitfalls and how to fix them
This chapter assumes you can build a basic model with inputs, calculations, and outputs, and that you know the conventions from earlier chapters: blue input cells, absolute references, row-consistent formulas, and integrity checks. Here we look at how structure breaks in practice, how to spot each failure, and how to repair it without rebuilding the model.
Why structural errors persist
Most spreadsheet errors are not arithmetic mistakes. They are structural: a number typed into the wrong place, a formula that changes halfway along a row, a sheet that does two jobs. These errors survive because the model still produces plausible numbers. Nothing turns red, and the reader only finds the problem when someone changes an assumption and an output fails to move.
The pitfalls below are ordered roughly by how often they appear. For each one you will see the symptom, the cause, and the fix.
Pitfall 1: Hardcodes inside formulas
A hardcode is a constant typed directly into a formula, such as =D10*1.1 or =E12-150000. The formula works today. It fails silently when the assumption changes, because the input sheet no longer controls the result.
Symptom: You change the growth rate on the inputs sheet and revenue does not move, or it moves in only some years.
Fix: Move the constant to the inputs layer, give it a label and a unit, and reference it.
Before: Calc!E10 = D10*1.1
After: Calc!E10 = D10*(1+Inputs!$C$5)To find hardcodes in an existing model, use Go To Special, then Constants, and review every number outside the inputs sheet. Also use Find on formulas for digits such as 1., 0., 12, and 365. Some constants are legitimate, such as 12 months per year or 1 in 1+growth. Keep those only if they are true by definition and not assumptions.
Pitfall 2: Inputs scattered through the calculation sheets
A model may have a clean inputs sheet and still contain a second set of assumptions on the calculation sheets, such as an override typed over a formula or a "temporary" growth rate in a side column.
Symptom: Two places claim to hold the same assumption, or a row of formulas has one cell in the middle with a pasted value.
Fix: Decide where each assumption lives and delete the others. If a year needs a different value, put a full time-series row on the inputs sheet (one value per year) and have the calculation formula reference it. The calculation formula stays identical across the row, and the exception becomes visible data.
| Approach | Where the exception lives | Row formula consistent? |
|---|---|---|
| Overwrite one cell on the calc sheet | Hidden inside a formula row | No |
| Time-series input row | Visible on the inputs sheet | Yes |
Pitfall 3: Formulas that change across a row
A row should hold one formula, copied across every period. If column H has a different formula from column G, the break is usually deliberate once and forgotten later.
Symptom: Using Ctrl+\ (select row differences) highlights one or more cells in a row. Or the R1C1 view shows different formulas in adjacent cells.
Fix: Make the first period work with the same formula as the others. The usual cause is an opening balance. Instead of a special formula in year 1, add an opening-balance input and use a flag row.
Calc!E5 = IF(E$3=1, Inputs!$C$8, D20) (opening balance: input in year 1, prior closing after)
Calc!E20 = E5 + E15 - E16 (closing balance, same in every column)Here row 3 holds a period counter, so the opening-balance formula is identical in every column. The same pattern handles first-period special cases for growth, depreciation, and debt.
Pitfall 4: Mixed-purpose sheets and cells
A sheet that holds inputs at the top, calculations in the middle, and a chart at the bottom works until it grows. Then the flow becomes unclear and nobody can tell which cells are safe to change.
Symptom: You cannot classify a cell as input, calculation, or output by looking at it. Formatting does not help, because the colors are inconsistent.
Fix: Separate the content, even if you keep one workbook. Move each block to a sheet or clearly marked section for its layer, then repoint the references. A good test is to ask, for every sheet, "What is the one job of this sheet?" If the answer contains "and", split it.
A related error is the output cell that contains logic. A summary that computes a margin by dividing two other cells is fine only if the same margin does not feed anything else. If another calculation needs it, compute it in the calculation layer and have the output just display it.
Pitfall 5: Circular flow between layers
Information should move from inputs to calculations to outputs. A calculation that reads from the outputs sheet, or an input that depends on a calculated result, reverses the flow.
Symptom: Inputs show black (formula) text. A calculation sheet references the outputs sheet. Excel reports a circular reference.
Fix: Trace precedents (Ctrl+[) from the suspicious cell. Move the shared value into the calculation layer, and have both the downstream calculation and the output read it from there. If the model needs a deliberate circularity, such as interest on average debt, isolate it behind a switch so it can be turned off when the model breaks.
Pitfall 6: Inconsistent signs, units, and periods
Units mismatches rarely raise errors. A percentage entered as 10 instead of 0.10 produces a revenue figure ten times too large, and that still looks like a number.
Symptoms:
- Costs added to revenue because one is stored as positive and the other as negative.
- Monthly rates applied to annual periods.
- Thousands mixed with units.
Fix:
- Put the unit in the label of every input, such as "Growth rate (fraction per year)".
- Choose one sign convention (for example, costs as positive numbers that are subtracted) and state it on the documentation sheet.
- Use input validation to restrict percentages to between 0 and 1.
- Add a check for each conversion, such as monthly figures summing to the annual total.
The Python version of the model shows the same idea: the key names carry the unit (growth_rate, cogs_pct) and the calculation applies each rate only once.
Pitfall 7: Missing or weak integrity checks
A model with no checks gives no evidence that it works. A model with checks that always show zero gives false comfort.
Symptom: The model has a checks sheet, but changing a formula to a wrong one does not trip it.
Fix: Test the checks. Break the model on purpose, such as by overwriting a formula with a number, and confirm that a check fires. Good checks compare two independent routes to the same figure.
Checks!C3 = IF(ABS(SUM(Calc!E20:E22)-Calc!E25)<0.01, 0, 1)
Checks!C10 = SUM(Checks!C3:C9)
Outputs!B2 = IF(Checks!C10=0, "All checks pass", "CHECK ERRORS: "&Checks!C10)Checks that compare a total with itself prove nothing. A useful check reconciles components to a total, balance sheet assets to liabilities plus equity, or cash flow to the change in the cash balance.
Pitfall 8: Silent error masking
Wrapping formulas in IFERROR(..., 0) hides real faults. A division by zero becomes a zero, and the zero flows into the outputs.
Fix: Handle the specific case you expect, and let other errors show.
Calc!E30 = IF(E10=0, 0, E12/E10)This returns zero only when revenue is zero. A broken reference still produces an error you can see.
A review routine
Use a short, repeatable audit when you inherit a model or finish building one.
- Check the flow: trace from outputs back to inputs and confirm nothing runs the other way.
- Select constants outside the inputs sheet and justify each one.
- Scan each calculation row with row-difference selection.
- Change each input by a visible amount and confirm that the outputs move in the expected direction.
- Break something on purpose and confirm that a check fires.
- Confirm that the master check cell is visible on the outputs sheet.
Quick reference
| Pitfall | Quick detection | Fix |
|---|---|---|
| Hardcode in formula | Search formulas for typed numbers | Move to inputs, reference with `$` |
| Scattered inputs | Pasted values inside formula rows | Time-series input row |
| Row formula breaks | Select row differences | Flag row and opening-balance input |
| Mixed-purpose sheet | Cannot classify cells | Split by layer |
| Reverse flow | Trace precedents | Move shared value into calculations |
| Unit or sign mismatch | Outputs off by a clear factor | Units in labels, validation |
| Weak checks | Break the model, see no alert | Reconcile independent routes |
| Error masking | Search for `IFERROR` | Handle specific cases |
Exercise
A model's revenue row reads =D10*(1+Inputs!$C$5) in columns E to G, but column H reads =G10*1.08. The inputs sheet shows growth of 0.10. Name the two pitfalls, and describe how to fix the row.
Show answer
The row has a hardcode (1.08) and a formula that changes across the row. Replace the H formula with =G10*(1+Inputs!$C$5) so it matches the other columns. If year 4 really needs 8% growth, add a time-series growth row on the inputs sheet and have every column reference its own year's value, so that the formula stays identical.
Exercise
A check on the checks sheet compares SUM(Calc!E20:E22) with Calc!E25, but E25 is defined as =SUM(E20:E22). Why is this check weak, and how would you strengthen it?
Show answer
The check compares a total with itself, so it can never fail. Reconcile against an independent route, for example total revenue by product against total revenue computed from volume times price, or ending cash on the balance sheet against opening cash plus net cash flow. Then break the model on purpose and confirm that the check fires.