+ Reply to Thread
Results 1 to 4 of 4

Adding an 'OR' Statment

  1. #1
    Registered User
    Join Date
    07-06-2010
    Location
    Beckenham
    MS-Off Ver
    Excel 2007
    Posts
    84

    Adding an 'OR' Statment

    I need to add an 'OR' statement to both the following formulas;

    =IF(Q3="Y","Y","")

    Q3 needs to be Y OR A

    =IF(AND(Q3="",V3="Y"),"Y","")

    V3 needs to be Y OR A

    Any help would be much appreciated.
    Last edited by AllenMead; 09-24-2010 at 03:00 AM.

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Adding an 'OR' Statment

    Not sure but maybe...

    =IF(OR(Q3={"Y","A"}),"Y","")
    =IF(AND(Q3="",OR(V3={"Y","A"})),"Y","")
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Registered User
    Join Date
    07-06-2010
    Location
    Beckenham
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: Adding an 'OR' Statment

    Spot on, thank you for your help.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Adding an 'OR' Statment

    Allen, please remember to mark your threads 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
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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