Sub topic 9
Finding Hardcoded Numbers Inside Formula Rows
Assume you can write basic Excel formulas, use absolute and relative references, and recognize the income statement, balance sheet, and cash flow sections of a three-statement model. This chapter focuses on one audit question: does a row that should calculate across periods contain typed-in numbers?
A hardcoded value is a value entered directly into a cell instead of calculated by a formula. Hardcodes are not always wrong. Historical revenue may come from reported financial statements, and an explicit management assumption may be typed into an input section. A hardcode becomes a model risk when it appears inside a forecast formula row without explanation.
Why hardcodes break a model
Consider a forecast revenue row:
| Cell | Formula or value | Meaning |
|---|---|---|
| D20 | `=C20*(1+D18)` | Revenue grows from the prior period |
| E20 | `=D20*(1+E18)` | Revenue grows from the prior period |
| F20 | `125000` | Typed-in value that breaks the pattern |
| G20 | `=F20*(1+G18)` | Uses the unexplained override |
If the growth assumption in F18 changes, F20 does not respond. Every later period uses the wrong starting point. The model may still balance, so a balance check alone will not find this issue.
Common causes include pasted values, accidental overwrites, formulas replaced during scenario analysis, and intentional overrides that were not documented.
Inspecting a formula row
Start by identifying the expected pattern. Select several adjacent cells in the row and compare their formulas. Relative references should usually move consistently from one period to the next.
Use Show Formulas to inspect a larger area:
- Select the calculation range.
- On the Formulas tab, choose Show Formulas, or press Ctrl+`.
- Scan across the row for a cell displaying a number while neighboring cells display formulas.
- Turn Show Formulas off after the review.
Show Formulas changes the worksheet display. It does not change the formulas or values. It is useful for spotting breaks in a repeated pattern, but it can be difficult to use on a large model with many sections.
Selecting constants with Go To Special
Go To Special can select cells containing constants. To narrow the result:
- Select the row or range that should contain formulas.
- Press Ctrl+G, choose Special, and select Constants.
- Clear the selections for Text, Logicals, and Errors if you only want numbers.
- Select OK.
- Review the highlighted cells against the row's purpose and the model's input conventions.
This method is fast, but it does not know whether a constant is intentional. A historical period, an input assumption, and an accidental overwrite can all be selected.
Checking with ISFORMULA
ISFORMULA returns TRUE when a cell contains a formula and FALSE when it contains a constant. You can count non-formula cells across a row with a helper check:
=SUMPRODUCT(--NOT(ISFORMULA(D20:N20)))A result of zero means every cell in the selected range contains a formula. A positive result tells you how many cells need review. The check does not prove that the formulas are correct. It only identifies cells that are not formulas.
You can also test each cell beside the row:
=IF(ISFORMULA(D20),"Formula","Review")Keep these checks outside the audited range, or place them on a dedicated checks sheet.
Recording and correcting findings
For each suspicious cell, record the address, current value, expected behavior, proposed correction, and reviewer decision. If F20 should follow the row pattern, copy the formula from E20 across to F20 and verify that its references shift correctly. If F20 is an approved override, label it clearly and document its source.
Exercise
A forecast row contains formulas in D20:E20 and G20:N20, but F20 contains a typed number. What should you do before changing F20?
Show answer
Confirm whether F20 is an approved override or an accidental hardcode. Compare neighboring formulas, check the model's input conventions, and record the decision before correcting or documenting the cell.