+ Reply to Thread
Results 1 to 7 of 7

IF with OR and AND

  1. #1
    Registered User
    Join Date
    11-05-2004
    Location
    Palm Springs California
    MS-Off Ver
    Office 2011 for Mac
    Posts
    37

    IF with OR and AND

    Is there a way to use OR and AND in an IF statement?

    =IF(OR(EK3>=8,EK3<=3)(AND(EG3>0),E3,0))

    If not what is the normal work around?

    Thank you! Sincerely,

    Michael

  2. #2
    Beege
    Guest

    Re: IF with OR and AND

    MJ,

    You almost had it...

    =IF(AND(OR(EK3>=8,EK3<=3),EG3>0),E3,0)

    Beege


    "MJSlattery" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a way to use OR and AND in an IF statement?
    >
    > =IF(OR(EK3>=8,EK3<=3)(AND(EG3>0),E3,0))
    >
    > If not what is the normal work around?
    >
    > Thank you! Sincerely,
    >
    > Michael
    >
    >
    > --
    > MJSlattery
    > ------------------------------------------------------------------------
    > MJSlattery's Profile:
    > http://www.excelforum.com/member.php...o&userid=16141
    > View this thread: http://www.excelforum.com/showthread...hreadid=550469
    >




  3. #3
    Chip Pearson
    Guest

    Re: IF with OR and AND

    Try

    =IF(AND(EG3>0,OR(EK3>=8,EK3<=3)),E3,0)


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

    "MJSlattery"
    <[email protected]> wrote
    in message
    news:[email protected]...
    >
    > Is there a way to use OR and AND in an IF statement?
    >
    > =IF(OR(EK3>=8,EK3<=3)(AND(EG3>0),E3,0))
    >
    > If not what is the normal work around?
    >
    > Thank you! Sincerely,
    >
    > Michael
    >
    >
    > --
    > MJSlattery
    > ------------------------------------------------------------------------
    > MJSlattery's Profile:
    > http://www.excelforum.com/member.php...o&userid=16141
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=550469
    >




  4. #4
    Registered User
    Join Date
    11-05-2004
    Location
    Palm Springs California
    MS-Off Ver
    Office 2011 for Mac
    Posts
    37

    Thanks Guy's but neither is working?

    Tried both versions, when they are placed into a cell, that cell then displays the fromula when the enter button is pressed.

    I am on a MAC using Office 2004.

    Thanks, again

    Michael

  5. #5
    SimonCC
    Guest

    Re: IF with OR and AND

    Sounds like your cells is formatted as Text. Just format the cell as General
    and type the formula again. You should then get the result of the formula.

    -Simon

    "MJSlattery" wrote:

    >
    > Tried both versions, when they are placed into a cell, that cell then
    > displays the fromula when the enter button is pressed.
    >
    > I am on a MAC using Office 2004.
    >
    > Thanks, again
    >
    > Michael
    >
    >
    > --
    > MJSlattery
    > ------------------------------------------------------------------------
    > MJSlattery's Profile: http://www.excelforum.com/member.php...o&userid=16141
    > View this thread: http://www.excelforum.com/showthread...hreadid=550469
    >
    >


  6. #6
    Registered User
    Join Date
    11-05-2004
    Location
    Palm Springs California
    MS-Off Ver
    Office 2011 for Mac
    Posts
    37

    Thanks, not yet

    Formatted as number. There was a space in frount of the = sign. Removed that and the program comes back and wants to put a single quote mark in the front and back of the formula.

    Tried general as well.

    Michael

  7. #7
    Bernard Liengme
    Guest

    Re: IF with OR and AND

    A) try Edit | Clear All and retype the formula
    B) send message to the MAC group
    best wishes

    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "MJSlattery" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Formatted as number. There was a space in frount of the = sign.
    > Removed that and the program comes back and wants to put a single quote
    > mark in the front and back of the formula.
    >
    > Tried general as well.
    >
    > Michael
    >
    >
    > --
    > MJSlattery
    > ------------------------------------------------------------------------
    > MJSlattery's Profile:
    > http://www.excelforum.com/member.php...o&userid=16141
    > View this thread: http://www.excelforum.com/showthread...hreadid=550469
    >




+ 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