+ Reply to Thread
Results 1 to 4 of 4

IF(AND()) Function with Three Conditions

  1. #1
    Registered User
    Join Date
    12-10-2016
    Location
    Birmingham, England
    MS-Off Ver
    2016
    Posts
    35

    IF(AND()) Function with Three Conditions

    Hi, I'm currently trying to create a rule for conditional formatting, where I want it to only activate when ALL 3 of the following conditions are satisfied.

    1). Cell $A3 does not contain nothing

    2). Cell $G3 is not TRUE

    3). Cell $H3 does contain nothing

    Note: condition 2). refers to a checkbox being ticked

    =IF(AND($A3<>"",$G3<>TRUE,$H3=""),"TRUE","FALSE")

    I have tried the formula above, however the problem I am having is that they activate even if two of the three conditions are met.

    Is there any formula that could make this work? Kind Regards.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: IF(AND()) Function with Three Conditions

    Impossible to say without seeing the workbook. Where the formula is not working as expected, use the evaluate formula feature to step through it to find out where it is failing. Attach the workbook here if you want someone to take a look.

    By the way, you can use this instead:

    =IF(AND($A3<>"",$G3<>TRUE,$H3=""),TRUE,FALSE)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: IF(AND()) Function with Three Conditions

    Try just

    =AND($A3<>"",$G3<>TRUE,$H3="")
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    12-10-2016
    Location
    Birmingham, England
    MS-Off Ver
    2016
    Posts
    35

    Re: IF(AND()) Function with Three Conditions

    Hi, thanks for the replies,
    I have tried =AND($A3<>"",$G3<>TRUE,$H3="") but that also activates on either of the functions
    I've attached a sample of the spreadsheet

    https://mega.nz/#!oNNykRJT!ENSB2Ww4X...HzjwRpQRRUo1TE

    Note: I had to upload to Mega because of file size restrictions

    To clarify, I would like the row to become un-highlighted, when "Contract Review" is ticked, and any value is entered for "Order No"

    Kind Regards
    Last edited by kripat-96; 08-21-2017 at 01:16 PM.

+ 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. Looking for IF function with 2 conditions
    By kian82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2017, 12:53 PM
  2. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  3. [SOLVED] Satisfying 2 conditions using if function or other function
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2013, 12:19 PM
  4. [SOLVED] Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  5. Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  6. Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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