Excel - How To Combine Multiple IF Formulas In Excel - Episode 2465

preview_player
Показать описание
Microsoft Excel Tutorial: Combine multiple IF functions in Excel.

Welcome to another insightful episode of the MrExcel podcast! In episode 2465, we tackle the challenge of combining multiple IF formulas to efficiently score a set of data based on different conditions. The journey begins with a solid approach, using traditional IF statements and the CONCAT formula to merge the results. But hold on, because in episode 2465 ½, we take things to the next level! Excel Lambda makes a grand entrance, and we successfully slash our formula length by an impressive 99.8%. Can you beat that reduction?

In the main formula exploration, we dive into scoring criteria set by a manager for units sold. The goal is to assign scores ranging from 0 to 3 based on specific conditions. We start with a conventional approach using IF statements and gradually refine it. Witness the evolution from a relatively lengthy formula to an astonishingly concise 16-character formula with Excel Lambda! Throughout this process, we maintain the balance of brevity and clarity, ensuring that the formula remains comprehensible.

For formula enthusiasts, we don't stop there. We challenge the formula's length even further, exploring alternatives like the IFS function and introducing LET for variable redefinition. The journey takes unexpected turns, including attempts to leverage mathematical functions for concise solutions. In the end, we unveil the shortest formula, achieving an incredible 99.867% reduction from the original formula's length. Whether you're a formula maestro or just diving into advanced Excel techniques, there's something for everyone in this formula optimization extravaganza!

Join us in this double-feature episode as we navigate the intricacies of Excel formulas, pushing boundaries and uncovering efficient solutions. Don't forget to share your thoughts in the comments below, and if you have a formula challenge of your own, let us know! Thanks for tuning in, and we look forward to bringing you more exciting insights in the next netcast from MrExcel.

Table of Contents
(0:00) Two videos today from one question
(0:23) How to assign scores to ranges in Excel
(0:42) Solving with an IF formula for each range
(0:58) Using AND with IF in Excel
(2:18) Liam Bastick's Rule of Thumb for Formula Length
(3:21) Combining Five Excel IF formulas into one
(4:03) You don't have to test again for previous ranges in IF
(5:25) Ace your job interview on Retrieve
(5:42) Deep dive how to shorten a formula in Excel
(6:06) Using IFS or LET
(7:35) Using clever Math instead of IF
(8:44) Replace many IFS with VLOOKUP in Excel
(10:07) Replace many IFS with MATCH in Excel
(11:00) Shorter Excel formula with Named Ranges
(11:54) Doing all lookups in one formula
(13:15) Wrap-up

#excel #microsoft #microsoftexcel #exceltutorial #exceltips #exceltricks #excelmvp #freeclass #freecourse #freeclasses #excelclasses #microsoftmvp #walkthrough #evergreen #spreadsheetskills #analytics #analysis #dataanalysis #dataanalytics #mrexcel #spreadsheets #spreadsheet #excelhelp #accounting #tutorial

This video answers these common search terms:
Combine multiple IF formulas
Excel Lambda formula
IF statement with multiple tests
Learn Excel from MrExcel podcast episode 2465
Scoring based on number of units sold
Shortening formulas in Excel
Shortening formulas using thumb rule
Shortest formula challenge
Using CONCAT formula in Excel
Using IFS function in Excel
Using LET function in Excel
VLOOKUP vs XLOOKUP vs LOOKUP functions in Excel

This video answers these common search terms:
if formulas efficiency tips
excel formula reduction techniques
episode 2465 ½ excel tips
mrexcel podcast formula challenge
excel scoring criteria tutorial
formula length reduction tricks
excel lambda function explained
if formulas combination tutorial
efficient excel scoring with if
excel formula optimization strategies

You wrote some IF functions to assign a score based on numerical ranges. You want to combine those formulas into a single long Excel formula. This video will show you how to do it and how to avoid some pitfalls.

Along the way, you will see IF, AND, IFS, LET, CHOOSE, INT, VLOOKUP, LOOKUP, XLOOKUP, and XMATCH.

There are really two videos here. The first video shows how to combine 120 characters of IF formulas down to 49 characters.

After 5:40 in the video, this turns into an advanced video on how to shorten the formula.
Рекомендации по теме
Комментарии
Автор

Great time saving tips! 8:33 The "Your coworkers will hate this. No one will be able to understand this. It violates my "the person has to be able to understand what's going on" rule" line made me spew my drink! Thx Bill and all the contributors!

virtualmusic
Автор

I will go with LOOKUP all day long : ) : ) Then add the spill and that wins : ) : ) Thanks, Mr Excel : ) And Excel Lambda too : )

excelisfun
Автор

I watched over 10 videos about combine multiple if formulas and this was the only one that helped solve my problem. Thank you so much! Deserves the like!

yuricmendess
Автор

This is my favorite Excel video period. I love seeing the progression towards the shortest formula. I recently was able to shorten some of my own complex formulas after being inspired by this video!

Weehawk
Автор

Thanks Mr.Excel. This is a great video highlighting the need to balance performance vs practicality

mattschoular
Автор

you are the BEST...just subscribed and helped me w/ my G-sheet formula...was having trouble w/ the argument limit though..but this still helped

leonblue
Автор

Great video !! Great analysis!! Thank you for mention me!!🙏
By far, your formulas MATCH and LOOKUP are the Best, since both can be used with entire array
=MATCH(range, {0, 15, 30, 60})-1
This is good when the "bins" are in a kind of consecutive order.
If not, LOOKUP is the best, being the most versatile when it comes to changing values.
=LOOKUP(range, w)
Also INT idea was very cool. A tiny compromise to use it anyhow:
=SWITCH(INT(range/15), 0, 0, 1, 1, 2, 2, 3, 2, 3)
IFS variant, was easy to write because was following the users "template" design.
LOOKUP is the winner for its versatility, in my opinion.✌

Excelambda
Автор

Amazing stuff!! Thanks for sharing this interesting progression of formulas. Thumbs up!!

wayneedmondson
Автор

I was thinking xlookup since the previous video so you’ve got me beat.

JonathanExcels
Автор

If I was given this task I would use Xlookup and have the table in an excel table. Because in the following week they will change Peramaters of the grading. It would be the most robust way to make changes,

davidfunvideos
Автор

Hi to all!
What about this: Assuming numbers are int, you can define W = {14;29;59} and then use: =SUM(--(F1>W)). Drag it down. Blessings!

SIEXLExcelyPowerBI
Автор

Interesting video MrExcel. Thanks for sharing! On this particular one (and noting some of the comments) I think SIMPLE is better. Debugging some of the complex approaches here can be difficult. So my answer is: =(cb3>14)+(cb3>29)+(cb3>59) 27 characters, blazing fast, easy to understand.

coachjohn
Автор

Thank u Mr.Excel for this great video.it 👍

nadermounir
Автор

Great video again! Nested IF statements can get insane and quickly become impossible to understand. Thankfully we can now also use the Switch function in the grid, which, in my humble opinion, makes for a far more legible formula. Loved the use of the good old Lookup that a lot of newer users do not realize exists. I would default to one of the longer formulas in most situations so that what I was trying to acheive and the logic behind the formula would be obvious to anyone that might need to update my work.

roywilson
Автор

The best part about the table is a few things... 1. YES shorter formula (AWESOME) ... 2. Easy to change constraints. what if >60 now needs to be 4 --- change 1 value not 100 formulas... 3. Less chance of mistakes -- doing ... another reason the IFS() can be better. NOTE that I see many people do wrong if you build a nested IF or use IFS start with SMALLES Value possible and use < OR Start with the largest value and use > that way it will exit the formula at the correct spot.

erikguzik
Автор

Hi

Nicely presented, it shows how to many arguments or nesting is complex, plus the update and maintenance is difficult and messy

This grading example is very similar to sales rep commissions that i use at work and i use a simple vlookup to a master table

=VLOOKUP(F35, mylist, 2, TRUE)

It is not the shortest code but very practical and easy to maintain. all i need to do is maintain the 2 columns /table of the master look up table that i called "mylist" values

georgemaragos
Автор

“… but for my regular viewers, …” LOL!
Of course, we wouldn’t end it there. ;-)

GeertDelmulle
Автор

nice job. put link workbook download ....

ubaidillahmuhammad
Автор

How about =L(D, W) making D a range name for F1:F9 and L the name of a Lambda function taking D and W as arguments?

nigelfisher
Автор

A great video.
However, I believe that you are confusing two things: the actual length of the formula and its usability/applicability.
The fact that a formula can be applied or used in more than one instance (10, 100, 1000 etc.) does not make it any shorter.
It just makes it more efficient...

meniporat