Sub topic 4
The Scenario Selector Cell
This chapter assumes you know basic Excel or Google Sheets formulas, the difference between absolute and relative references ($A$1 versus A1), how a simple model separates inputs, calculations and outputs, and how the IF function works. It covers the one cell that controls which scenario the whole model shows. The next chapters build the dropdown and the MATCH step on top of it.
What the selector does
A scenario selector is a single input cell where the user chooses the active scenario: Base, Upside or Downside. Every scenario-dependent formula in the model reads from this cell, directly or through an index derived from it. The user changes one cell, and the whole model recalculates.
The selector is the only place where a person says which scenario they want. Everything after it is formula. That makes it the most important input in the model, and it should be treated as one.
The CHOOSE function shows the idea in its simplest form. It returns the value at the position given by its first argument:
=CHOOSE(2, "Base", "Upside", "Downside")This returns "Upside", because the first argument is 2. In a real model you do not type the 2. A cell supplies it, and that cell is the selector, or a number derived from it.
Where the selector lives
Place the selector where the user will see it before they read any output. Common choices are the top of the assumptions sheet, the top of the summary sheet, or a header band repeated on each sheet.
Follow these rules:
- Put it in one place only. If two cells can each set the scenario, the model can show two scenarios at once, and nobody can tell which one is live.
- Keep it on the same sheet as the label that tells the reader which case is shown. If the selector is on the assumptions sheet and the outputs are on a summary sheet, repeat the active scenario name on the summary with a formula such as
=Assumptions!$C$3. Never type the name again by hand. - Format it as an input. Use the model's input style, for example blue font and a light yellow fill, so users know they may change it.
- Leave the cells around it clear. A label to its left and a note to its right are enough.
In the layout used in this tutorial, the selector sits in C3, the scenario index sits in C4, and the list of scenario names sits in B5:B7.
| Cell | Contents | Role |
|---|---|---|
| `B3` | Scenario | Label |
| `C3` | Base | Selector (user input) |
| `B4` | Scenario index | Label |
| `C4` | `=MATCH($C$3, $B$5:$B$7, 0)` | Index (formula) |
| `B5:B7` | Base, Upside, Downside | List of valid names |
Only C3 is typed by the user. C4 is a formula and should not be overwritten.
Text or number as the selector?
You can build the selector two ways. Both are common, and the choice affects the rest of the model.
- A number selector. The user types 1, 2 or 3. The value feeds CHOOSE directly. It is simple, but the user has to remember what each number means.
- A name selector. The user picks "Base", "Upside" or "Downside" from a dropdown. A MATCH formula converts the name to a number. It takes one more cell, but the model is readable and hard to misuse.
This tutorial uses a name selector. A reviewer who sees "Downside" in C3 knows immediately what the model is showing. A reviewer who sees a 3 has to look it up.
The conversion is one formula, which you will build in detail in a later chapter:
=MATCH($C$3, $B$5:$B$7, 0)With an exact match (match type 0), the formula returns 1 for Base, 2 for Upside and 3 for Downside. If the text in C3 is not in the list, it returns #N/A.
What can go wrong in the selector cell
A selector that accepts any text is fragile. These are the failures you will meet most often.
- A misspelled name. If someone types "Upsde", MATCH returns
#N/A, and the error spreads through every cell that depends on the index. The model breaks visibly, which is better than breaking silently, but it is still a failure. - Extra spaces. "Base " with a trailing space does not match "Base". The cell looks correct on screen, so this is hard to spot.
- A number where a name is expected. Typing 2 in a name selector gives
#N/A, because 2 is not in the list. - Case differences. MATCH ignores case, so "base" and "BASE" both match "Base". This is harmless, but the displayed text will not be consistent with the list.
- Overwriting a formula. If a user types over
C4, the index no longer follows the selector. The model keeps running and shows the wrong scenario with no error at all.
The last failure is the dangerous one. An error value draws attention. A hard-coded index does not. The integrity check in the final section of the tutorial exists to catch it, and you can apply the first protection right away by restricting what C3 accepts.
Restricting the selector with a list
The standard protection is a data validation list on the selector cell. The list source is the range of valid names:
Data validation (Allow: List)
Source: =$B$5:$B$7
B5: Base
B6: Upside
B7: DownsideSelect C3, open Data > Data Validation, choose List as the Allow type, and enter =$B$5:$B$7 as the source. The cell then shows a dropdown arrow, and Excel rejects entries that are not in the list (with the default Stop alert).
Using a range as the source, not a typed list such as Base,Upside,Downside, has two benefits. The names exist in one place, so MATCH and the dropdown always agree. If you rename a scenario, you change one cell.
The next chapter covers the dropdown settings and error alerts in detail. For now, remember that validation is a guard on typing. It does not stop a user from pasting a value over the cell, because paste replaces the validation rule along with the value in some cases. The integrity checks later in the tutorial back it up.
How the selector flows through the model
The selector is the start of a chain. A change in C3 moves through each step below.
Each step does one job:
- The user picks a name in
C3. - MATCH converts it to a position in
C4. - CHOOSE uses
C4to select the matching assumption for each driver. - The calculations use only the live case row, never the scenario blocks directly.
- The outputs show the result for the selected scenario.
The fourth step matters. If some calculations read the Base block directly and others read the live case row, the model mixes scenarios. Each driver should have exactly one path into the calculations, and that path goes through the live case row.
Using the index in a formula
Once C4 holds the index, a live case formula picks one assumption per driver. In the layout used here, row 12 holds revenue growth, with Base in E12, Upside in F12 and Downside in G12:
=CHOOSE($C$4, E12, F12, G12)Both $C$4 references are absolute, so you can copy the formula down to other driver rows without the index moving. The value references (E12, F12, G12) are relative to the row, so they shift to E13, F13, G13 on the next row. The order of the arguments must match the order of the names in B5:B7. If the list says Base, Upside, Downside, then the first value argument must be the Base assumption.
You can write the same lookup with INDEX, which is shorter when there are many scenarios:
=INDEX($E12:$G12, $C$4)A later chapter compares the two. The selector works the same way for both, since each needs only the index.
A working check on the selector
You can test the selector before building the rest of the model. Try each of the following and confirm the result.
- Pick "Base" in
C3.C4should show 1. - Pick "Upside".
C4should show 2. - Pick "Downside".
C4should show 3. - Try typing "Stress" into
C3. The dropdown validation should reject it. - Rename
B6from "Upside" to "High".C3should now reject "Upside" and accept "High". IfC3still contains "Upside" from before,C4returns#N/A.
The last test shows an edge case. Validation checks entries when they are made. It does not recheck a value that is already in the cell. After renaming a scenario, update the selector as well.
Common mistakes with the selector
- Two selectors. One on the assumptions sheet and one on the summary, each driving part of the model. Keep one.
- A relative reference to the selector. Writing
C3instead of$C$3works in the first cell and breaks when you copy the formula. Use absolute references, or a named range (covered in a later chapter). - A hard-coded scenario label on the summary. A title that says "Base case" in typed text stays "Base case" when the selector changes. Link it to the selector.
- Delivering the model with the selector on a non-default scenario. Agree on which scenario a file opens on, usually Base, and set it before saving and sending.
- Hiding the selector. Users who cannot see it will not know which case they are reading.
Summary
The selector cell is the single input that decides which scenario the model shows. Keep it in one visible place, format it as an input, and restrict it to a list of valid names. Convert the name to an index in one separate formula cell, and let every scenario-dependent driver read that index through CHOOSE or INDEX. The main risks are invalid text and an overwritten index, and later chapters add the validation alerts and the integrity checks that cover them.
Exercise
A colleague types "downside" (all lowercase) into the selector cell C3. The list in B5:B7 contains Base, Upside and Downside, and C4 is =MATCH($C$3, $B$5:$B$7, 0). What does C4 return? Then the colleague overwrites C4 with the number 1. What happens to the model, and why is that harder to notice than the first case?
Show answer
C4 returns 3, because MATCH ignores case, so "downside" matches "Downside" in the third position. After C4 is overwritten with 1, the model keeps showing the Base assumptions while C3 still says "downside". No error appears, because 1 is a valid index, so the outputs look normal but belong to the wrong scenario. This is harder to notice than a #N/A error, which is visible. A check that compares C4 with MATCH of C3, or a check that confirms C4 is a formula, would catch it.
Exercise
You have a selector in C3 with a dropdown, and a revenue growth driver with Base 5% in E12, Upside 9% in F12 and Downside 1% in G12. The index is in C4. Write the live case formula for the growth driver so that it can be copied down to other driver rows, and state what it returns when C3 is "Upside".
Show answer
=CHOOSE($C$4, E12, F12, G12) returns 9% when C3 is "Upside", because MATCH gives 2 and CHOOSE returns its second value argument, F12. The index reference is absolute ($C$4) so it stays fixed when the formula is copied down, and the value references are relative so they move to the next driver row.