Sub topic 4
The Scenario Selector Cell
Assume you know basic spreadsheet formulas, absolute references such as $A$1, and the difference between model inputs, calculations, and outputs. You should also be familiar with IF and with copying formulas across a worksheet.
A scenario selector is the single input that tells the model which set of assumptions to use. For example, a financial model might contain Base, Upside, and Downside cases. The selector lets the user change the active case without editing each assumption separately.
Why use one selector?
Without a selector, a user might overwrite revenue growth, margin, tax rate, and other inputs one by one. That creates two problems:
- The assumptions may come from different scenarios.
- It becomes difficult to reproduce or audit a result.
A selector keeps the choice in one cell. The rest of the model reads that cell and retrieves the matching assumptions.
Use a clearly labeled area near the top of the model:
| Cell | Label | Value |
|---|---|---|
| B3 | Active scenario | Base |
| B5:B7 | Allowed scenarios | Base, Upside, Downside |
In this example, C3 is the selector cell. It contains the active scenario name.
Design the selector cell
Choose a location that is visible on the assumptions or control sheet. Give the cell a clear label, such as Active scenario, and use a consistent format for scenario names.
The names must match the names used elsewhere in the workbook. For example, Base, Upside, and Downside are different from base, High, and Downside case when formulas perform exact text matching.
A typical control area looks like this:
| Cell | Content |
|---|---|
| B3 | Active scenario |
| C3 | Base |
| B5 | Base |
| B6 | Upside |
| B7 | Downside |
The cells B5:B7 form the source list for the selector. Keeping the list in cells is easier to maintain than typing names directly into several formulas.
Connect the selector to a scenario index
Spreadsheet lookup formulas work more reliably with a number than with a text label. Convert the selected name into its position in the allowed list with MATCH.
=MATCH($C$3, $B$5:$B$7, 0)The final argument, 0, requires an exact match. The result is:
| Selector in C3 | Result |
|---|---|
| Base | 1 |
| Upside | 2 |
| Downside | 3 |
The dollar signs make both the selector and list references absolute. If you copy the formula to another cell, it will continue to use C3 and B5:B7.
You can place the result in C4 and label it Scenario index. Later formulas can use C4 to choose the corresponding assumption column.
=CHOOSE($C$4, E12, F12, G12)If C4 is 1, the formula returns E12. If it is 2, it returns F12. If it is 3, it returns G12. The selector therefore controls the model indirectly: the user chooses a name, MATCH produces an index, and CHOOSE retrieves the value.
Add a visible control path
A simple control path makes the model easier to inspect:
Keep the selector and index close together. A reviewer should be able to trace the active scenario without searching through unrelated worksheets.
Handle an invalid selection
If C3 does not exactly match one of the names in B5:B7, MATCH returns #N/A. That is useful because it exposes a broken selector instead of silently choosing the wrong case. The next chapter will restrict the cell with a dropdown so invalid names are harder to enter.
You can also add a check cell:
=IF(AND(ISNUMBER($C$4), $C$4>=1, $C$4<=3), 0, 1)A result of 0 means the switch is valid. A result of 1 means the selector or index needs attention. Include this check in the model’s main error display.
Exercise
If C3 contains "Upside" and B5:B7 contains Base, Upside, Downside in that order, what does MATCH return, and which cell does CHOOSE use for =CHOOSE(C4,E12,F12,G12)?
Show answer
MATCH returns 2, so CHOOSE uses F12.