+ Reply to Thread
Results 1 to 13 of 13

IF function with multiple ORs

  1. #1
    Registered User
    Join Date
    01-20-2021
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Red face IF function with multiple ORs

    Hello!

    I was wondering if anyone could help a little, I'm not an Excel Pro I'm afraid! I'm trying to figure out a formula for the IF function with, I'm guessing it would be multiple ORs. I've attached an image, I hope it works. Let me explain:

    I would like Q2 to say 'Yes' if

    O2+O3+O4 = 50% and Risk Level (P2) is 2 or less

    OR

    O2+O4 = 75% and Risk Level (P2) is 3

    OR

    O2+O3+O4 = 100% and Risk Level (P2) is 4

    And if possible to say 'No' if neither of the above is True

    I hope that makes sense. If anyone has any idea what the formula for that would be I would be very grateful for any tips or advice!
    Attached Files Attached Files
    Last edited by astellar; 01-20-2021 at 01:18 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: IF function with multiple ORs

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    01-20-2021
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Re: IF function with multiple ORs

    Hi Glen,

    Sure, I followed the instructions, saved it as attachment instead of embedded image.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: IF function with multiple ORs

    You need to post a sheet (not a pic) as explained in the yellow banner so we can work on it

  5. #5
    Registered User
    Join Date
    01-20-2021
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Re: IF function with multiple ORs

    Right, I see! Ok, updated that, thanks.

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: IF function with multiple ORs

    =or(and(o2+o3+o4 = 0.5, p2<=2),and(o2+o4 = 0.75, p2=3),and(o2+o3+o4 = 1, p2=4))
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  7. #7
    Registered User
    Join Date
    01-20-2021
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Re: IF function with multiple ORs

    Lovely, that worked like a charm, thank you!

    Is there a way to get it to say 'Yes' instead of True?

  8. #8
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: IF function with multiple ORs

    Ooops. Sorry I forgot to finish this off.

    =If(or(and(o2+o3+o4 = 0.5, p2<=2),and(o2+o4 = 0.75, p2=3),and(o2+o3+o4 = 1, p2=4),"Yes","No")

  9. #9
    Registered User
    Join Date
    01-20-2021
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Re: IF function with multiple ORs

    Thank you for this, however the formula with Yes and No results for me in the 'We found a problem with this formula' error. I've been trying to get around it for a while, but so far have no success. Any suggestions why?

    Many thanks!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,777

    Re: IF function with multiple ORs

    I think there's a missing bracket:

    =If(or(and(o2+o3+o4 = 0.5, p2<=2),and(o2+o4 = 0.75, p2=3),and(o2+o3+o4 = 1, p2=4)),"Yes","No")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Registered User
    Join Date
    01-20-2021
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Re: IF function with multiple ORs

    Amazing, that works! Thank you for your help, much appreciated

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,777

    Re: IF function with multiple ORs

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  13. #13
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: IF function with multiple ORs

    Alternative:

    =IF(CHOOSE(P2,0.5,0.5,0.75,1)=O2+O4+(P2<>3)*O3,"Yes","No")
    Quang PT

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Multiple Main Function calling one sub function in different ranges
    By LukeNZ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2019, 04:26 PM
  2. [SOLVED] if multiple conditions are met, perform sum function using index function
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2018, 02:49 PM
  3. Replies: 2
    Last Post: 07-03-2018, 02:26 PM
  4. [SOLVED] how to output multiple results of a single function by running the function only once
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-14-2016, 07:24 PM
  5. If function + Find Function to search for multiple values
    By HabsFan89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-21-2015, 12:11 PM
  6. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  7. Need help to change multiple criteria from if function to Case function.
    By indkitty in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2012, 10:42 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1