Sub topic 11
Managing Inputs and Removing Hardcodes from Formulas
This chapter assumes you can build multi-sheet Excel workbooks, use relative and absolute references, and understand basic income statement, balance sheet, and cash flow concepts. It focuses on inputs: values that a user may change to represent a new assumption or scenario.
Why hardcodes create model risk
A hardcode is a value typed directly into a formula, such as =F20*1.05. The 1.05 may represent a 5% price increase, but the formula does not explain that meaning. If the assumption changes to 3%, every formula containing 1.05 must be found and edited.
Hardcodes create several risks:
- A reviewer may not know which numbers are assumptions.
- The same assumption may be changed in one formula but missed in another.
- A formula may silently use a different assumption from the rest of the model.
- Scenario analysis becomes slow and unreliable.
- Audit and review tools cannot easily distinguish logic from data.
A better design stores assumptions in a clearly labelled input area. Calculation cells refer to those inputs instead of embedding values.
Separate inputs from calculations
Keep user-entered assumptions together, usually on an Inputs sheet or in an input section. Give each input a label, unit, source, and value.
| Input | Unit | Example value | Used for |
|---|---|---|---|
| Price growth | % | 5.0% | Price per unit |
| Tax rate | % | 25.0% | Tax expense |
| Operations start | Date | 1-Jan-2027 | Timeline flag |
Use a named range when it improves readability, or use an absolute reference when the workbook convention prefers cell references. For example, if Inputs!D12 contains the opening balance:
F28: =E31+F$9*Inputs!$D$12
F29: =F27
F30: =-F26
F31: =SUM(F28:F30)The input reference is absolute, so copying the formula across periods does not move it. The period-specific references still move as intended.
A formula should describe a relationship, not hide a decision. Instead of writing =F20*1.05, place 5.0% in Inputs!D5 and write:
F21: =E21*(1+Inputs!$D$5)Now one change updates every period that uses the price-growth assumption.
Apply inputs consistently
A single input should have one authoritative location. Do not repeat the tax rate in several sheets. Link each calculation to the same input cell, then use a check or review search to find unexpected constants.
Use timeline flags when an input applies only during a defined period:
F10: =IF(AND(F$6>=Inputs!$D$8,F$7<=Inputs!$D$9),1,0)Here, the operations start and end dates remain inputs. The calculation row does not need separate date logic in every formula.
Review questions
When reviewing a model, ask:
- Can a user find every changeable assumption?
- Does each assumption have one source cell?
- Do formulas refer to inputs rather than embedded business values?
- Are absolute references used where copied formulas need a fixed input?
- Can a reviewer change one assumption and trace its effect?
Exercise
A revenue formula is =F20*1.08, where 1.08 represents an 8% price increase. How should you redesign it?
Show answer
Store 8.0% in a labelled input cell, such as Inputs!$D$5, and replace the formula with =F20*(1+Inputs!$D$5).