+ Reply to Thread
Results 1 to 4 of 4

Combining IF OR and AND functions

  1. #1
    Registered User
    Join Date
    07-12-2004
    Posts
    32

    Combining IF OR and AND functions

    Hi There,

    Is it possible to combine IF OR AND functions? I can combine IF with AND and IF with OR but not all three.

    E.g. Is it possible to put the following into a formula:
    'IF A2 AND A3 = A1 OR A4 AND A5 = A1 return yes

    Hope you can help.

    Many thanks

  2. #2
    Toppers
    Guest

    RE: Combining IF OR and AND functions

    Try:

    =IF(OR(AND(A2=A1,A3=A1),AND(A4=A1,A5=A1)),"Yes","No")

    "andyp161" wrote:

    >
    > Hi There,
    >
    > Is it possible to combine IF OR AND functions? I can combine IF with
    > AND and IF with OR but not all three.
    >
    > E.g. Is it possible to put the following into a formula:
    > 'IF A2 AND A3 = A1 OR A4 AND A5 = A1 return yes
    >
    > Hope you can help.
    >
    > Many thanks
    >
    >
    > --
    > andyp161
    > ------------------------------------------------------------------------
    > andyp161's Profile: http://www.excelforum.com/member.php...o&userid=11654
    > View this thread: http://www.excelforum.com/showthread...hreadid=534558
    >
    >


  3. #3
    Registered User
    Join Date
    07-12-2004
    Posts
    32
    Thank you - this works great.

    I am also trying to make the following work, without much success - can you help?

    =IF((I5="Executive Consultant"),I5),OR(AND($A7=$A5,$I7="Executive Consultant"),$I7)

    e.g. IF I5 = "Executive Consultant" then return I5, OR if A7 = A5 AND I7 = "Executive Consultant" return I7.

    Many thanks

  4. #4
    Toppers
    Guest

    Re: Combining IF OR and AND functions

    Try:

    =IF(I5="Executive Consultant",I5,IF(AND($A7=$A5,$I7="Executive
    Consultant"),$I7,""))

    "andyp161" wrote:

    >
    > Thank you - this works great.
    >
    > I am also trying to make the following work, without much success - can
    > you help?
    >
    > =IF((I5="Executive Consultant"),I5),OR(AND($A7=$A5,$I7="Executive
    > Consultant"),$I7)
    >
    > e.g. IF I5 = "Executive Consultant" then return I5, OR if A7 = A5 AND
    > I7 = "Executive Consultant" return I7.
    >
    > Many thanks
    >
    >
    > --
    > andyp161
    > ------------------------------------------------------------------------
    > andyp161's Profile: http://www.excelforum.com/member.php...o&userid=11654
    > View this thread: http://www.excelforum.com/showthread...hreadid=534558
    >
    >


+ 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