All 3 Excel IF Statements + how to AVOID PERFORMANCE ISSUES!

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024
  • IF Statements are essential for all Excel users to master. Unfortunately, many get stuck with nesting and make mistakes that can cause performance issues, which I address in this video.
    Download the Excel file here: www.myonlinetr...
    Use our IF Formula Builder: www.myonlinetr...
    0:27 Excel IF Formulas
    1:39 Nested IF Formulas
    3:14 Excel IFS Function
    4:24 Mistakes that cause performance issues
    6:04 VLOOKUP Alternative
    7:52 XLOOKUP Alternative
    View my comprehensive courses: www.myonlinetr...
    Connect with me on LinkedIn: / myndatreacy

Комментарии • 91

  • @IvanCortinas_ES
    @IvanCortinas_ES 3 года назад +3

    Excellent tutorial and practical.
    The important thing is to have the examples with cases that are close to real life and you do it. Thank you very much Mynda. Learning from a great teacher!

  • @retief5057
    @retief5057 3 года назад +2

    You describe things simple and to the point. Brilliant !!

  • @wayneedmondson1065
    @wayneedmondson1065 3 года назад +1

    Hi Mynda. The multi-nested IF example was classic. Thanks for showing people how to think of doing a lookup instead of IF, IF, IF :)) Thumbs up!!

  • @davidclayton2512
    @davidclayton2512 3 года назад +1

    Another advantage of using lookup is if you wish to introduce a new 'if' such as 120 days = "legal letter",then the lookup range is easier to amend than the nested if formula.

  • @apamwamba
    @apamwamba 3 года назад

    WOW! Excellent Video!!. And the extra benefit is that this knowledge can be applied in any programming language and SQL. Its called Decision Making...We are very lucky to have our very own MVP : Mynda

  • @pascou8322
    @pascou8322 3 года назад

    You always explain Excel topics in such a way anyone can understand. :)

  • @DirectDilSe29
    @DirectDilSe29 3 года назад +2

    Thank youuuuu... I was looking for this formula from long time and can you upload one video for all benefits of XLookUp? Thanks once again

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 года назад +1

      Here's a comprehensive tutorial on XLOOKUP: ruclips.net/video/2ViMm-wuM3U/видео.html

    • @DirectDilSe29
      @DirectDilSe29 3 года назад +1

      @@MyOnlineTrainingHub thank you

  • @darrylmorgan
    @darrylmorgan 3 года назад +1

    Hi Mynda!Great Run Through And Explanation Of These Awesome Functions...Thank You :)

  • @Giovanni-vx8xl
    @Giovanni-vx8xl 3 года назад

    very clever way in how to use dates with tables and vlookup instead of if statements. thanks !

  • @teoxengineer
    @teoxengineer 3 года назад +1

    Mynda thank you.
    Can you make a tutorial about the DGET function and its sub formulas.

  • @aviman2010
    @aviman2010 3 года назад

    Quality tutorial as ever. 21 nested IFs? Might make perfect sense at the time of writing but any more than 24 hours later and it would be a nightmare.

  • @GeertDelmulle
    @GeertDelmulle 3 года назад +1

    Elementary lesson exquisitely explained. I can’t imagine anyone getting this wrong (or creating such monstrosities).
    I guess my imagination is limited at times. ;-)

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 года назад +1

      :-) Barely a day goes by when someone doesn't share an Excel abomination of some sorts with me, Geert! Hopefully I can help some people avoid these mistakes.

    • @GeertDelmulle
      @GeertDelmulle 3 года назад +1

      @@MyOnlineTrainingHub It’s really a shame that not all of them are as smart as you. :-)
      They should invest more into learning how to model. It’s more than just learn to write formulas.

  • @chrism9037
    @chrism9037 3 года назад

    Super helpful, thanks Mynda!

  • @djl8710
    @djl8710 3 года назад

    Brilliant as usual.

  • @overdraftracing
    @overdraftracing 3 года назад

    *threadjack* I was interested to see that for your xlookup you selected the actual data in the table rather than the whole column via the down arrow you get by hovering on the column header. Was that just personal preference or is there an advantage to doing it that way? I'm usually doing lookups on long tables where grabbing the data would be a bit more work...
    PS. Thank you for IFS... I had no idea that existed!

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 года назад

      Great question! With small tables I find it quicker to just select the data because I find getting the mouse position exactly right to select the whole table hit and miss. If I'm working with a big table I'll sometimes use the mouse, but quite often I'll got to the ever reliable keyboard shortcut of click one cell then CTRL+A.

  • @stefanleys6095
    @stefanleys6095 3 года назад

    Hallo Mynda and all here. I was struggling with an If and formula today and cannot solve it properly… it is as follows: I want to calculate the salary cost per year of employees until they go on pension. My available data are as follows: dates people will be go on pension and their salary cost in a specific year + 2% every next year.
    I have the salary cost per employee and their retirement date (for example: 15/05/2023) coloms and the years 2019 till 2050 in a row (title).
    At the bottom of my data I added 2 rows as follows: first row starts with 01/01/2019 and second row starts with 31/12/2019. This so I can calculate the cost for several months when not a full year. For example : retirement date here above = 15/05/2023 so the total cost for this employee in 2023 will be 15/05/2023 minus 01/01/2023 x (salary cost x 1,02 index)/365 days.
    However I want one formula so that it doesn’t calculate the salary cost as soon as the retirement date is surpassed, but still calculate the salary cost when retirement date has not been reached yet… here lies my issue that I can only achieve one condition and not both in one formula :(
    I need this one formula so that when I change the retirement date the cost is automatically adjusted all years correctly.
    If I am not mistaken I had this formula: IF(AND(condition 1;condition2);value true;0).
    Condition 1 and 2 are both to do with the dates here above, but I cannot get it right… or I end up with huge amounts vertically or I end up with negative amounts horizontally etc. I just cannot figure it out 🤯🤯🤯🤕
    If you Mynda or anyone else could help me with this enigma then I would be very grateful…
    My table simplified:
    Names - retirement date - salary cost 2019 - 2019 - 2020 - 2021 - …. - 2050
    Name 1 - 02/04/2019 - 55.000 eur
    Name 2 - 04/07/2020 - 70.000 eur
    •••
    Name 71 - 14/09/2034 - 116.000 eur
    •••
    Result should all be amounts in 2019. In colom 2020 the values of the employees who retired in 2019 should be zero and amounts vertically and horizontally till you only have amounts in colom with year 2050 for those employees who retire in 2050.
    So as I said I would be very grateful if someone could help me out on this one please 😵‍💫

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 года назад

      Hi Stefan, Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum It's too much to read and keep in my imagination all at once :-)

  • @ckliesh1
    @ckliesh1 2 года назад

    Thank you for sharing.. How can I create a formula for the following: IF data in cell A1 reads SAW-TCH-TIS, how do I have cell B1 equal cell A1, minus the first 4 letters or numbers? For example cell A1 reads SAW-TCH-TIS. Cell B2 should read TCH-TIS. I have 6,000 rows of data that I must remove the first 3 letters and the dash. Any assistnace would be greatly appreciated

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 года назад

      Hi Catrina, you didn't mention what you want returned if the cell doesn't contain SAW-TCH-TIS so the formula below returns a blank. If you want something else , you can replace the double quotes in the last argument:
      =IF(A1="SAW-TCH-TIS",RIGHT(A1,7),"")

  • @sideshowbobby71
    @sideshowbobby71 3 года назад

    All great tips.

  • @shoppersdream
    @shoppersdream 7 месяцев назад

    Nice, thanks!

  • @ramzamthel8014
    @ramzamthel8014 2 года назад

    Thank you so much

  • @tanveerabbas3271
    @tanveerabbas3271 Месяц назад

    you master blaster..❤

  • @nancynocdvel6620
    @nancynocdvel6620 2 года назад

    Hi Mynda, this was a great video.. I am new at using the IF function and VLookup. I am trying to do something similar but having difficulties. I have created a file to track my stock portfolio and I want to create an easy dashboard as a summary. However, I want the dashboard to be updated as I make trades. For example, I enter the details of a trade in a column, the I want the premium to go into the dashboard on another sheet. However, since I want the summary/dashboard to auto populate as I make these entries, I need the formulas to be something like, if the premium on the stock transaction page was received in January, it should go to the dashboard page in XX cell, or if it was February it would go in the next cell below, etc. I cannot seem to figure out how to do this. Do you have a video that might help clarify for me what to do in this case? Thank you in advance.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 года назад +1

      Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

    • @nancynocdvel6620
      @nancynocdvel6620 Год назад

      @@MyOnlineTrainingHub I have now done so. I had several issues trying to get it posted. Thank you very much.

  • @cherylrb00
    @cherylrb00 3 года назад

    ❤️ Help!!! If I am wanting to get a sum difference of two numbers then if it’s greater or less than 5 points am I able to do so? For example I have a spreadsheet with column one data and column two data. I then subtract the two columns to get a total but if it’s 5 more than the total or 5 less than the total I want to flag it in some way. Is this possible? I’ve only seen it done with percentages but I’m want the actual number. Thank you for all you do!! ❤️

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 года назад

      Yes, it's possible. Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @michaelomosebi6374
    @michaelomosebi6374 3 года назад

    Excellente 🙌

  • @randomshortvideosytchannel4865
    @randomshortvideosytchannel4865 11 месяцев назад

    thank you

  • @watcher4887
    @watcher4887 9 месяцев назад

    Hi Mynda, Hope you are doing just great! I am working on an assignment, in my sheet I have to make some data in the K column by using the data in the B column and the blank cells are in the same order in both the B and K columns. The problem is when I use the formula =IF(B10="","",P$4*B3+(1-P$4)*K3) the logical part of the formula is correct (I mean the result is filled in the correct cell or I must say IF part is working ) but the calculation part is picking wrong cells for the calculation I mean P$4*B3+(1-P$4)*K3) Band K cells are wrongly picked up resulting correct cell but wrong data. can you suggest anything for this, please? hope you have time ..thnx for checking...Siraj(India)

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  9 месяцев назад

      Hi Siraj, Please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum

    • @watcher4887
      @watcher4887 9 месяцев назад

      @@MyOnlineTrainingHub Thats really quick Thanks Mynda! i will do that sure.

  • @alializadeh8195
    @alializadeh8195 2 года назад

    Thanks

  • @RA-rh5lb
    @RA-rh5lb 22 дня назад

    i have this business scenario where ( if ( or (Purchase order qty = Invoice qty received , Purchase order qty < Invoice qty received), " invoice 1", "Nothing" 2. if (And (Purchase order qty = Invoice qty received, Goods REceived < Invoice qty received) .. i am confused on how to make them in one function usine OR/AND or AND/OR .. I wrote like this =IF(OR(A2=C2,A2

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  22 дня назад

      Please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum

  • @Go-Odo-publishing
    @Go-Odo-publishing 3 года назад

    What if you want to only get data for 4 months and then after a yr start adding data again monthly? Like accruing monthly hours for time off

  • @jrvega79
    @jrvega79 Год назад

    MUY UTIL

  • @moathmustafa9273
    @moathmustafa9273 3 года назад

    If i Want to make loan schedule with 2 frequency end of month and mid of 3,6,9,12? What we can do?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 года назад +1

      Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

    • @moathmustafa9273
      @moathmustafa9273 3 года назад

      @@MyOnlineTrainingHub could you please send to me your email so i can send attachment? 🙂

  • @tilda15un
    @tilda15un Год назад

    how were you able to display the formula to the right of the table?

  • @RA-rh5lb
    @RA-rh5lb 22 дня назад

    i didn't understand what exactly you were stating in the record 3.5 where you said lastly because there's no value of false.. could you please explain in layman's language.. thanks in advance ..

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  22 дня назад +1

      The IF function has 3 arguments: logical test, value if the logical test is true, value if the logical test is false. However, the IFS function doesn't have the value if the logical test is false argument, it just has pairs of tests and value if logical test is true arguments. Therefore, you if do all your logical tests and 'value if logical tests are true' arguments, and they're all false the formula will return an error. Alternatively, to return a value instead, simply enter TRUE in the last logical test (i.e. everything else was false, so this next value if true should be returned), and this will return the last value if true argument, which is effectively the value to return if false equivalent in the IF function.

    • @RA-rh5lb
      @RA-rh5lb 22 дня назад

      @@MyOnlineTrainingHub thanks for your kind response

  • @mbalendomwafulirwa8048
    @mbalendomwafulirwa8048 3 года назад

    the last part of the video is faint abit....but good one

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 года назад

      Not sure what you mean by 'faint abit', but glad you liked the video :-)

  • @irgski
    @irgski 3 года назад

    What happened to CHOOSE?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 года назад

      It's not an IF function ;-) This video is about comparing IF functions.

  • @realpulsecoin
    @realpulsecoin 3 года назад +1

    Switch function 🤔

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 года назад

      :-) Yes! I've written about SWITCH available in Excel 2019 onward (www.myonlinetraininghub.com/excel-switch-function), but this video was dedicated to the IF family :-) Maybe I'll do a video on SWITCH next!

    • @realpulsecoin
      @realpulsecoin 3 года назад

      @@MyOnlineTrainingHub Youre great! 👏

  • @radiobanc
    @radiobanc 3 года назад

    If you need nested IFs in Excel, it's time to move to a database

  • @hubisanOne
    @hubisanOne 2 года назад

    Looks like 'IFS' is evaluating all formulas even if a condition is false whereas 'IF' does not. Got the lastest Excel 365. Evaluate this formula '=IFS(FALSE,(3 + 3) + (3 + 3), TRUE, (3 + 3) + (3 + 3))'. Not using 'IFS' anymore because of this. Looks like 'SWITCH' has the same problem.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 года назад

      Hi Hubisan, I'm not sure the evaluate formula tool is a true representation of how the function is actually calculating in the background. To be sure you'd have to run a speed test on IFS vs IF.

    • @hubisanOne
      @hubisanOne 2 года назад +1

      @@MyOnlineTrainingHub I've done some speeds tests using VBA. 'IFS' definitely evaluates each formula even if a condition is false. If there are for instance four nested 'IF' with only the last being true the 'IFS' formula takes four times as long as the nested 'IF' version. 'IFS' even evaluates all formulas when the first condition is true. It's also noticable without using VBA by just inserting a nested IF with some complex calculations and then inserting the IFS version with the same conditions and formulas.

  • @clickbisi7016
    @clickbisi7016 3 года назад

    Use switch function instead, thank me later :)

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 года назад +1

      :-) Yes! I've written about SWITCH available in Excel 2019 onward (www.myonlinetraininghub.com/excel-switch-function), but this video was dedicated to the IF family :-) Maybe I'll do a video on SWITCH next!