Forum Discussion
majormajor87
May 13, 2022Copper Contributor
SWITCH function
I'm using Excel 2016 does anyone know why the SWITCH function isn't available? Is there any other function I can use instead?
Oops, sorry.
=IF(type="","",IF(type="W",1,IF(type="SW",2,IF(type="T",3,IF(type="M",4,-1)))))
Or use a LOOKUP or VLOOKUP formula.
8 Replies
Sort By
SWITCH is available in Excel 2019 and later.
You can use IFS instead. For example
=SWITCH(A1,1,"one",2,"two",3,"three","none")
can be replaced with
=IFS(A1=1,"one",A1=2,"two",A1=3,"three",TRUE,"none")
- majormajor87Copper ContributorIFS also isn't available on this version of excel?
- majormajor87Copper ContributorWhat can I replace SWITCH and IFS with to make this formula work?
=IF(type<>"",SWITCH(type,"W",1,"SW",2,"T",3,"M",4),-1
If I
- Riny_van_EekelenPlatinum Contributor