I have a particularly long statement in some complex sheets. Adding additional arguments has become quite difficult. I'm going to rewrite this to a switch. Solely for the sake of readability and expandability. I prefer to have a deep knowledge of a few functions to accomplish as much as I can. My new primary arsenal will now be: FILTER, LET, SWITCH, SEARCH, LEFT, RIGHT, CONCAT, IF
Yes ... however the formula will spill in order to return one result for each choice. One option to solve for that is to wrap the CONCAT and IFERROR functions around SWITCH. So, it would be something like this =CONCAT(IFERROR(SWITCH(A1,{1,2,3}, ...),""))
Sorry you were unable to grab the download file. I just tested and it seemed to work ok for me here. Email us at support@excelu.com and we'll email it no worries. Thanks Jeff
2 comments if I may: 1. you can "overcome" the #VALUE! error in the CHOOSE formula, if you wrap it with an IFERROR 2. Two additional advantages of SWITCH over CHOOSE 1) CHOOSE can accept only positive integers whereas SWITCH can accept any integer (positive, negative, zero) 2) SWITCH can accept a decimal number whereas CHOOSE rounds the number down.
IFS works better in my opinion. If one function does not work, you can tell it to try a completely different function next. Switch only lets you use one function for everything listed.
Another excellent video, thank you Jeff. I wonder who thought SWITCH was an appropriate name for this functionality. Surely it should be CHOOSES as in IF & IFS
Never used either of them before! I'm going with SWITCH next time!
Brendan!!!!!!!!!!!!!!! Thanks for your comment man, and glad you like SWITCH :)
Love, love, love Excel University training! Was unfamiliar with both Choose and Switch but now have those tools loaded in my arsenal. Thanks, Jeff!
Thank you for your kind note :)
awesome. I would go with SWITCH one.
Thank you for this, I wasn't familiar with either function but will give switch a go
Switch of course, most of the time combining it with True() as a first argument. ;)
Great video, thanks Jeff
It is based on situation we have, sometimes we prefer choose, other times switch
switch is a go, thanks!
Really great example of both functions and how they can be used in different ways!
Thanks ... glad it helped!
@@ExcelU I am looking forward to using them more thanks to your video so it defiantly helped. 🙂
Switch it is! So glad I watched this video - nested IF statements are hell. Thanks!!!
Well done. Thank you.
Great example of both, but I would default to Switch!
I have a particularly long statement in some complex sheets. Adding additional arguments has become quite difficult. I'm going to rewrite this to a switch. Solely for the sake of readability and expandability. I prefer to have a deep knowledge of a few functions to accomplish as much as I can. My new primary arsenal will now be: FILTER, LET, SWITCH, SEARCH, LEFT, RIGHT, CONCAT, IF
Definitely will use SWITCH. Very much like the VBA function “Select Case”.
SWITCH for the more complex situations and also affords more flexibility. CHOOSE for simpler scenarios.
Switch looks great 👍
I am going with SWITCH function 😊
Switch rules!
With switch can you define array of multiple choice with curly brackets?
Yes ... however the formula will spill in order to return one result for each choice. One option to solve for that is to wrap the CONCAT and IFERROR functions around SWITCH. So, it would be something like this =CONCAT(IFERROR(SWITCH(A1,{1,2,3}, ...),""))
switching to switch
XL file download don't work. Excellent video.
Sorry you were unable to grab the download file. I just tested and it seemed to work ok for me here. Email us at support@excelu.com and we'll email it no worries.
Thanks
Jeff
SWITCH 👍
switch!
I choose "Switch"
SWITCH
2 comments if I may:
1. you can "overcome" the #VALUE! error in the CHOOSE formula, if you wrap it with an IFERROR
2. Two additional advantages of SWITCH over CHOOSE
1) CHOOSE can accept only positive integers whereas SWITCH can accept any integer (positive, negative, zero)
2) SWITCH can accept a decimal number whereas CHOOSE rounds the number down.
earlier CHOOSE now SWITCH
how about IFS vs SWITCH🧐
IFS works better in my opinion. If one function does not work, you can tell it to try a completely different function next. Switch only lets you use one function for everything listed.
Heisenberg
Another excellent video, thank you Jeff.
I wonder who thought SWITCH was an appropriate name for this functionality. Surely it should be CHOOSES as in IF & IFS
Thanks! The name for SWITCH probably comes from programming languages which offer the same function :)
I believe you use the switch function for IF, AND, OR statements.
SWITCH is the winner
Switch wins