Excel Magic Trick 939: Use OR and AND Functions In IF Function For Logical Tests

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.ค. 2012
  • Download Excel Start File: people.highline.edu/mgirvin/Y...
    Download workbook: people.highline.edu/mgirvin/Ex...
    1. IF Function: Put 1 of 2 things into a cell based on a logical test
    2. AND Function: When all logical tests are passed, AND delivers a TRUE; If any one of the tests come out FALSE, AND delivers a FALSE
    3. OR Function: When at least 1 logical tests is passed, OR delivers a TRUE; If any one of the tests come out TRUE, OR delivers a TRUE
    Examples:
    1) Example 1: IF function
    2) Example 2: AND function with 2 logical tests inside IF function
    3) Example 3: OR function with 2 logical tests inside IF function
    4) Example 4: AND function with 3 logical tests inside IF function
    5) Example 5: AND and OR Functions to create a "None" Logical Test
    6) Example 6: AND and OR Functions to create a complex Logical Test

ความคิดเห็น • 191

  • @rodrigocustodio1955
    @rodrigocustodio1955 4 ปีที่แล้ว +1

    Mike is the most humble Excel guru/genius in the world! Thank you, Mike!

    • @excelisfun
      @excelisfun  4 ปีที่แล้ว

      You are OR and AND Welcome, Rodrigo : )

  • @jacic5893
    @jacic5893 6 ปีที่แล้ว +6

    Once again you have proven that you are the MASTER!!!! I have learnt so much from you, more than I have ever learnt from a dumb course or MS Help (ha!)

  • @JRcastro1984
    @JRcastro1984 8 ปีที่แล้ว +15

    This is by far the very best tutorial video I have come across on TH-cam!!! Your tutorial is so easy to follow and you explained everything to the T! Your video and your explanation are clearer than taking a course! Kudos.

    • @excelisfun
      @excelisfun  8 ปีที่แล้ว +1

      +JR Castro Glad the video helped!

    • @dubagentselekions8221
      @dubagentselekions8221 4 ปีที่แล้ว

      I can atest... he made it clear and fun....now Excel is my favourite in Microsoft

  • @bradcarlisle9901
    @bradcarlisle9901 7 ปีที่แล้ว +3

    BEST EXCEL TUTORIALS ON THE PLANET!

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    I am glad that you like the videos! Thanks for liking the videos!

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    I am glad that you like it! I will keep it up!

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    I am glad that you like the videos!

  • @excelisfun
    @excelisfun  10 ปีที่แล้ว

    I am glad that you like the video!

  • @mukimmorshed8154
    @mukimmorshed8154 9 ปีที่แล้ว +19

    Thanks a lot! You really are a very good trainer! All your videos are truly awesome! Systematically you explain all options. Hat's off sir!!!

    • @excelisfun
      @excelisfun  9 ปีที่แล้ว +1

      Mukim Morshed Glad you like the videos!

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    I am glad that you like it!

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    I am glad that you like it!!

  • @fammnak852
    @fammnak852 9 ปีที่แล้ว

    Thank you so much!! You really made Excel fun and easy to learn! I used to avoid Excel and now I really love it. Explaining Excel functions are not an easy thing to do, so I appreciate the great help.

  • @Rincon009
    @Rincon009 10 ปีที่แล้ว +3

    My friend, you do a simple superb job on teaching this in a way that regular people like me can understand! KUDOS and Thanks!

    • @excelisfun
      @excelisfun  10 ปีที่แล้ว

      You are welcome!

  • @HopeCastle2000
    @HopeCastle2000 9 ปีที่แล้ว +1

    Thank you. You are the BEST teacher I have ever listened to!

  • @philiplbrown
    @philiplbrown ปีที่แล้ว +1

    Fantastic tutorial. I'm somewhat fuzzy on the IF, AND, OR formulas but this is tutorial is easy to follow and well structured.

    • @excelisfun
      @excelisfun  ปีที่แล้ว

      Are you still fuzzy after watching this? I hope the video helps!

    • @ashafar8484
      @ashafar8484 4 หลายเดือนก่อน +1

      @@excelisfun its cool that in every video i see, that u still react to new comments lol. Good customer support (:

    • @excelisfun
      @excelisfun  4 หลายเดือนก่อน

      @@ashafar8484 : )

  • @donbreda
    @donbreda 6 ปีที่แล้ว

    Great video with clearly explained content! You really are an excellent trainer, I like how you vocalize the UI action / shortcut you are doing instead of just doing it silently. I always dragged to extend a formula, didn't know about double clicking to "send it down". I also learned the F4 trick from this video for locking cells. Nice job!

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    Thanks! I am glad that the videos help!

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    Yes, I am aware of that!
    You are welcome for the tutorials!

    • @shakeboi
      @shakeboi 4 ปีที่แล้ว

      👍

  • @adewaleoke84
    @adewaleoke84 8 ปีที่แล้ว +2

    I always enjoy how you explain excel, it is really fun! ExcelIsFun!!!!

  • @excelisfun
    @excelisfun  11 ปีที่แล้ว

    I am glad that the videos help!

  • @excelisfun
    @excelisfun  10 ปีที่แล้ว

    You are welcome!

  • @tchambard
    @tchambard 3 ปีที่แล้ว

    Excellent! I’ve really been struggling with IF AND OR and I think this explanation might have finally made it sink in for me! Thank you!

    • @excelisfun
      @excelisfun  3 ปีที่แล้ว

      You are welcome, trina c!!!!

  • @binababu657
    @binababu657 12 ปีที่แล้ว

    Keep it up !!! If u have a fan club, we all will become its members.. u r really systematic and planned.. Hats off to you Sir...

  • @ggbeach
    @ggbeach 11 ปีที่แล้ว

    Thank you XLSFUN - your voice sounds a bit tired - please take care yourself - you are our angel !

  • @hazemali382
    @hazemali382 4 ปีที่แล้ว

    not only My Favorite Channel but also the best for everyone

    • @excelisfun
      @excelisfun  4 ปีที่แล้ว

      Thank you, Hazem!!!

  • @robertbrutus8774
    @robertbrutus8774 3 ปีที่แล้ว

    brilliant - thanks, you presentation was scaffolded step by step from simple to complex and your explanations were clear

    • @excelisfun
      @excelisfun  3 ปีที่แล้ว

      You are welcome!

  • @nnekababy
    @nnekababy 4 ปีที่แล้ว

    Who else just did their homework in 2020 with the help of this oldie but goodie?!!!

    • @excelisfun
      @excelisfun  4 ปีที่แล้ว

      Glad to help with your homework, NnekaBaby !!! Thanks for your support with your comments, thumbs ups and Sub : )

  • @tirathchhatriwala2018
    @tirathchhatriwala2018 10 ปีที่แล้ว

    Your explanation is very clear. I wouldn't mind paying to learn this from you.

  • @footballsoccerreferee6152
    @footballsoccerreferee6152 6 ปีที่แล้ว

    The best ever. Thank you so much, you are helping change the world one trick at a time.

  • @linadudoniene2134
    @linadudoniene2134 6 ปีที่แล้ว

    Many thanks! You explain more better than official Office online

  • @maureenlymer9797
    @maureenlymer9797 9 ปีที่แล้ว

    Really enjoyable - I feel much more confident with various functions. Thank you.

  • @user-co9hp7tj1v
    @user-co9hp7tj1v 7 ปีที่แล้ว

    Many many thanks! This is your 3rd video I am watching. You saved the day! (by the way, nice voice and arthrosis. I mean, very clear.)

  • @excelisfun
    @excelisfun  11 ปีที่แล้ว

    Thanks!

  • @srvmusicmaker4792
    @srvmusicmaker4792 8 ปีที่แล้ว

    Your tutorials are amazing Mike. Being bad at Excel has hindered me from gaining grabbing good professional opportunities before. Not anymore :)

  • @danicequeabeah7856
    @danicequeabeah7856 10 ปีที่แล้ว

    This tutorial is great. I am getting to it bit by bit. thanks a million.

  • @fernard8985
    @fernard8985 8 ปีที่แล้ว +1

    Hey, I really appreciate your videos, I've learned a LOT from your lessons. I have one question though: Is there a video where you explain how torefer to an array of cells using the IF function? For example: =IF(AND(A1=B3,OR(A2=B4:B10)))- this one doesnt work obviously because IF doesnt "understand" the reference to an array.

  • @namelessone1811
    @namelessone1811 5 ปีที่แล้ว

    Just found and subscribed to your channel! Your a excellent teacher and excel god! Thank You!

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      You are welcome, Nameless One!!! Thank you very much for your support with your comment, Sub and Thumbs Up : )

  • @joshuamanampiu6489
    @joshuamanampiu6489 7 ปีที่แล้ว +2

    Thank you for this.

  • @krn14242
    @krn14242 12 ปีที่แล้ว

    Love logical formulas. Thanks Mike.

  • @selfmadetool
    @selfmadetool 11 ปีที่แล้ว

    Thanks! This helped my understanding a lot.

  • @chrisnaidoo4596
    @chrisnaidoo4596 4 ปีที่แล้ว

    Excellent explanations and not too hurried, even I could get it right! Keep on inspiring us dummies :)

  • @rammpeth
    @rammpeth 9 ปีที่แล้ว

    THANK YOU SO MUCH YOU SAVED ME SO MANY HOURS!

  • @jlnsarma2509
    @jlnsarma2509 8 ปีที่แล้ว

    Thanks a lot! You really are a very good trainer! All your videos are truly awesome! Systematically you explain all options. I would like know can we make data base software for HRMS wherein we can by simply putting employee code it shows all the data like first nam, middle name, surname, designation, address, department, ctc, job profile, d.o.b, d.o.j, age in years, date of retirement like so.

  • @MrNinjagofan
    @MrNinjagofan 9 ปีที่แล้ว

    Great tutorial! Thank you so much for all your videos. They are simply AWESOME!

    • @excelisfun
      @excelisfun  9 ปีที่แล้ว

      Glad you like the video!

  • @sayedmohdsalman
    @sayedmohdsalman 6 ปีที่แล้ว

    Simply great explanation.

  • @xxxRebbleRulesxxx
    @xxxRebbleRulesxxx 7 ปีที่แล้ว

    Great explanation, thank you.

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    Happy 4th!!

  • @915OneMusicOneLove
    @915OneMusicOneLove 11 ปีที่แล้ว +1

    "BOOM!" Thanks for the help

  • @jonathantaruc2124
    @jonathantaruc2124 9 ปีที่แล้ว

    Finally, like Yoda, A TRUE MASTER!!!

  • @athan1145
    @athan1145 8 ปีที่แล้ว

    Thanks, Great Examples!

  • @zainabahmadi1069
    @zainabahmadi1069 6 ปีที่แล้ว

    Thanks to this video I was able to solve a question that I spent multiple hours on, in under 5 mins.

    • @excelisfun
      @excelisfun  6 ปีที่แล้ว

      Awesome! I am glad that the video helps, Zainab! Thank you for the support with your comments, Thumbs Ups and Sub : )

  • @manjunathagangaiah6755
    @manjunathagangaiah6755 10 ปีที่แล้ว

    Thank you so much sir. Step by step I tried with Excel sheet and everything worked fine. Nice explanation. I Easily learnt nesting of IF, AND, OR.

    • @excelisfun
      @excelisfun  10 ปีที่แล้ว

      You are welcome!

  • @hasanahmed-ls9lb
    @hasanahmed-ls9lb 6 ปีที่แล้ว

    You are genius ... rhanks a lot for teach us...pray for you sir

  • @marekwierzchowiecki5766
    @marekwierzchowiecki5766 10 ปีที่แล้ว

    Brilliant tut!!

  • @MrDavidcaldwell
    @MrDavidcaldwell 8 ปีที่แล้ว

    Very well presented many thanks:)

  • @likhangchu1145
    @likhangchu1145 9 ปีที่แล้ว

    Very useful and resourceful to me! Thx for this effort! I really learnt a lot :)))

  • @bugrahanryanunver3976
    @bugrahanryanunver3976 8 ปีที่แล้ว

    Thank you for the detailed information. I just have a question. I am needed to make an excel chart that includes a percentage in one column, number of sales in one column (minimum a person has to make is 44) and number of mistakes in a month. To sum this database into a final gradin rate, I would need to come up with a function (the if function seems to be the one in my opinion). My question to you is, which function(s?) should I be using and how can I integrate a data that is different than the other ( percentage-number)? Thank you very much in advance

  • @loney4288
    @loney4288 8 ปีที่แล้ว +1

    I enjoy & love to watch yr video...explanation is very clear & straight forward !!I'm having some problems... by trying to insert the "Qty in stk" to the "Pending orders".What formula will best suit the following conditions ?1. "Product code" must be the same for these two files :"Pending Orders" & "Stk on hand".2. "Supplier id" must also be the same for these two files3. "Customer id" must be the same for these two files with additional conditions :a) If "Cust_id = PRO027" must specify clearly on result column as- Example : "PRO027=1,000" (to sum up the qty for PRO027 under "Stk on hand".b) Sometimes, per "Pending Order" line item may have two results ##:##1) Qty in stk (condition 1 to 3 are meet) &##2) "PRO027=1,000"4. When the result for above 1 to 3 is meet will need to 'sum' all the qty for repeated "product code/Cust/Sup" under the "Stk on hand" qty.Thank you in advance for your help.

  • @karthikvmuthuswamy6702
    @karthikvmuthuswamy6702 11 ปีที่แล้ว

    def helpful... thanks! :)

  • @rajeshkumarshetty29
    @rajeshkumarshetty29 6 ปีที่แล้ว

    Thankyou sir...
    Very nice and good explanation..

  • @ronaldtugume572
    @ronaldtugume572 7 ปีที่แล้ว

    I would like to combine these two IF functions in one cell - =IF(K134="M1-W1",J134,IF(K134="Monthly",J134,0)) and =IF(F4="Completed",0,IF(F4="PR Delivered to Logs",C4))

  • @fangyuanliu7573
    @fangyuanliu7573 6 ปีที่แล้ว

    great tutorial as always

  • @ron37wb
    @ron37wb 12 ปีที่แล้ว

    Great video!! Happy 4th of July. Got Don't Fear The Spreadsheet, quite a book.

  • @TarunendraDwivedi11
    @TarunendraDwivedi11 11 ปีที่แล้ว

    Yes you can use conditional formatting.

  • @anil11996
    @anil11996 12 ปีที่แล้ว

    Your work is excellence

  • @ckeanu2
    @ckeanu2 10 ปีที่แล้ว

    i am your number one fan! thank you for this...;-)

  • @pitocms
    @pitocms 12 ปีที่แล้ว

    AWESOME..........!!

  • @learnsolo2721
    @learnsolo2721 6 ปีที่แล้ว

    thanks for the nice tutorial

  • @marionwalker2820
    @marionwalker2820 10 ปีที่แล้ว +5

    You are fabulous! ;-) I learn more from your site than any other!

    • @excelisfun
      @excelisfun  10 ปีที่แล้ว +1

      Glad it helps!

  • @teeltee3701
    @teeltee3701 6 ปีที่แล้ว

    very good trainer

  • @Dlee-pz1ur
    @Dlee-pz1ur 6 ปีที่แล้ว

    Good sysmetical explanation. 👍

    • @excelisfun
      @excelisfun  6 ปีที่แล้ว

      Glad you like it!, deynes!! Thanks for your support : )

  • @Arsenalista101
    @Arsenalista101 7 ปีที่แล้ว

    Awesome!

  • @seshisvs6915
    @seshisvs6915 9 ปีที่แล้ว

    it is very simple to understand...........Thank u sir

    • @excelisfun
      @excelisfun  9 ปีที่แล้ว

      T SESHARAO You are welcome!

  • @chandankumersarma9962
    @chandankumersarma9962 6 ปีที่แล้ว +1

    Hi, thanks for your nice tutorial. i see in your tutorial you use $ sign in the function by shortcut key, pls teach me how to use $ sing in the formula by shortcut key. thanks!

  • @excelisfun
    @excelisfun  12 ปีที่แล้ว

    Me too!

  • @edunnon
    @edunnon 12 ปีที่แล้ว

    You are awesome!!!

  • @ishansinghal850
    @ishansinghal850 8 ปีที่แล้ว

    Awsm videos...i wanna ask if there is any fucntion thru which i can map a field that the value enter in that colum should range between only 2 values or the value put should not b more than the defined value ?

  • @rubenss4
    @rubenss4 9 ปีที่แล้ว

    thanks!! easy and direct to the tgt also for non English speakers

    • @excelisfun
      @excelisfun  9 ปีที่แล้ว

      You are welcome!

  • @hamadkhalil1772
    @hamadkhalil1772 6 ปีที่แล้ว

    Nyce productive one thanks

  • @anthonyverdin6743
    @anthonyverdin6743 3 ปีที่แล้ว

    Your awesome Mike!!!

    • @excelisfun
      @excelisfun  3 ปีที่แล้ว

      Glad to help, Anthony!!!

  • @haithamsami9799
    @haithamsami9799 11 ปีที่แล้ว

    athsnks a lot and God bless u

  • @shirleyfred
    @shirleyfred 8 ปีที่แล้ว

    Your video provides me solution to most excel issues I've had living up to its name "Excellisfun". I am having trouble getting one to work. I tried using a nested if and function for a large number of data but no success yet. The condition are.....Vendor list = COD if series starts with "A" (A12345) and Pline = XY, Vendor=DOM if series starts with "A" (A12345) and Pline is BL, Vendor = DMM if series starts with "K" ( K12345) and Pline is DL, CL (not XY or BL) and Vendor = BUD if series does not start with a letter (12345) and Pline is XY,BL,DL,CL and other. Since I am only interested with the first letter in the "series" column, I included a left function. The single formula works by itself, but when I have all three if functions nested, it gives a #Value error. Single formula is =if(and(left(series,1)="A",Pline="XY"),"COD","BUD". my nested if function is =if(and(left(series,1)="A",Pline=""XY"),"COD"),if(and(left(series,1)="A",Pline="BL"),DOM,if(and(left(series,1)="K",Pline"XY","BL", "DMM"),"BUD"). Please tell me, wher did it go wrong or is it completely wrong.

  • @No-DaysOff
    @No-DaysOff 8 ปีที่แล้ว

    Thank you so much

  • @ericokello3176
    @ericokello3176 9 ปีที่แล้ว

    I love this

  • @Hey_Delight
    @Hey_Delight 5 ปีที่แล้ว

    Thanks for the big help Sir.

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว +1

      You are welcome a lot, most awesome Delight In Life! Thanks for your consistent support : )

  • @67MGD
    @67MGD 7 ปีที่แล้ว

    HELLO ,is it possible to link the content of the box with number (10) in the "NEW FORMATING RULE" window at conditional formating >>format only top or bottom ranked values , with an external cell of the sheet ? Thanks ....

  • @revazchubinidze1042
    @revazchubinidze1042 10 ปีที่แล้ว

    thank bro ;)

  • @dubagentselekions8221
    @dubagentselekions8221 4 ปีที่แล้ว

    Wow i think i have now grasp all the IF function(or (and 👍👍

    • @excelisfun
      @excelisfun  4 ปีที่แล้ว

      Glad the video helped you with the IF, Dub Agent!!!

  • @telli22
    @telli22 11 ปีที่แล้ว

    your videos are so helpful, thank you. How would I write IF a range of cells = yes or n/a then another cell = yes, but if any = no then the cell = no. I could do each individually but wonder if there is a faster way.

  • @umakanta1984
    @umakanta1984 5 ปีที่แล้ว

    Can we use Wildcard characters(*,?,~) with if with logical functions

  • @Sompopito
    @Sompopito 8 ปีที่แล้ว

    Best video ever.

  • @anil11996
    @anil11996 12 ปีที่แล้ว

    Your learning function(Trick) nice i like it

  • @ModelbaanTBM
    @ModelbaanTBM 12 ปีที่แล้ว

    Hey ExcelIsFun,
    Did you know about the 'evaluate formula'-function in Excel. It could be very useful, also for in tutorials I think.

  • @DipakThapa88
    @DipakThapa88 10 ปีที่แล้ว

    i want to know a conditon if any cell value 15 then another which i selected is value is 1, and if 18 then 2 if 26 then 3, how can i make it

  • @michaeldevine9692
    @michaeldevine9692 6 ปีที่แล้ว

    Excellent, very understandable

    • @excelisfun
      @excelisfun  6 ปีที่แล้ว

      You are welcome! Thanks for the support with your comment, Thumbs Up and Sub : )

  • @swaroop7622
    @swaroop7622 9 ปีที่แล้ว

    It is really very nice :-)

  • @georgikerkelov189
    @georgikerkelov189 9 ปีที่แล้ว

    Hi and thanks for the comprehensive video. I`m trying to create something in relation to this plus conditional formatting so wondering whether you can help me a little. I have a sheet that tracks accidents that employees have. The criteria is -once i type their name it should turn into a yellow colour ( meaning first accident) , then second - amber and third - red. Now, the problem i`m finding is how to get Excel to check all the names above, match how many times their name has appeared on the sheet and return the correct result as in amber or red colouring of the cell. Thanks in advance

  • @zeidan1972
    @zeidan1972 5 ปีที่แล้ว

    fantastic

  • @thx2813
    @thx2813 9 ปีที่แล้ว

    excellent !!
    I LIKE TOO MUCH YOUR VIDEOS SON !!!
    CHEERS !!
    WASSUP !!!!!!!!!!!!!

  • @jeffchan8909
    @jeffchan8909 10 ปีที่แล้ว +1

    What function do I use to model a situation where a ratio of less than 20% will yield 6% in an empty cell, 9% if the ratio is in between 20% and 50%, and 15% if the ratio is greater than and equal to 50%?

    • @excelisfun
      @excelisfun  10 ปีที่แล้ว

      Probably VLOOKUP. Here is a video all about VLOOKUP:
      VLOOKUP Function Beginner to Advanced 26 Examples: How To Use Excel VLOOKUP Function