About this lesson

C5 LESSON 19 · PASS

SWITCH and CHOOSE: division names and a scenario picker in Google Sheets

In Google Sheets, SWITCH maps a code to a label, with an optional default at the end: =SWITCH(A8,"RX","Pharmacy","DX","Diagnostics","Unmapped"). CHOOSE returns the nth item in a list, so =CHOOSE(B1,B2,B3,B4) picks base, upside or downside growth from a scenario number in B1.

Using Excel? Do this lesson in Excel.

=SWITCH(A8,"RX","Pharmacy","DX","Diagnostics","HC","Home care","AH","Allied health","Unmapped")

What you'll practise

Turn division codes into names with SWITCH, then pick base, upside or downside growth with CHOOSE and flip the whole forecast from one cell.

4 steps · 40 points · the cells outlined in gold below

  • SWITCH
  • CHOOSE
  • scenario switch
  • absolute references

The data

ABCD
1Scenario11 base, 2 upside, 3 downside
2Base growth3.5%
3Upside growth6%
4Downside growth-1.5%
5Growth used
6
7CodeDivisionFY26 revenue ($m)FY27 ($m)
8RX412.6
9DX268.3
10HC151.9
11AH88.2
12VT37.4

Semester pass · A$49 for six months

This drill comes with the semester pass.

Every lesson, for A$49 every six months. Cancel any time and you keep the pass until the six months you've paid for run out.