+ Reply to Thread
Results 1 to 6 of 6

if with two conditions

  1. #1
    Registered User
    Join Date
    06-12-2007
    Posts
    17

    if with two conditions

    how do you put two different conditions within an if statement. Logically it would read IF(x>5 and y>6, TRUE), but this method does not work.

  2. #2
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi

    if(and(x>5,y>6),true,false)

    Ed

  3. #3
    Registered User
    Join Date
    06-06-2007
    Posts
    53
    Quote Originally Posted by EdMac
    Hi

    if(and(x>5,y>6),true,false)

    Ed
    Quoted for truth

  4. #4
    Registered User
    Join Date
    06-12-2007
    Posts
    17
    Ok, I have this function, =OFFSET(B369:B382,MATCH(MIN(IF(C369:C382>=J37,A369:A382,"")),IF(C369:C382>=J37,A369:A382,""),0)-1,0). Instead of it saying C369:C382>=J37, I want those two parts that say that to basically say that and D369:D382>=K37. Both of these conditions have to be true I'm just confused on how to get the and part in this function correctly.

  5. #5
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Or if all you want to return is true or false

    =and(x>5,y>6)

    no need for the if

    Regards

    Dav

  6. #6
    Registered User
    Join Date
    06-12-2007
    Posts
    17
    Ok, I have this function, =OFFSET(B369:B382,MATCH(MIN(IF(C369:C382>=J37,A369 :A382,"")),IF(C369:C382>=J37,A369:A382,""),0)-1,0). Instead of it saying C369:C382>=J37, I want those two parts that say that to basically say that and D369:D382>=K37. Both of these conditions have to be true I'm just confused on how to get the and part in this function correctly.
    Reply With Quote

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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