Say Goodbye to IF Statements in Excel with SWITCH

  Рет қаралды 598,480

Teacher's Tech

Teacher's Tech

Күн бұрын

Пікірлер: 540
@Gorman-84
@Gorman-84 9 ай бұрын
I am the master of nested IF statements. You have ruined my life. Just kidding. This is great. I cannot wait to replace all of my nested IFs. Thank you.
@AlThePal78
@AlThePal78 8 ай бұрын
you can use =IFS() as well so they don't have to be nested and it looks more like this switch statement
@NickCombs
@NickCombs 7 ай бұрын
If statements are still needed in any situation where you test different data points. Cases where you have just one value to test are actually not as common as you'd think outside of simple demos.
@bobgreenfield9158
@bobgreenfield9158 6 ай бұрын
​@@AlThePal78Single Ifs can work just return the "" and concatenate with the other Ifs.
@RichardJJennings
@RichardJJennings 9 ай бұрын
At 1:30 I realised this is the DECODE function in SQL. Super handy and I no longer need to do those awful nested IFs. Thank you
@garciarogerio6327
@garciarogerio6327 8 ай бұрын
I use SWITCH it in Power Bi. I normally use IFS to avoid nested if statement. Great one!
@highestbuilding
@highestbuilding 11 ай бұрын
I didn't know about this function. But after watching your video, I still prefer using tables with the xlookup-function to keep things as variable as possible.
@jmacdono
@jmacdono 11 ай бұрын
How can you use XLOOKUP to insert values based on criteria in other cells? SWITCH has a different function it seems to me.
@davescrams
@davescrams 11 ай бұрын
@@jmacdono You create a table with values that correspond to the translation. Consider the second example. You could create a separate table with a column for region and another column for the associated commission percentage. In the original table, you use xlookup to lookup the region and return the commission percentage. This approach is much easier to manage if the number of categories is large or likely to change.
@c17nav
@c17nav 11 ай бұрын
@@jmacdono Microsoft's web site help is a great resource for all of Excel's functions. Heaven help you should buy one of the many books available.
@jakubklima9002
@jakubklima9002 11 ай бұрын
Exactly what I tought while watching the video.
@ramilaquino5350
@ramilaquino5350 10 ай бұрын
based on experience, i could say the same, using a table and xlookup is better as it is dynamic. works same way as a join in SQL, and it handles missing results much better.
@eng.halmatmuslih4714
@eng.halmatmuslih4714 11 ай бұрын
True “IF” is not handy in this situation, but you can use”IFS” function, same results and neat as much as switch. Thanks for the explanation, another function is added to the line, helpful.
@alexk7467
@alexk7467 10 ай бұрын
That's true, but the only problem with "IFS" is you must have a value which is true. So if any value doesn't match any in the "IFS" statement the statement will fail.
@sql638
@sql638 10 ай бұрын
@@alexk7467You can insert as last condition a ever-true one, so a condition without any restriction, simply ……;TRUE”;”Value you desire”). So if all the previous conditions fail, this one will apply
@agwosdz1981
@agwosdz1981 9 ай бұрын
For that, you can encapsulate the function with IFNA or IFERROR :)@@alexk7467
@TheJaswald
@TheJaswald 8 ай бұрын
@@alexk7467 You can set the final test value to "TRUE()" then the result: =IFS(test1, result1, test2, result2, ..., TRUE(), result_n)
@yelnatsch517
@yelnatsch517 8 ай бұрын
@@alexk7467the very last statement in the IFS could just be 1 then set the default value. Example: ifs(case1, “A”, case2, “B”, case3, “C”, 1,””). If all cases fail, the default will be “”.
@troelstrc
@troelstrc 11 ай бұрын
Thank you for this - I understand that this video is about the function switch. But for efficiency and future adjustments, I would put all the values into 1 or 2 tables and use the strengths of xlookup to return the desired results, instead of hardcoding it into a formula.
@TeachersTech
@TeachersTech 11 ай бұрын
I would agree that.
@Ian-gf8id
@Ian-gf8id 11 ай бұрын
@troelstrc Exactly. In this example a simple table of corresponding data (Performance Score / Performance Rating) can be used for multiple purposes including the source for Data Validation List (i.e. the Performance Rating cell range as a drop-down menu) and in one's preferred Lookup formula. Hard-coded data in formulae can be very restrictive, and make back-tracing errors and amendments very difficult. I avoid hard-coded data in formulae wherever possible.
@HotButteredCorn
@HotButteredCorn 2 ай бұрын
Sweeeet !!! What a great find ! Thank you. After using the IFs for 30+ years this is a welcome new tool.
@nathanh9935
@nathanh9935 11 ай бұрын
I always did a vlookup function with a table to change a number to a rating. Also, I find that it is still pretty clean to use 2 digits concat in another table to change a double input into a single output. The formulas are clean that way too. Still, I'm glad to know the switch function exists.
@MrGroganmeister
@MrGroganmeister 3 ай бұрын
I do the same
@4570george
@4570george 2 ай бұрын
Same too
@SethWildCard
@SethWildCard Ай бұрын
watching the examples, I dont see how swapping out a vlookup with switch would be better, except you can see what the formula is doing without looking up tables on a "refrence" sheet.
@martakeska5297
@martakeska5297 23 күн бұрын
@@SethWildCard vlookup is quicker to type, simpler and seems more 'clean'...? it's also easier to make correction in the reference table than in the function. I only use "if" if that's true/false question, for all the others I strongly prefer vlookup
@jpl1953es
@jpl1953es 2 ай бұрын
I've been using Excel since version 5.0, making complex sheets and workbooks, even using VBA, but everyday I discover new features and tricks. In this case, about 40% of all shown tricks were new for me. Thanks.
@marklutz5837
@marklutz5837 11 ай бұрын
Recently retired, worked with Excel for years and didn't know about switch. Looks very handy, can think of many times I would have chosen that instead of the clumsy "if" statements. Thanks.
@TeachersTech
@TeachersTech 11 ай бұрын
I’m glad you found it useful!
@tomjones1502
@tomjones1502 10 ай бұрын
SWITCH is a new function not find in older version of excell
@anggaraw
@anggaraw 10 ай бұрын
​@@tomjones1502 This function only in 365 right?
@tomjones1502
@tomjones1502 10 ай бұрын
No, SWITCH function was added in year 2016, in excel 365
@tomjones1502
@tomjones1502 10 ай бұрын
Switch function is in Excel 2019 and 365 (not sure but 2021)
@Pronellyllon
@Pronellyllon 11 ай бұрын
Thank you for this video. While I am known as the Excel genius at my work, I wasn't aware of the Switch function. I am sure I'll be able to have a lot of fun with this function in the future
@rlsbdog
@rlsbdog 11 ай бұрын
It's easier, quicker and more dynamic to use vlookup (or xookup) or index/match to a reference table. For "No Rated", you can wrap your function in an IFERROR.
@Pronellyllon
@Pronellyllon 10 ай бұрын
@@rlsbdog I don't think they have the exact same purpose. The lookups and index/match functions are referring to a singular cell. In one of my Excel-tables, I have a sumifs function in which I would want it to select another column based on the value of another cell. In this case, I think the switch function fits better.
@danguee1
@danguee1 8 ай бұрын
@@Pronellyllon switch function is inflexible and undynamic
@Pronellyllon
@Pronellyllon 7 ай бұрын
@@danguee1 it worked pretty well for me. In a situation where I used the IFS-function and continuously referred to the same cell had a specific value then needed to pick up a specific column in a table, I used the SWITCH-function instead. Now I didn't need to refer to the same cell anymore. Everything else in that formula stayed the same
@jyotikumarrout7323
@jyotikumarrout7323 10 ай бұрын
Wow, this tutorial on using the SWITCH() function is incredibly helpful! I've always struggled with nested IF statements, but this alternative seems much more efficient and organized. Thanks for breaking it down step by step and providing clear examples. Can't wait to start implementing this in my own projects!
@MattHarris-kt9vw
@MattHarris-kt9vw 4 ай бұрын
I've been using excel for 20 years and haven't used this. Amazing! Thanks!
@terjidjurhuus1917
@terjidjurhuus1917 11 ай бұрын
I use Switch in PowerShell all the time, but funnily it never occurred to me that it exists in Excel. Really useful, thanks!
@infamous8541
@infamous8541 11 ай бұрын
switch is also available in many other programming languages
@thebesttechnical3608
@thebesttechnical3608 7 күн бұрын
Excellent, clear and comprehensive explanation! Thank you!
@apoorvagala
@apoorvagala 10 ай бұрын
Hi ! Nice video. Very informative about Switch function. Honestly speaking I didn't knew about this until now. Thanks for sharing knowledge. I read many comments below about usability of this function and suggestions about instead use xlookup, index match and other various function. They may be right in their opinion as xlookup, index are very powerfull. BUT, this tutorial is about Switch function and not about finding alternatives to if function or switch function. See, when these powerfull functions were not available we used to use if function very largely. But now with advancements in MS Excel we get so many new functions with mind blowing capability. It may so happen that one day there would be better function available then xlookup! Who knows. So I would stick to commenting on Switch function and its usability, quality of the video, quality of content of video like language and graphics used, explanation done, example shown and discussed rather then speaking of alternative to switch function. Overall very interesting and informative video.
@cromwellmngadi7534
@cromwellmngadi7534 3 ай бұрын
wow, wow, wow, i have been looking for this for years. you have made me the happiest man ever ever. God bless you!!!
@nobodynobody1235
@nobodynobody1235 10 ай бұрын
With the nested if like this, using a reference lookup table is ideal. When I use if statement, I mostly use it as argument so the formula will do a different calc
@firozmakrani
@firozmakrani 11 ай бұрын
Using excel for decades but today I learned about switch. Thanks ❤
@simpsonsherri
@simpsonsherri 2 ай бұрын
WOW! I love Excel and use it everyday for all sorts of purposes. Like many below IF statements are my *b*. I have to go through so many spreadsheets now to replace a lot of them with SWITCH! This is amazing!😁🥰
@philipperiondel3093
@philipperiondel3093 11 ай бұрын
Actually, it is the equivalent of Select case in VBA. Thanks a lot, I did not know this function existed in Excel. It would have saved me a lot of time if I had known it sooner.
@s2r2420
@s2r2420 3 ай бұрын
This is the first time I am getting to know switch function. Thanks a lot for the insights
@karenmackstewart
@karenmackstewart 9 ай бұрын
I have been using Excel since 1995 and am always excited to learn new things. For those saying rather use a lookup table - perhaps the example was a bad one. There are many times when we DO use If statements and I can see the value of using SWITCH instead - it is much neater and clearer for editing later. My only constructive feedback is that the title of this video is misleading. The 3rd example shows how IF statements still have value. 🙂
@Chris4Congress2010
@Chris4Congress2010 4 ай бұрын
Thank you. I was looking for something totally unrelated but this showed up as a post, and it looked like something I needed to know. Boy did I. Thank you a ton.
@th3n3wk1dd
@th3n3wk1dd 2 күн бұрын
I already did this sort of when you have low values like this. the first one is already numeric. so CHOOSE would be use =IFERROR(CHOOSE(C12,"Poor","Below Average","Average","Good","Excellent"),"Not Rated") The Choose basically lets you choose what you number you want in your array.. 3, it chooses the third option returning Average. If you only have a few options, assigning an Index and Match to any list of words can get you to "Choose" what you need if the dynamic value isn't numeric. Your second and third examples were way better because your first example just made me think "Choose" is just better in that situation.
@magma2050
@magma2050 7 ай бұрын
That's very handy. I've neither used nor heard of this function, but I will likely make good use of it this week. There are a few fringe cases where I suspect it's no better (e.g., to simulate the output of a decision tree by examining TRUE/FALSE statements in multiple cells, which I think would require as many nested SWITCH functions as nested IF functions to achieve), and as others have said, larger lists are best queried using lookup functions, but this will tidy up smaller lists in my future spreadsheet work significantly.
@objvst
@objvst Ай бұрын
Love the SWITCH command. i have created many multiple level nested loop IF statements to cover many conditions. Problem was at time missing a comma or adding one. Missing a parenthesis or adding one. Figuring it out when linear a big issue. Sometimes I put the formula in MS Word using Courier to show each level in comparison to other levels to figure out what I did was a bit much. Love SWITCH and a lot of other new commands. About time! Using spreadsheets since VISICALC 1979 before computer existed, kidding!
@anarcho-communist11
@anarcho-communist11 11 ай бұрын
You explain things very well and it's easy for me to learn from your videos despite my adhd. Thank you!
@TeachersTech
@TeachersTech 11 ай бұрын
You’re welcome!
@teresahubley2330
@teresahubley2330 2 ай бұрын
Game changer! Thanks. I have sooooo many nested IF statements and they are a bear to update.
@RandyNevers
@RandyNevers 6 ай бұрын
Never knew about the switch function before this video. After watching your tutorial, I will incorporate this function into my repertoire! Thanks!😄
@s2r2420
@s2r2420 4 ай бұрын
Never knew about this function.. Very useful. Thanks a ton for the detailed video. Much appreciated. Just taking out nested IFs is a great feeling.
@dameanvil
@dameanvil 9 ай бұрын
- [0:22] 💡 The SWITCH function in Microsoft Excel can replace nested IF statements, offering a more streamlined and efficient way to handle multiple conditions. - [3:25] 🔄 The SWITCH function can be used for operations like multiplication based on different conditions, providing flexibility and efficiency in calculations. - [5:31] 📊 Combining an IF statement with a nested SWITCH function allows for complex conditional logic in Excel, making it possible to assign values based on multiple criteria while handling blank cells efficiently.
@kurtcpi5670
@kurtcpi5670 11 ай бұрын
I've used "switch" coding in C for 40 years, but I didn't know Excel had that function. I don't know the maximum number of close brackets I've ever had in a nested IF formula, but at some point I usually opted to just switch to a custom VB function. This definitely simplifies things when comparing simple values. I'll have to dig a little deeper to see if it can be used to return a value using calculations/formulas as criteria.
@michaelwolf8756
@michaelwolf8756 4 ай бұрын
I had no idea! Was struggling with “IF” just this week. I can now simply with Switch!! Thanks. 😊
@sparacin
@sparacin 9 ай бұрын
Excellent. I already have a couple of work cases that can benefit from this SWITCH function!
@rrki
@rrki 4 ай бұрын
Great, I love it. I am using excel 20+ years and I did not hear about that, thx.
@jasonjackson4555
@jasonjackson4555 11 ай бұрын
I love switch(). I told my analyst to try it a year ago and he cleaned up some complex sheets with it.
@TeachersTech
@TeachersTech 11 ай бұрын
That's awesome!
@chrysnotreally
@chrysnotreally 6 ай бұрын
I have a complex if/index/match with 10 different instances, so this might make my life easier. Thanks!
@Daltonpat
@Daltonpat 10 ай бұрын
Like most reactions i would probably use xlookup and a table. I do see an advantage when you are using numbers and letters when searching. I will test the speed of switch vs xlookup on a large number of records. Thanks for the video!
@colinubeh1180
@colinubeh1180 10 ай бұрын
Hey! this is simpler than nested if function. THANK YOU!
@amystiksma1116
@amystiksma1116 11 ай бұрын
This was amazingly useful! I have so many nested ifs in a budget spreadsheet, and it makes it so hard anytime I need to change things. Usong switch instead is going to make it so much easier! Thanks so much!
@TeachersTech
@TeachersTech 11 ай бұрын
You're so welcome!
@bodinian
@bodinian 5 ай бұрын
This video made me realize the switch function isn't the one I was looking for, it was IFS. Thank you!
@Pattythomas5
@Pattythomas5 9 ай бұрын
I have not heard of the switch function...THAT was excellent! Thank you!
@thatguyvince8767
@thatguyvince8767 10 ай бұрын
It may be useful for one-off small tables, but for anything larger or repeatable, I'd use the IFERROR and VLOOKUP functions and a separate tab with the reference data (using named ranges for the data areas). Doing that, I'd be able to add to the list of selection items very easily and the data in the entire table change without writing a really long cell formula nor having to update the cell formula once I needed to update my choice criteria.
@phandongexcel
@phandongexcel 10 ай бұрын
I like this video ❤❤❤❤❤❤❤
@LuizSchmidt
@LuizSchmidt 5 ай бұрын
Never heard about Switch function. Thanks for the video. Very clear and well explained!
@tomcoleman8702
@tomcoleman8702 10 ай бұрын
Thank you KZbin algo! I actually can use this Monday at work... completely useful and relevant. Very nice examples!
@TeachersTech
@TeachersTech 10 ай бұрын
Great to hear! Thanks!
@Bhavik_Khatri
@Bhavik_Khatri 11 ай бұрын
Avoid using a switch statement, try using if statement with a VLOOKUP or XLOOKUP already provides the values. Refrain from hard-coding in the formula, etc.
@DjMikeWatt
@DjMikeWatt 11 ай бұрын
Why?
@JeffUmscheid
@JeffUmscheid 11 ай бұрын
Because your values might change, and instead of changing a bunch of formulas, you change the lookup table once. For example, if Excellent changed to Outstanding, just update the reference table instead of all the formulas. You can also add IFNA at the beginning for a value that’s not found, a la “Not Rated”
@DjMikeWatt
@DjMikeWatt 11 ай бұрын
@@JeffUmscheid I've got a lot yet to learn.
@hexsplays
@hexsplays 11 ай бұрын
Dynamic ✅
@laurencesyeng6182
@laurencesyeng6182 9 ай бұрын
You don't have to hard-coded the value. You can use name ranges for both the region values and commission values, to a certain degree of dynamic when using SWITCH(). This is an example with the commission values in named range. SWITCH(E1,"NORTH",C_NORTH,"SOUTH",C_SOUTH,"EAST",C_EAST,"WEST",C_WEST,C_DEFAULT)*D1
@JimChambers
@JimChambers 3 ай бұрын
Damn it! I wish I saw this a week ago. I just wrote some very long IF statements for my risk assessment tool... At least I have this now as I'm sure I'll be using it soon enough.
@angelgeorge7629
@angelgeorge7629 10 ай бұрын
This is AWESOME!!!! Was able to simplify so so soooooo many IF statements in a spreadsheet I am working on.
@TeachersTech
@TeachersTech 10 ай бұрын
Glad it was helpful!
@leovanhorrik9526
@leovanhorrik9526 11 ай бұрын
Thank you very much. I didn't know about this formula but will definitely use it in the future.
@TeachersTech
@TeachersTech 11 ай бұрын
Glad it was helpful!
@robj5780
@robj5780 10 ай бұрын
Didn't know about the switch, thank you, but would also not use it in these instances as it just causes more maintenance work later on. Some reference table / lookup will make it much easier to maintain if situations change.
@PlantBasedPietro
@PlantBasedPietro 11 ай бұрын
Never heard of the Switch function. Thank you Jaime!!! :)
@TeachersTech
@TeachersTech 11 ай бұрын
You're welcome!
@tahirtrs3147
@tahirtrs3147 3 ай бұрын
i did a very big formula with if + if + if. with yours i can make it very short.. thanks a lot. definitly a like
@justdontJD
@justdontJD 8 ай бұрын
I create so many complicated spreads with very long IF statements, the switch function is going to cut my work in half. Thank you for sharing.
@74Gee
@74Gee 11 ай бұрын
What an excellent video! For me I only use switch when a vlookup table won't do the job (like when a default is required). The reason for this is a vlookup table lets you put all of the values on the sheet, instead of in a function and other formulas can use the same values. I tend to make a named reference for anything that's in a vlookup too, so I know not do delete it by mistake and having it easily available in any sheet :)
@brdrnda3805
@brdrnda3805 9 ай бұрын
With XLOOKUP you have a default - to me, the SWITCH function looks pretty useless. What I'd like to have would be a CASE function - CASE(expression1, value1, expression2, value2, ..., default_value)
@laurencesyeng6182
@laurencesyeng6182 9 ай бұрын
@@brdrnda3805 I believe the SWITCH() is the same as CASE().
@brdrnda3805
@brdrnda3805 9 ай бұрын
@@laurencesyeng6182 Just compare Excel's SWITCH function with the CASE statement proposed by me. It's different.
@adetone3252
@adetone3252 9 ай бұрын
Much clearer than using multiple in-line ifs. I hope the next MS step is to get away from inline functions to make it more readable and easier to debug.
@wv1138
@wv1138 9 ай бұрын
Never used switch. Liked and subscribed. Good input.
@maxusers
@maxusers 3 ай бұрын
You haven't mentioned how many commas is the limit if there is one (pending to be checked). Nested IFs can go upto 7 if I'm not mistaken, the switch will make things easier if there is no or much larger limit. Thanks for the video. Really good.
@donniemcgee7523
@donniemcgee7523 11 ай бұрын
Thanks!
@TeachersTech
@TeachersTech 11 ай бұрын
Thank you so much! I really appreciate it.
@donniemcgee7523
@donniemcgee7523 11 ай бұрын
@@TeachersTech and I appreciate your helpful efforts!
@leandratel2466
@leandratel2466 11 ай бұрын
SWITCH is nice, but I'm more a fan of IFS. Nice video ❤🙏🏽
@sandydsa
@sandydsa 11 ай бұрын
I hav never used Switch before. But I use IFS a lot. I see that this solves what's missing with IFS, which is the ELSE part.
@charlesotstot63
@charlesotstot63 11 ай бұрын
With IFS, you can use "TRUE" as your final condition with a value to cover when all conditions are false...
@PresidentArmer
@PresidentArmer Ай бұрын
Super helpful video. Excellent examples
@Akulion1
@Akulion1 8 ай бұрын
Wow what a time saver! Truly good by nested IFs lol thanks for sharing!!
@donniemcgee7523
@donniemcgee7523 11 ай бұрын
This is an extremely helpful tutorial. Thank you so much for sharing it. You did a great job of laying out and explaining the material. Thank you, again!
@kareyreuben3869
@kareyreuben3869 4 ай бұрын
This is great, I'll have to practice this after I watch it a few more times.
@emdeethao
@emdeethao 6 ай бұрын
I can't wait to test this out. I am definitely replacing my IFs function! 😊
@wahas2752
@wahas2752 11 ай бұрын
Thank You. This will make my sheets so less complicated now.
@quench100
@quench100 11 ай бұрын
It's good for Example 2 and 3 where the values are Text, but for Example 1 I would use CHOOSE, nested within an IFERROR statement to get the Not Rated result.
@NickCombs
@NickCombs 7 ай бұрын
I'm guessing it's the same benefit as in other languages. Essentially, the runtime process only needs to access the variable once instead of during each conditional.
@sheikhsadi5094
@sheikhsadi5094 10 ай бұрын
For simpler things: If, Ifs, Switch For lookup: Xlookup For finding out a specific value matching multiple criteria: index match
@maxwel1
@maxwel1 7 ай бұрын
Thanks for this. I’ll try. At 5:22 it would be better that total sales is 10.000 for all regions to compare
@daonguyen521
@daonguyen521 11 ай бұрын
Very helpful teacher. This is the 1st time I know about this function
@salokin1
@salokin1 10 ай бұрын
A small two column, five row table referred to by the VLOOKUP function would be better in my opinion. Descriptors could be changed and immediately take effect throughout the sheet without changing the formula on every single line. But thanks for adding to my knowledge by describing the SWITCH function, which is new to me.
@marcochimio
@marcochimio 7 ай бұрын
I've got dozens and dozens of spreadsheets with massively nested IF statements (up to about 12-times). Why didn't I know about this? Thanks again.
@MaydayAggro
@MaydayAggro 10 ай бұрын
you can also use ranges as your values and results, if you use TEXTJOIN("",TRUE,IFERROR(SWITCH(),"")) because the "" in IFERROR returns blanks for the errors, and TRUE in TEXTJOIN() ignores those blanks. For example: =TEXTJOIN("",TRUE,IFERROR(SWITCH(A6,L2:L6,M2:M6),""))
@athar786100
@athar786100 10 ай бұрын
Great examples! I had never heard of switch.
@warriorlink8612
@warriorlink8612 8 ай бұрын
Thanks for the demo. I can see some scenarios where this could help.
@aceofdatabase
@aceofdatabase 11 ай бұрын
Knew of switch functions generally... Had no idea it was in Excel. How handy.
@Alban.Bytyqi
@Alban.Bytyqi 2 ай бұрын
I use if to access information from different source sheets based on a criteria for example country name E.g., if(a2="Austria", vlookup..., if (a2="Belgium", vlookup... It seems that the example you provide above might bless intensive and memory swapping
@alexrosen8762
@alexrosen8762 11 ай бұрын
Extremely well explained and perfect real life examples
@svause
@svause 8 ай бұрын
Awesome! I'd gently suggest the next step would be to use lambda() to call the switch statements so that there's only one version of the switch floating around in the examples, rather than multiple copies. Yes?
@mrewan6221
@mrewan6221 8 ай бұрын
Yes, this would encourage me to use SWITCH. I really don't like having thousands of copies of the same formula with hard-coded values. The alternative is to write a VBA function (which I often do). Or go back to a standard VLOOKUP or INDEX(MATCH()).
@robertsamagalsky1617
@robertsamagalsky1617 7 ай бұрын
Love the new SWITCH function!
@danguee1
@danguee1 8 ай бұрын
Just use xlookup instead with a table. More dynamic and flexible I think. But anything that gets rid of nested IFs is an improvement
@jonasfermefors
@jonasfermefors 11 ай бұрын
If you are creating a simple table that isn't going to be reused in the future, then Switch is great. When you are building something that is going to be updated then adding a lookup table and using xlookup is best. Forget the older vlookup & hlookup.
@weav8060
@weav8060 4 ай бұрын
I use choose on a match {list} to select values or formulates or entire let expressions
@rafaelasantana7695
@rafaelasantana7695 2 ай бұрын
Never heard about it! Excited to know and use it..
@radsan3006
@radsan3006 9 ай бұрын
Terrific, very impressive! Seeing as you know what you're talking about, and you make things very simple, I was just wondering if you could do a different video which I haven't found anywhere. This deals with inventory and sales, where each item has multiple colors. It would be great to show how to subtract a certain color from the inventory when a sale is made in the sales tab without listing each item multiple times per item. Just a suggestion. 😇
@larrywill464
@larrywill464 9 ай бұрын
Great function! Thanks a lot, I didn't know about this
@kelvinteoh9058
@kelvinteoh9058 11 ай бұрын
I didn't know about this function. It is definitely far superior than if but seems marginally simpler than IFS which I love..
@stuartbrown3859
@stuartbrown3859 9 ай бұрын
Awesome Tutorial, so much easier.
@AndyLuffman
@AndyLuffman 3 ай бұрын
I would always use Xlookup where possible in preference to SWITCH. Using a lookup means that you don't bury values in formulae, along with the LET, you can make it much more readable. Let(RegionScore, XLookup(d1,F:F,g:g), C2*RegionScore) Much more maintainable.
@ExcelTutorials1
@ExcelTutorials1 10 ай бұрын
I love the SWITCH function!!! =)
@techwg
@techwg 8 ай бұрын
In your first example, I would have a worksheet with a set of data that has the number in one cell and it's word in the next cell then I would do a VLookup. That way I could adjust one place and effect everywhere that uses it. Not sure if mine or yours is the most energy efficient in terms of calculation?
@richh4429
@richh4429 11 ай бұрын
Nice video but don't put so much data in a formula, use a referencable and updatable data table and xlookup
@gt3726b
@gt3726b 11 ай бұрын
…it’s a made up example
@TAllenYT
@TAllenYT 11 ай бұрын
That's what I came to the comments to find out. This just seems like an XLOOKUP that's more cumbersome to maintain.
@josephkirkpatrick345
@josephkirkpatrick345 11 ай бұрын
Using lookup tables with Search and also Filter or IsNumber so you create a spill formula based on a predetermined range 🤠🤠
@stevesak01
@stevesak01 11 ай бұрын
On the other side my arguments are long and this shows exactly what I need.
@stevenlwi1072
@stevenlwi1072 11 ай бұрын
Probably a good formula for small list. No more than 3. I would use a xlookup with a proper match mode
@dermotbalson
@dermotbalson 11 ай бұрын
It's a useful function, but if you're going to repeat it down the page, you make changing/adding/deleting options later a little more work. I'd rather use a lookup table in this case so you only have to change one cell, not many.
@bxniels0
@bxniels0 11 ай бұрын
I heard of it recently. In the example I thought I could use it for, I was testing multiple sizes. I had to use IFS as my understanding is in the SWITCH function, the expression is being tested being equal (=), or exact, to each possible value. Where as in the IFS function, a logical expression is being used, such as B2 > (greater than) 1024^3 (TRUE?), B2 > 1024^2 (TRUE?). etc... I do like how SWITCH has a default when no condition is met.
@sammyliles7216
@sammyliles7216 7 ай бұрын
Looks a lot like the "Case" function in Filemaker Pro...I always wished I had that available in Excel, thanks so much!
@CraigBVideos
@CraigBVideos 11 ай бұрын
Why wouldn't a vlookup table work in place of switch. Seems like it does the same thing but easier to update values if needed without having to change each formula. Thanks.
@subhankarbanerjee3022
@subhankarbanerjee3022 4 ай бұрын
this is absolutely awesome man, reduced the entire work.
Try The DGET Function Instead of INDEXMATCH & XLOOKUP
12:29
Kenji Explains
Рет қаралды 123 М.
5 Excel Secrets You'll Be Embarrassed You Didn't Know
17:32
Excel Campus - Jon
Рет қаралды 276 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
When Should You Use the Hash Sign in Excel Formulas?
10:53
Leila Gharani
Рет қаралды 1,1 МЛН
Try This Function Instead of IF Statements
12:51
Kenji Explains
Рет қаралды 70 М.
5 Conditional Formatting Hacks That Will Blow Your Mind
11:16
Mike’s F9 Finance
Рет қаралды 11 М.
Excel's NEW Checkboxes Are Incredibly Cool! Here's why
14:24
Leila Gharani
Рет қаралды 554 М.
This ~NEW~ Excel Function is Shockingly Powerful!
9:37
Chandoo
Рет қаралды 295 М.
10 Excel Formulas That Will Set You Apart (+Cheat Sheet)
18:04
MyOnlineTrainingHub
Рет қаралды 362 М.
Excel Battle: CHOOSE vs SWITCH
11:00
Excel University
Рет қаралды 22 М.
5 Excel Tools Most Users Never Think to Use (Files Included)
12:34
MyOnlineTrainingHub
Рет қаралды 272 М.
Change These 10 Settings Before You Use Excel Again
12:44
Kenji Explains
Рет қаралды 88 М.
IF AND OR Formula in Excel with MULTIPLE CONDITIONS
17:32
Presentation Mastery
Рет қаралды 666 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН