No video

SWITCH() Function in Excel and 3 Alternatives

  Рет қаралды 18,812

TeachExcel

TeachExcel

3 жыл бұрын

Excel Courses: www.teachexcel.com/premium-co...
Excel File: www.teachexcel.com/excel-tuto...
Microsoft Office Doc: support.microsoft.com/en-us/o...
How to use the SWITCH() function for Excel.
SWITCH() allows you to match a series of values and output a value based on that match - this replaces basic nested IF statements in Excel.
This tutorial covers the syntax of the switch function and shows you how to use it. As well, 3 robust alternatives to the switch function are also covered and explained.
The benefit to showing you this function and its alternatives is to allow you to have the tools that you need to use the best formula for the job. Sometimes you may want a complex setup that is more robust and versatile and utilizes a VLOOKUP() and a lookup table and sometimes you want an old-school IF statement and sometimes, the new SWITCH() function is the perfect tool for the job.
15 IF Statement Examples: • 15 IF Statement Exampl...
5 Bite-Size Vlookup Tricks: • 5 Bite-Size Vlookup Tr...
IFS() Function: • IFS() Function Excel -...
Excel Courses:
- VBA/Macro Course: www.teachexcel.com/vba-course...
- Building Professional Forms: www.teachexcel.com/premium-co...
TeachExcel.com
#msexcel #howto #tutorial

Пікірлер: 30
@wayneedmondson1065
@wayneedmondson1065 3 жыл бұрын
Thanks! Another good option is IFS() as in: =IFS(A15=1,"Good",A15=2,"OK",A15=3,"Bad",A15=4,"Not Allowed"). Simplifies vs. so many nested IF() formulas. Thanks for sharing :)) Thumbs up!!
@TeachExcel
@TeachExcel 3 жыл бұрын
Thanks for the great comment Wayne! You're spot-on with the alternative and that is a great example, as usual :)
@kathyroberts7777
@kathyroberts7777 3 жыл бұрын
Thank you for showing new and old. Your tutorials are teaching me so much more than I could ever learn on my own.
@hazemali382
@hazemali382 3 жыл бұрын
always Simple and great ♥
@andrewevans9002
@andrewevans9002 3 жыл бұрын
There are many ways of completing a task in Excel and it depends on the number of values you are looking up against. Another option where there are a low number (though like VLOOKUP can be used with ranges) is the LOOKUP command itself. An example would be =IFERROR(LOOKUP(A33,{1,2,3,4},{"Good","OK","Bad"}),"Not Allowed") - Where A33 to A36 would have the numbers 1 - 4, and of course it is useful to test for errors as well by testing with other numbers as well. Nice of you to create the tutorial as it is always useful to have as many alternatives to perform a task as possible.
@TeachExcel
@TeachExcel 3 жыл бұрын
Love the lookup example Andrew, thanks for the input!! I bet we could come up with 20 different ways to make a formula like this lol.
@suecampanelli311
@suecampanelli311 3 жыл бұрын
I learned something new today! Never had heard of SWITCH or CHOOSE!
@TeachExcel
@TeachExcel 3 жыл бұрын
I'm really glad I could teach it to you :) I've found that CHOOSE comes in quite handy when you least expect it.
@HangLe-of4sm
@HangLe-of4sm 3 жыл бұрын
Thank you for sharing!
@TeachExcel
@TeachExcel 3 жыл бұрын
You're very welcome Hang! :)
@patrickschardt7724
@patrickschardt7724 3 жыл бұрын
It’s great for checking for multiple simple values in the same cell or range and returning a corresponding value. It fails instantly if more than one type of comparison is needed Great tutorial
@TeachExcel
@TeachExcel 3 жыл бұрын
Thanks Patrick! Yea, it is quite a limited function for sure.
@rtificial8292
@rtificial8292 3 жыл бұрын
Beautiful. Thank you
@TeachExcel
@TeachExcel 3 жыл бұрын
You are most welcome! I'm glad you liked it :)
@maomxesoax2471
@maomxesoax2471 3 жыл бұрын
Nice. Is there a way to get the format of a cell (font, color etc.) using a formula?
@darrylmorgan
@darrylmorgan 3 жыл бұрын
Cool Tutorial! I Usually Use SWITCH() In DAX So Much Easier Than Nested IF()...Thank You Sir ;)
@TeachExcel
@TeachExcel 3 жыл бұрын
Thanks for the input Darryl, that's a great use-case for this function! Glad you liked the tutorial :)
@micheltw
@micheltw 3 жыл бұрын
You are the McGiver of EXCEL
@TeachExcel
@TeachExcel 3 жыл бұрын
haha I'll take it :)
@Excelambda
@Excelambda 3 жыл бұрын
Great video!! Indeed SWITCH is for exact matches as you said. If we need comparative operators IFS can be used. Example with "forced" comparative operators to prove the point, in cell B4 =IFS(A4:A7
@TeachExcel
@TeachExcel 3 жыл бұрын
What a great comment as usual!!! And that last formula haha it killed me! Fun little formula! :)
@micheltw
@micheltw 3 жыл бұрын
Why doesn't it work for me, I had to put ";" for the first two numbers CHOOSE({1;2}...and I get #N/A for the two last cells.
@micheltw
@micheltw 3 жыл бұрын
Got it was in french and inverted slash (\) Was to use instead of comma 🤦
@Excelambda
@Excelambda 3 жыл бұрын
@@micheltw Glad you sorted it out. 😊✌
@vikaasb2016
@vikaasb2016 3 жыл бұрын
Wow !
@TeachExcel
@TeachExcel 3 жыл бұрын
:)
@pierreblanchard9752
@pierreblanchard9752 3 жыл бұрын
Nice comparaison. We could use the function XLOOKUP instead HLOOKUP. The advantage is there is a parameter for the case ELSE. We won't have to use the function ISERROR.
@TeachExcel
@TeachExcel 3 жыл бұрын
Very nice comment Pierre! The new functions are simply superb :)
@mayurpatilmax007
@mayurpatilmax007 3 жыл бұрын
Nice one but you missed IFS...
@TeachExcel
@TeachExcel 3 жыл бұрын
I thought about that but I was really trying to keep it a bit simple and IFS allows for many types of conditional checks. But I did go ahead and put a link to my tutorial on IFS in the description of this video.
ARRAYTOTEXT() Function Excel - 5 Practical Examples
10:23
TeachExcel
Рет қаралды 18 М.
Excel DGET Function Solves 2 of Your VLOOKUP Problems
11:18
Leila Gharani
Рет қаралды 855 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 28 МЛН
Harley Quinn lost the Joker forever!!!#Harley Quinn #joker
00:19
Harley Quinn with the Joker
Рет қаралды 19 МЛН
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 7 МЛН
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 34 МЛН
4 Tips to Camouflage Slicers in Excel - EQ 90
4:17
TeachExcel
Рет қаралды 53 М.
Don't Use Excel Filters! Use This Incredible Excel Formula Instead ...
9:32
Tiger Spreadsheet Solutions
Рет қаралды 995 М.
Add Check Marks to Cells by Double-Clicking or Typing - EQ 88
3:08
SURPRISING Advanced Filter TRICK in Excel (You've Never Heard Of!)
5:59
Leila Gharani
Рет қаралды 1,2 МЛН
Return Multiple Match Results in Excel (2 methods)
14:13
Leila Gharani
Рет қаралды 1,9 МЛН
Elegant Date and Location Filtering in Excel - A Must See!
14:39
How to use Excel Index Match (the right way)
11:32
Leila Gharani
Рет қаралды 3,6 МЛН
When Should You Use the Hash Sign in Excel Formulas?
10:53
Leila Gharani
Рет қаралды 1 МЛН
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 28 МЛН