+ Reply to Thread
Results 1 to 6 of 6

IF AND OR statement

  1. #1
    Registered User
    Join Date
    05-10-2013
    Location
    Amstelveen, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    12

    IF AND OR statement

    Hi everyone,

    I've been trying to set up a formula in which IF, AND and OR should all be included. So far, my formula looks like this:

    =IF(AND(C1079-C1078<-0,4; C1080-C1079<-0,4); "0"; "1")

    Thus, if C1079-C1078<-0,4 and if C1080-C1079<-0,4 you'll get the condition 0.
    Besides, I also want the condition to be zero if C1079-C1078<-0,9. However, I'm not sure how to add this in the formula.

    Hopefully someone can help me.

    -Daphne

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF AND OR statement

    Perhaps
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-10-2013
    Location
    Amstelveen, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: IF AND OR statement

    Thank you for your reply. In this formula condition zero will be achieved if C1079-C1078<-0,9 AND C1080-C1079<-0,4 right? But I want the condition to be zero if C1079-C1078<-0,9. Furthermore, if I add an AND expression to my already existing formula (=IF(AND(C1079-C1078<-0,4; C1080-C1079<-0,4); "0"; "1")), the conditions in which solely the conditions C1079-C1078<-0,4 in combination with C1080-C1079<-0,4, will no longer be seen as zero if C1079-C1078<-0,9 is not true. If that is what you mean, its not really what I'm looking for. Hopefully I've made myself more clear now?

    Thus in short condition needs to be zero if:
    condition 1: C1079-C1078<-0,4; C1080-C1079<-0,4
    condition 2: C1079-C1078<-0,9

    -Daphne

  4. #4
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: IF AND OR statement

    may be like this:
    Please Login or Register  to view this content.
    Click (*) if you received helpful response.

    Regards,
    David

  5. #5
    Registered User
    Join Date
    05-10-2013
    Location
    Amstelveen, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: IF AND OR statement

    Thank you very much! That formula is correct.

  6. #6
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: IF AND OR statement

    You are welcome.

    If your problem is solved, please mark the thread as SOLVED >>Above your first post>>Thread Tools>> Mark your thread as Solved

+ 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