+ Reply to Thread
Results 1 to 3 of 3

Mixing AND & OR functions

  1. #1
    Barney
    Guest

    Mixing AND & OR functions

    Can I mix the AND & OR functions like this.....
    =IF(F5="","",IF(AND($D5<10,OR(F5>(F11+1),F5=0),F11+2,F5)) ???

    I can't seem to get it to work. Is there a better way? I tried the another
    way using all AND functions but I ended up with more than 7 nested IF
    statements. I had 10 nested if and it wouldn't work. In that case there
    were more arguements than you see above.

    Thanks in advance.

    Barney



  2. #2
    Chip Pearson
    Guest

    Re: Mixing AND & OR functions

    Without knowing exactly what you want to do, I can only guess at
    the proper formula. Try the following:

    =IF(F5="","",IF(AND($D5<10,OR(F5>(F11+1),F5=0)),F11+2,F5))


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com




    "Barney" <postonbl@yahoo.com> wrote in message
    news:d7kpg.10613$Ud4.10246@bignews1.bellsouth.net...
    > Can I mix the AND & OR functions like this.....
    > =IF(F5="","",IF(AND($D5<10,OR(F5>(F11+1),F5=0),F11+2,F5)) ???
    >
    > I can't seem to get it to work. Is there a better way? I
    > tried the another way using all AND functions but I ended up
    > with more than 7 nested IF statements. I had 10 nested if and
    > it wouldn't work. In that case there were more arguements than
    > you see above.
    >
    > Thanks in advance.
    >
    > Barney
    >




  3. #3
    Barney
    Guest

    Re: Mixing AND & OR functions

    Thanks Chip,

    That worked just fine.

    Barney



    "Chip Pearson" <chip@cpearson.com> wrote in message
    news:eje3u5KnGHA.2148@TK2MSFTNGP03.phx.gbl...
    > Without knowing exactly what you want to do, I can only guess at the
    > proper formula. Try the following:
    >
    > =IF(F5="","",IF(AND($D5<10,OR(F5>(F11+1),F5=0)),F11+2,F5))
    >
    >
    > --
    > Cordially,
    > Chip Pearson
    > Microsoft MVP - Excel
    > Pearson Software Consulting, LLC
    > www.cpearson.com
    >
    >
    >
    >
    > "Barney" <postonbl@yahoo.com> wrote in message
    > news:d7kpg.10613$Ud4.10246@bignews1.bellsouth.net...
    >> Can I mix the AND & OR functions like this.....
    >> =IF(F5="","",IF(AND($D5<10,OR(F5>(F11+1),F5=0),F11+2,F5)) ???
    >>
    >> I can't seem to get it to work. Is there a better way? I tried the
    >> another way using all AND functions but I ended up with more than 7
    >> nested IF statements. I had 10 nested if and it wouldn't work. In that
    >> case there were more arguements than you see above.
    >>
    >> Thanks in advance.
    >>
    >> Barney
    >>

    >
    >




+ 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