Sub topic 12
Integrity Checks
Assume you can create cell references and simple formulas, and that you understand the inputs, calculations, and outputs layers. An integrity check is a formula that tests whether a model follows an expected rule. It does not prove that the assumptions are correct. It detects broken links, missing formulas, sign errors, and inconsistent totals.
A reliable model should make errors visible before someone relies on its results.
What to check
Checks should test relationships that must always hold. Common examples include:
- Total revenue equals the sum of the revenue components.
- Gross profit equals revenue minus cost of goods sold.
- Assets equal liabilities plus equity.
- Opening cash plus the period change equals closing cash.
- A balance sheet balances in every period.
- A percentage stays within an allowed range.
- Required inputs are not blank.
- A time series contains formulas for every expected period.
Place detailed checks close to the relevant calculations, then show one master status on the outputs sheet.
Building a reconciliation check
Suppose cells E20:E22 contain three components and E25 contains their reported total. A reconciliation check can return 0 when the model passes and 1 when it fails:
=IF(ABS(SUM(E20:E22)-E25)<0.01,0,1)The ABS function ignores whether the difference is positive or negative. The tolerance of 0.01 prevents a harmless rounding difference from causing an error. Choose a tolerance that matches the model's units. For a model in millions, a larger tolerance may be appropriate.
Use the same test across every forecast period. The formula should move with the time axis rather than point to a single year.
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)The master check counts failed tests. A value of zero means every registered check passed. Any positive value should be visible and easy to investigate.
Check the structure, not only totals
A model can balance while still being wrong. For example, a hardcoded total may equal its components today but fail when an assumption changes. Add checks that reveal structural problems:
- Compare the number of populated forecast periods with the expected number.
- Test that key input cells contain numbers.
- Test that tax rates, growth rates, and margins fall within sensible bounds.
- Check that formulas exist across the complete forecast range.
- Confirm that scenario switches contain only permitted values.
| Check | Example rule | Failure may indicate |
|---|---|---|
| Reconciliation | Components equal total | Missing or duplicated item |
| Range | Rate is between 0% and 100% | Invalid assumption |
| Completeness | Every period has a value | Missing formula |
| Balance | Assets minus liabilities and equity equals zero | Broken statement link |
Place checks in the model flow
Checks belong after the calculations they test and before the final report. This keeps the flow easy to follow:
Format failed checks with a visible warning color. Do not hide them with conditional formatting that makes the warning difficult to read. Give each check a clear label, such as Cash roll-forward or Balance sheet balance.
A practical review sequence
When a check fails:
- Identify the failing period and check label.
- Inspect the difference, not only the pass/fail flag.
- Trace the referenced cells back toward the inputs.
- Look for an omitted row, wrong sign, shifted reference, or hardcoded value.
- Recalculate and confirm that the master check returns zero.
Exercise
A balance check returns 1 only in the final forecast year. What should you inspect first?
Show answer
Inspect the final year's formulas and references for a missing row, a shifted column reference, or a hardcoded value. Compare that year with the preceding year rather than changing the check itself.