Sub topic 10
Hunting Hardcodes, Broken Links and Inconsistent Formulas
Assume you can read the income statement, balance sheet, and cash flow statement, and that you are comfortable with Excel formulas, cell references, and basic double-entry accounting. This chapter focuses on finding model construction errors after a balance check shows an imbalance.
Start with the first bad period
Do not begin by reviewing every formula in the model. First identify the earliest period in which the balance check fails. Later periods may simply carry the original error forward.
For each period, calculate:
=ROUND(Total_Assets-(Total_Liabilities+Total_Equity),2)Then flag material differences:
=IF(ABS(Balance_Check)<0.01,"OK","ERROR")If 2025 balances and 2026 does not, compare 2026 with 2025. Look for the first new transaction, forecast assumption, or formula change. This reduces the search from the entire workbook to the lines that changed at the point of failure.
Find hardcodes in forecast periods
A hardcode is a value typed directly into a cell instead of being calculated or linked. Hardcodes are not always wrong. Historical financial statements often contain hardcoded source data. A forecast period should usually contain formulas that reference assumptions or prior-period balances.
Common warning signs include:
- A forecast cell contains
125instead of a formula. - One period in a row has a different color or formatting.
- A formula was replaced with a value during a manual override.
- A balance sheet line does not move when its driver changes.
- The formula bar shows a number where neighboring cells show formulas.
Use a formula view or inspect the formula bar across the first failing period. Compare the suspicious cell with the cells immediately to its left and right.
Detect broken links and inconsistent formulas
A broken link can point to the wrong row, wrong period, or wrong sheet. An inconsistent formula may calculate correctly in most periods but use a different reference in one column.
For example, a debt balance should normally roll forward as follows:
=Prior_Period_Debt+New_Borrowing-Debt_RepaymentIf one period instead references cash or the prior year twice, the balance sheet may fail even though the formula contains no error message.
Check formulas by comparing their reference patterns, not just their displayed values. In Excel, use:
- Trace Precedents to see which cells feed the selected formula.
- Trace Dependents to see where a balance is used.
- Show Formulas to compare formulas across a row.
- Error Checking to find
#REF!,#VALUE!, and related errors. - Go To Special to locate formulas, constants, and blanks.
A formula can be syntactically valid and still be economically wrong. =C45+C46 is valid even if the model requires =C45-C46.
Test links with roll-forwards
Use independent roll-forward checks to expose a bad link. For retained earnings:
=Ending_Retained_Earnings-(Beginning_Retained_Earnings+Net_Income-Dividends)For property, plant, and equipment:
=Ending_PP&E-(Beginning_PP&E+Capex-Depreciation)For working capital, check that the balance sheet movement agrees with the cash flow adjustment. A mismatch often identifies the missing or duplicated line faster than inspecting the balance check alone.
Make the correction auditable
After correcting a cell, recalculate the model and confirm that:
- The balance check is within tolerance in every period.
- Cash flow ending cash equals balance sheet cash.
- The affected roll-forward now reconciles.
- The corrected formula follows the same pattern as neighboring periods.
- No new error or circular reference appears.
Record the reason for unusual assumptions in a nearby note or assumptions section. This helps distinguish deliberate overrides from accidental hardcodes during the next review.
Exercise
The balance sheet first fails in 2026. The 2026 depreciation formula is hardcoded, and the PP&E roll-forward is short by exactly the depreciation amount. What should you inspect and fix first?
Show answer
Replace the hardcoded depreciation value with the intended linked or calculated formula, then rerun the PP&E roll-forward and the balance check. Do not plug the balance sheet.