SWITCH Excel function

City Financial Models • 1 July 2019

SWITCH - A new function

The new SWITCH function can be used as an update to the CHOOSE function as it allows referencing on text values rather than integers.

It is a new function included in Excel 2019 and allows you to evaluate one value against a list of values. You are able to evaluate up to 126 matching values and results.

The syntax is:

=SWITCH(Value to switch, Value to match1...[2-126], Value to return if there's a match1...[2-126], Value to return if there's no match)


by City Financial Models 27 May 2020
This something we are starting to see as we work across a number of different versions of Excel. Recently, Microsoft rolled out something called dynamic array formulas in Excel 365, which is a substantial change from previous versions. Dynamic array formulas automatically spill in to neighbouring blank cells. They have also added some very powerful new functions such as FILTER, UNIQUE, XLOOKUP and XMATCH. Even better there is no need to enter array formulas with control + shift + enter (CSE) as in other versions. However, because of the way dynamic arrays work, there will be instances where models built in other versions will have formulas which unintentionally now try to spill or populate into neighbouring cells when opened in Excel 365. Hence the Spill error. To overcome this, the @ character is added automatically to stop formulas unintentionally spilling multiple results into neighbouring cells. Because dynamic arrays are only available in the subscription version at the moment and not in the other versions, these powerful new functions may cause some compatibility issues. In general, the @ character should overcome the compatibility issues with models build in other versions to work in Excel 365, however the dynamic array functions at present will not work in non-subscription versions so should be used with caution if you aren’t sure of your final audience.
by City Financial Models 24 April 2020
Brexit Scenario Analysis
by City Financial Models 1 November 2019
Powerful Excel feature that can save a lot of time.
by City Financial Models 2 September 2019
Sign conventions can cause confusion in the use and development of a model.
by City Financial Models 12 August 2019
Goal Seek
by City Financial Models 5 August 2019
TEXTJOIN - A new text function
by City Financial Models 22 July 2019
Handy Excel navigation keyboard shortcuts, especially useful for laptops
by City Financial Models 10 June 2019
NPV - Using it correctly
by City Financial Models 6 May 2019
IFS - A new approach to nested IF functions
by City Financial Models 10 March 2019
DATEDIF - A very useful Excel function to find the number of complete years, months or days between two dates.