Excel SWITCH Function - Nested IF's Just Got Easier

  Рет қаралды 59,685

Computergaga

Computergaga

6 жыл бұрын

The SWITCH function provides a cleaner and more concise alternative to nested IF functions.
Learn ALL the important Excel functions - amzn.to/3Rg87Go
The SWITCH function refers to the expression just once, whilst multiple nested IF functions would refer to the expression in each logical test.
It then runs through a list of tests and resulting actions.
It is similar to the CHOOSE function, but CHOOSE is limited to using an index number only as the expression
The SWITCH function can handle text or a number as the expression.
Find more great free tutorials at;
www.computergaga.com
** Online Excel Courses **
The Ultimate Excel Course - Learn Everything ► bit.ly/UltimateExcel
Excel VBA for Beginners ► bit.ly/37XSKfZ
Advanced Excel Tricks ► bit.ly/3CGCm3M
Excel Formulas Made Easy ► bit.ly/2ujtOAN
Creating Sports League Tables and Tournaments in Excel ► bit.ly/2Siivkm
Connect with us!
LinkedIn ► / 18737946
Instagram ► / computergaga1
Twitter ► / computergaga1

Пікірлер: 74
@TY-zl1vw
@TY-zl1vw 3 жыл бұрын
Glad I found this video, it was a bit confusing when I first found out about the SWITCH function. The 2nd example is the one that really clear things up. The 1st example: using VLOOKUP on a table ‘mapping the colour to relevant %’ seem like a wise choice, especially if there’re larger # of pairs. I mean, I rather list 126 pairs in a 2C126R table to use VLOOKUP over putting 250+ values inside the SWITCH function! This was in fact my main confusion of why use a SWITCH function. The 2nd example where ‘value to return’ is a Range, this is what makes switch a good choice. Without using the SWITCH function, I would most likely use the approach ExactProBi pointed out.
@smartshan4u
@smartshan4u 3 жыл бұрын
Hi ,Great thanks for sharing this video on KZbin on "Switch" function in excel. In the second example where you shown the how to use Switch function with Vlookup, there I tried to make the formula a bit slim by using indirect function--- =VLOOKUP(C2,SWITCH(B2,"Red",Table1,"Green",Table2,"Yellow",Table3),2,TRUE), instead of =VLOOKUP(C2,SWITCH(B2,"Red",$H$2:$I$6,"Green",$N$2:$O$6,"Yellow",$K$2:$L$6),2,TRUE)...wherever in the formula there is range like $H$2:$I$6, I replaced it with Table1, Table2, Table3 respectively!
@sasavienne
@sasavienne 4 жыл бұрын
I do not want to miss any of your tutorials ..🌟 🌟 🌟 🌟
@AngelSanchez-ig3jt
@AngelSanchez-ig3jt 6 жыл бұрын
Great examples Alan. Can't wait to use this in nested functions!
@Computergaga
@Computergaga 6 жыл бұрын
Awesome, thanks Angel.
@wayneedmondson1065
@wayneedmondson1065 6 жыл бұрын
Thanks Alan.. another excellent video. Never heard of =Switch() before today. Thanks for the introduction to this new function. Thumbs up!
@Computergaga
@Computergaga 6 жыл бұрын
Thank you Wayne.
@ospino1112
@ospino1112 5 жыл бұрын
Wonderfull demonstration and function. I'd whish I'd seen this video when it came out. Thanks!
@Computergaga
@Computergaga 5 жыл бұрын
Thank you Fabio. Much appreciated.
@1gopalakrishnarao
@1gopalakrishnarao 6 жыл бұрын
Thank you very much for uploading this video. This is very helpful.
@Computergaga
@Computergaga 6 жыл бұрын
You're welcome Gopala.
@sasavienne
@sasavienne 4 жыл бұрын
Alan. I am so grateful to you. 👍 🌟 I never stop learning from you. You are like an Excel encyclopedia. Stunning. Amazing. Superb. Great. You are such a talented teacher. Best regards. Salim
@Computergaga
@Computergaga 4 жыл бұрын
Thank you very much Salim.
@qaz9258
@qaz9258 4 жыл бұрын
Your video tutorials surpass all others I watch. They are clear. The applications power is well demonstrated. Got a new subscriber. Ops looks like I already subscribed. IF(I could do it again, I would, keep subscription)
@Computergaga
@Computergaga 4 жыл бұрын
ha ha thank you. Your support is appreciated.
@mohideenthassim7180
@mohideenthassim7180 6 жыл бұрын
Hi Alan, a very useful tutorial, many thanks for sharing, appreciate it very much. Cheers Mohideen
@Computergaga
@Computergaga 6 жыл бұрын
Thanks Mohideen.
@shueybamin5244
@shueybamin5244 4 жыл бұрын
Wow, this just made my workload easier! Thanks 😀
@Computergaga
@Computergaga 4 жыл бұрын
Excellent! That is great to hear Shueyb.
@ChristianrnstrupRasmussen
@ChristianrnstrupRasmussen 4 жыл бұрын
This made my chart so much better ! Thanks.
@Computergaga
@Computergaga 4 жыл бұрын
Awesome! You're welcome 😊
@ForTheWin2007
@ForTheWin2007 5 жыл бұрын
Thanks for this. In the last part, how can you do linear interpolation instead of choosing the closet values?
@lynxwomancat
@lynxwomancat 6 жыл бұрын
Great! Thanks, Alan!
@Computergaga
@Computergaga 6 жыл бұрын
You're welcome Sandy.
@juanaraujocastellanos3065
@juanaraujocastellanos3065 3 жыл бұрын
Thanks a lot Sr.!
@Computergaga
@Computergaga 3 жыл бұрын
You're very welcome, Juan.
@mozartcup
@mozartcup 6 жыл бұрын
Very useful - thanks.
@Computergaga
@Computergaga 6 жыл бұрын
You're welcome, thanks.
@ExactProBi
@ExactProBi 6 жыл бұрын
Dynamic table array was a pain when we had to use Named ranges with indirect function..... switch has solved that issue, thanks for the video...
@Computergaga
@Computergaga 6 жыл бұрын
Great, thanks ExactPRO.
@sabbasachisaha
@sabbasachisaha 6 жыл бұрын
Thanks a lot sir for the update
@Computergaga
@Computergaga 6 жыл бұрын
You're welcome Sabbasachi.
@simfinso858
@simfinso858 6 жыл бұрын
Wow .Thanks for video....
@Computergaga
@Computergaga 6 жыл бұрын
You are more than welcome Sandeep.
@NephilimShroud
@NephilimShroud 6 жыл бұрын
what a fantastic function, thank you so much for this video! subscribed to your page :) be well!
@Computergaga
@Computergaga 6 жыл бұрын
Thank you Vanarum.
@vipinpathak6619
@vipinpathak6619 6 жыл бұрын
Thanks sir!!
@Computergaga
@Computergaga 6 жыл бұрын
You're welcome Vipin.
@prashponnappa6731
@prashponnappa6731 Ай бұрын
What is it looking up for in the tables? Could you explain the lookup relation to the tables reference to column C
@rajuar1955
@rajuar1955 6 жыл бұрын
Sir respect from India. Great tutorial.
@Computergaga
@Computergaga 6 жыл бұрын
Thanks Raju.
@nagendraprathap9697
@nagendraprathap9697 6 жыл бұрын
Thanks you sir,
@Computergaga
@Computergaga 6 жыл бұрын
You're welcome Nagendra.
@OzduSoleilDATA
@OzduSoleilDATA 5 жыл бұрын
Good examples--especially the VLOOKUP example. I've never made use of SWITCH. Do you use it much?
@Computergaga
@Computergaga 5 жыл бұрын
Thank you Oz. Not a huge amount. I like to mix things up and give each function its chance in the limelight though.
@samuelkodjoe1645
@samuelkodjoe1645 5 жыл бұрын
thus very powerful!!
@Computergaga
@Computergaga 5 жыл бұрын
Thank you Samuel.
@jidonumichael7697
@jidonumichael7697 4 жыл бұрын
Thank You very much
@Computergaga
@Computergaga 4 жыл бұрын
You're welcome Jidonu.
@Foreman1329
@Foreman1329 3 жыл бұрын
Am I understanding it right that in "values" you cannot use cells? I tried and gives back a value error.
@kevingodsave8893
@kevingodsave8893 6 жыл бұрын
NIce tutorial. I think you are considering the C column as the order quantity, not price?
@Computergaga
@Computergaga 6 жыл бұрын
Yeah I got myself a little mixed up with the 2 :) but you get what I am trying to say. The logic still works.
@kevingodsave8893
@kevingodsave8893 6 жыл бұрын
That's cool. It will be interesting to see if the Microsoft folks heed your "suggestion" and enhance it with logical operators ;)
@Computergaga
@Computergaga 6 жыл бұрын
That would be awesome. They should listen to me :)
@rajuar1955
@rajuar1955 6 жыл бұрын
Name ranges would have made life easy. (switch with vlookup)
@nikolaibrosinski1832
@nikolaibrosinski1832 5 жыл бұрын
Does anyone know how to choose this function (or if it even exists) in a german Excel Version? Couldn't find any help so far.
@Computergaga
@Computergaga 5 жыл бұрын
There is a function translator for Excel in different languages - support.office.com/en-ie/article/excel-functions-translator-f262d0c0-991c-485b-89b6-32cc8d326889 SWITCH is also quite new too. Needs Office 365.
@fishertech
@fishertech 3 жыл бұрын
how did it know which amount of discount to apply? it says it depends on number ordered but i dont see that corresponding to the people
@Computergaga
@Computergaga 3 жыл бұрын
VLOOKUP was being used as a range lookup. Looked up the price in the ordered column to see where the number fell in the ranges.
@conversationswithme8601
@conversationswithme8601 5 жыл бұрын
When it's a 95 degrees, You give them the power to shut off your cooling. You then FRY!
@jasrobsny
@jasrobsny 5 жыл бұрын
Anyone know why this function is not recognised in Office Pro Plus 2016?
@Computergaga
@Computergaga 5 жыл бұрын
It is only available with the Office 365 subscription at the moment.
@NHKprod
@NHKprod 6 жыл бұрын
The price number is not a perfect match with the ordered numbers in the discount tables. How does the function know what part of the range the price falls in. Is it because the "true" argument of the Vlookup? But wouldn't the true get the approximation above but also below the ordered number? (Not sure if I stated my question clearly)
@Computergaga
@Computergaga 6 жыл бұрын
Yes it is because of the True argument of VLOOKUP. This argument returns the closest less than. So if it looked for number 26 in a range of 0, 25 and 50 it would return from 25. This is known as a range lookup up because it returns from within a range, or within a threshold.
@NHKprod
@NHKprod 6 жыл бұрын
Haa I didn't know about the "less than" for the true argument (In my work I usually look for exact matches). Thanks a lot, great video!
@Computergaga
@Computergaga 6 жыл бұрын
You're welcome NHKprod. Yes range lookups are rare. Most people look for a specific thing.
@SohamPhadke
@SohamPhadke 4 жыл бұрын
what's the difference between ifs() and switch()
@Computergaga
@Computergaga 4 жыл бұрын
SWITCH is great because you list an expression/test once. Then test it against a list of matches. IFS require you to enter multiple logical tests, but is far more flexible and not limiting you to exact matches.
@quickpua
@quickpua 2 жыл бұрын
It seems SWITCH doesn't exist on Excel, it only exists in Office 360.
@Computergaga
@Computergaga 2 жыл бұрын
It is available from Excel 2019.
@Randy-k4p
@Randy-k4p 3 жыл бұрын
you skip a step!! What about the result ??
@Computergaga
@Computergaga 3 жыл бұрын
Result?
Excel Battle: CHOOSE vs SWITCH
11:00
Excel University
Рет қаралды 17 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 140 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 48 МЛН
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 60 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
2 Awesome Tips on How to Use the SWITCH Function in Excel
10:10
BI Gorilla
Рет қаралды 3,8 М.
IF AND OR Formula in Excel with MULTIPLE CONDITIONS
17:32
Presentation Mastery
Рет қаралды 626 М.
Excel IF Function with PARTIAL Text Match (IF with Wildcards)
6:37
Leila Gharani
Рет қаралды 708 М.
Say Goodbye to IF Statements in Excel with SWITCH
7:45
Teacher's Tech
Рет қаралды 456 М.
SWITCH Function (Multiple IF conditions, IFS function) - Google Sheets - similar in Excel
13:36
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 30 М.
How to Use the IFS Function in Excel
11:01
Leila Gharani
Рет қаралды 340 М.
When You Should Use the New Excel LET Function
17:18
Leila Gharani
Рет қаралды 755 М.
SWITCH() Function in Excel and 3 Alternatives
9:04
TeachExcel
Рет қаралды 18 М.
Master the IF Formula in Excel (Beginner to Pro)
11:16
Kenji Explains
Рет қаралды 389 М.
who is the champion of ludo luck balloon popping race ?
0:59
SS FOOD CHALLENGE
Рет қаралды 41 МЛН
УНИТАЗ В ЛЕСУ?? #shorts
0:24
Паша Осадчий
Рет қаралды 1,6 МЛН
The screw cap can also be played like this
0:20
Dice Master_1910
Рет қаралды 14 МЛН
Это Сделает Вас Миллионером 🤯
0:23
MovieLuvsky
Рет қаралды 3,8 МЛН
路飞被小孩吓到了#海贼王#路飞
0:41
路飞与唐舞桐
Рет қаралды 67 МЛН