Sub topic 9
Validating Numeric Assumptions with Rules and Alerts
Assume you know basic spreadsheet formulas, absolute references, and the layout of a simple financial model. You also know that the scenario selector chooses Base, Upside, or Downside assumptions. This chapter focuses on protecting the numeric inputs inside those scenario blocks.
Validation does not make an assumption correct. It prevents entries that are structurally impossible, such as text in a percentage cell or a growth rate outside the model's reasonable range.
Why numeric validation matters
Scenario assumptions are often edited by several people. A single value entered as 25 instead of 25% can change a model by 100 times. A negative price, a date in the wrong period, or a blank copied over an input can also produce misleading outputs.
A validation rule checks an entry when someone changes a cell. An error alert tells the user what went wrong and whether the entry is blocked.
Use validation to:
- Require numbers in numeric assumption cells.
- Set reasonable lower and upper bounds.
- Keep percentages in percentage cells.
- Prevent blanks where an assumption is required.
- Explain the expected input when an invalid value is entered.
Validation should be applied to the assumption blocks, not to the calculated live case row. The live case row should contain formulas and should not be manually edited.
Apply a rule to growth assumptions
Suppose the assumptions sheet has three scenario columns:
| Driver | Base | Upside | Downside |
|---|---|---|---|
| Revenue growth | 8% | 15% | -5% |
Select the growth input range, such as E12:G12, and create a custom data validation rule. Write the rule as if E12 is the active cell:
=AND(ISNUMBER(E12), E12>=-0.5, E12<=1)This rule accepts numeric values from -50% through 100%. The relative reference to E12 adjusts across the selected range. In F12, the same rule checks F12, and in G12, it checks G12.
The ISNUMBER test rejects text that looks like a number. The lower and upper bounds reject values outside the range. Choose limits that fit the business and the model. A subscription business may allow negative growth, while a unit price may need a lower bound of zero.
Set the error alert to stop the entry when the rule fails. Use an input message such as:
- Title: Revenue growth
- Message: Enter a percentage from -50% to 100%.
A warning-only alert can be appropriate when an unusual value is allowed but should be reviewed. Use a blocking alert when an invalid value would break the model.
Validate different types of inputs
Do not use one rule for every assumption. Match the rule to the meaning of the cell.
| Input type | Typical rule | Example |
|---|---|---|
| Growth rate | Number within a percentage range | -50% to 100% |
| Margin | Number within a logical range | 0% to 100% |
| Headcount | Whole number at least zero | 0, 1, 2, and so on |
| Price | Decimal at least zero | 0 or greater |
| Tax rate | Percentage within a policy range | 0% to 60% |
For a margin in E13, a custom rule could be:
=AND(ISNUMBER(E13), E13>=0, E13<=1)For a whole-number headcount in E14, use:
=AND(ISNUMBER(E14), E14=INT(E14), E14>=0)In Excel, built-in validation types such as Decimal, Whole number, and List can express many of these rules. Custom formulas are useful when several conditions must be checked together. Google Sheets provides similar validation options, although the menu names may differ.
Connect validation to model checks
Validation catches new invalid entries, but existing invalid values can remain after a paste operation or a change to the rule. Add a visible check cell to the model.
For the scenario index in C4, a check can return zero when the index is valid and one when it is not:
=IF(AND(ISNUMBER($C$4), $C$4>=1, $C$4<=3), 0, 1)Include this check in a master check row. A result of zero means the condition passes. A result of one means the model needs attention. You can use conditional formatting to make a nonzero result red.
Common mistakes
- Applying the rule to only the first scenario column.
- Using
E12as an absolute reference, which makes every cell check the same input. - Allowing text values such as
n/ain cells used by formulas. - Validating the displayed percentage but forgetting that
25%is stored as0.25. - Assuming validation protects pasted values in every spreadsheet application.
- Hiding the check row so users cannot see a broken switch.
After creating a rule, test a valid value, a value just outside each limit, text, and a blank. Then test each scenario column separately.
Exercise
You need to validate the revenue growth cells E12:G12 so that they accept numeric values from -50% through 100%. What custom formula should you use when E12 is the active cell, and why should E12 not be written as $E$12?
Show answer
Use =AND(ISNUMBER(E12), E12>=-0.5, E12<=1). E12 must remain relative so the rule shifts to F12 and G12 when applied across the range.