+ Reply to Thread
Results 1 to 3 of 3

Looking for IF function with 2 conditions

Hybrid View

kian82 Looking for IF function with... 05-15-2017, 12:46 PM
mcmahobt Re: Looking for IF function... 05-15-2017, 12:50 PM
JohnTopley Re: Looking for IF function... 05-15-2017, 12:53 PM
  1. #1
    Registered User
    Join Date
    04-24-2017
    Location
    Berlin. Germany
    MS-Off Ver
    Office 2015
    Posts
    19

    Looking for IF function with 2 conditions

    Hi,

    I am trying to get a function to work that basically checks if 2 conditions are met. I am using the following formuling formula but it does not seem to work:
    =IF((AND(COUNTIF(S3:V3,"Yes")>0,E3="Yes")),"TRUE","FALSE")

    The formula needs to check in Range S3:V3 if there is at least one value = "Yes". Should the value "Yes" be available then it needs to be made sure that E3="Yes". Should this condition be met then the value "TRUE" should be returned. The same should be done, if "AND(COUNTIF(S3:V3,"Yes")=0,E3="No")"

    Any idea how I can combine both tests?

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Looking for IF function with 2 conditions

    Would a nested IF statement work?

    =IF((AND(COUNTIF(S3:V3,"Yes")>0,E3="Yes")),TRUE,IF(AND(COUNTIF(S3:V3,"Yes")=0,E3="No"),TRUE,FALSE))
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,768

    Re: Looking for IF function with 2 conditions

    Try

    =IF(OR(AND(COUNTIF(S3:V3,"Yes")>0,E3="Yes"),AND(COUNTIF(S3:V3,"Yes")=0,E3="No")),"TRUE","FALSE")

+ 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. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  2. [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
  3. 18 conditions with IF function
    By sarinky in forum Excel General
    Replies: 2
    Last Post: 06-13-2012, 02:27 AM
  4. IF function with 2 conditions
    By mishii in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2012, 05:51 PM
  5. [SOLVED] 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 Karthik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  7. Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12: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