+ Reply to Thread
Results 1 to 6 of 6

IF Statement - AND, OR

  1. #1
    James Hamilton
    Guest

    IF Statement - AND, OR

    Hi,

    I have a formula as follows:

    =IF((AND(D5>$100,000,E5>10%)),"yes","no")

    I want to add another condition as follows:

    =IF((AND(D5<-$100,000,E5<-10%)),"yes","no")

    ....and I can't get it to work.

    Any assistance would be appreciated.

    James



  2. #2
    Don Guillett
    Guest

    Re: IF Statement - AND, OR

    try something like (untested)
    =IF(or(AND(D5>$100,000,E5>10%),AND(D5<-$100,000,E5<-10%)),"yes","no")



    --
    Don Guillett
    SalesAid Software
    dguillett1@austin.rr.com
    "James Hamilton" <mailforme@optusnet.com.au> wrote in message
    news:FB0E1558-4B29-4CC9-8D78-725E25948E89@microsoft.com...
    > Hi,
    >
    > I have a formula as follows:
    >
    > =IF((AND(D5>$100,000,E5>10%)),"yes","no")
    >
    > I want to add another condition as follows:
    >
    > =IF((AND(D5<-$100,000,E5<-10%)),"yes","no")
    >
    > ...and I can't get it to work.
    >
    > Any assistance would be appreciated.
    >
    > James
    >
    >




  3. #3
    Max
    Guest

    Re: IF Statement - AND, OR

    Try a: OR(AND(cond1),AND(Cond2)) construct .., viz.:
    =IF(OR(AND(D5>100000,0,E5>10%),AND(D5<-100000,0,E5<-10%)),"yes","no")
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---
    "James Hamilton" wrote:
    > Hi,
    >
    > I have a formula as follows:
    >
    > =IF((AND(D5>$100,000,E5>10%)),"yes","no")
    >
    > I want to add another condition as follows:
    >
    > =IF((AND(D5<-$100,000,E5<-10%)),"yes","no")
    >
    > ...and I can't get it to work.
    >
    > Any assistance would be appreciated.
    >
    > James
    >
    >


  4. #4
    James Hamilton
    Guest

    RE: IF Statement - AND, OR

    Great - thanks guys

    "James Hamilton" wrote:

    > Hi,
    >
    > I have a formula as follows:
    >
    > =IF((AND(D5>$100,000,E5>10%)),"yes","no")
    >
    > I want to add another condition as follows:
    >
    > =IF((AND(D5<-$100,000,E5<-10%)),"yes","no")
    >
    > ...and I can't get it to work.
    >
    > Any assistance would be appreciated.
    >
    > James
    >
    >


  5. #5
    Max
    Guest

    Re: IF Statement - AND, OR

    "James Hamilton" wrote:
    > Great - thanks guys


    You're welcome !
    Thanks for feeding back ..
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---

  6. #6
    Don Guillett
    Guest

    Re: IF Statement - AND, OR

    glad to help

    --
    Don Guillett
    SalesAid Software
    dguillett1@austin.rr.com
    "James Hamilton" <mailforme@optusnet.com.au> wrote in message
    news:1B6CC0DD-4E57-4857-9890-AB515DFC4C74@microsoft.com...
    > Great - thanks guys
    >
    > "James Hamilton" wrote:
    >
    >> Hi,
    >>
    >> I have a formula as follows:
    >>
    >> =IF((AND(D5>$100,000,E5>10%)),"yes","no")
    >>
    >> I want to add another condition as follows:
    >>
    >> =IF((AND(D5<-$100,000,E5<-10%)),"yes","no")
    >>
    >> ...and I can't get it to work.
    >>
    >> Any assistance would be appreciated.
    >>
    >> James
    >>
    >>




+ 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