+ Reply to Thread
Results 1 to 4 of 4

[Solved] IF AND OR Question.

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    13

    [Solved] IF AND OR Question.

    Hello,

    How can I solve this.

    1. Scenario1.

    1For cell E1,
    If cell A1 is equals to either cell b1, c1, or d1, and A2 is equals to either cell b2, c2, or d2, then "Approved", else display text on cell E2

    I have tried few of my own and did not work....

    =IF(AND(PROG!$A$1=OR(PROG!$B$1,PROG!$C$1,PROG!$D$1)),PROG!$A$2=OR(PROG!$B$2,PROG!$C$2,PROG!$D$2), "Approved", E1=E2)
    Last edited by kannox; 01-17-2012 at 03:49 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,354

    Re: IF AND OR Question.

    Try:

    =IF(AND(OR(PROG!$A$1=PROG!$B$1,PROG!$A$1=PROG!$C$1,PROG!$A$1=PROG!$D$1),OR(PROG!$A$2=PROG!$B$2,PROG!$A$2=PROG!$C$2,PROG!$A$2=PROG!$D$2)), "Approved", E2)

    give or take a couple of brackets (not tested)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-14-2011
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: IF AND OR Question.

    Thank you . It worked.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,354

    Re: IF AND OR Question.

    You're welcome.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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