Sub topic 2
Restricting the selector with a data validation dropdown
This chapter assumes you know basic formulas, absolute references such as $B$5, and the IF function. It uses a model whose assumptions sheet has one column per scenario: Base in column E, Upside in column F, and Downside in column G.
Creating the dropdown
The selector cell holds the name of the active scenario. Typed names invite typos such as "Upsid", which break the lookup in the next step. A data validation list limits the cell to valid entries.
- Type the scenario names in B5 to B7: Base, Upside, Downside.
- Select C3, the selector cell.
- Open Data, then Data validation (Excel: Data > Data Validation).
- Set Allow to List and Source to
=$B$5:$B$7. - Click OK. A dropdown arrow appears in C3.
Choose Base in C3 for now.
Turning the name into a number with MATCH
CHOOSE needs a position number, not a name. MATCH returns the position of a value within a list. The third argument, 0, requires an exact match.
In C4, enter:
=MATCH($C$3, $B$5:$B$7, 0)Base returns 1, Upside returns 2, and Downside returns 3. A name outside the list returns #N/A, which signals a broken switch.
Building the live case row
The live case row sits beside the assumptions and picks the active value for each driver. For revenue growth in row 12, enter this in D12:
=CHOOSE($C$4, E12, F12, G12)Copy D12 down to the other driver rows. Calculations read only column D, so changing C3 updates the whole model.
Exercise
C3 holds "Upside", but C4 shows #N/A. What is the most likely cause, and how do you fix it?
Show answer
The text in C3 does not exactly match B5:B7. A trailing space or a pasted variant of the name is the usual cause. Reselect the value from the dropdown so the text matches the list exactly.