+ Reply to Thread
Results 1 to 4 of 4

Trying to craft an If formula where the conditions are also ANDs

  1. #1
    Registered User
    Join Date
    01-18-2022
    Location
    Philadelphia, PA
    MS-Off Ver
    Professional Plus 2019
    Posts
    3

    Trying to craft an If formula where the conditions are also ANDs

    Here's what I'm trying to do:

    If O2 = yes AND U2 is grant then write "Agree? OR If O2 is NO and U2 is deny then write ?Disagree?

    I made an AND that checks for "Agree", but couldn't get it any further than that.
    =IF(AND(O2="YES",U2="GRANT"),"AGREE","DISAGREE")

    This didn't do it:
    =IF(OR(AND(O2="YES",U2="GRANT"),"AGREE"), IF(OR(AND(O2="NO",U2="DENY"),"DISAGREE")))

    I'd also like 5to have it stay blank if neither condition is met. Is this possible?
    Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,701

    Re: Trying to craft an If formula where the conditions are also ANDs

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-18-2022
    Location
    Philadelphia, PA
    MS-Off Ver
    Professional Plus 2019
    Posts
    3

    Re: Trying to craft an If formula where the conditions are also ANDs

    Thanks! That worked. Or, to paraphrase John Cooper Clark, the bloody formula's bloody worked.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,701

    Re: Trying to craft an If formula where the conditions are also ANDs

    You're welcome. Thanks for the rep.

+ 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] How to craft a copy down formula for distinct, separate ranges.
    By Coyote_e in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-15-2019, 09:34 PM
  2. How to craft a nutritional spreadsheet
    By Quietbeat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2019, 06:45 PM
  3. More IFS & ANDS
    By Geekynerd in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2018, 12:23 PM
  4. Help with IF formula - too many ANDs and ORs for my liking!
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-23-2016, 11:54 AM
  5. Help with IF formula - too many ANDs and ORs for my liking!
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2016, 04:49 PM
  6. Formula needing help with. (IFs, ANDs, ORs)
    By stacey52891 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-09-2013, 10:37 AM
  7. [SOLVED] Excel Formula - Lots of ORs and ANDs
    By nikolasm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2013, 04:48 PM

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