+ Reply to Thread
Results 1 to 3 of 3

IF & AND Statment need to add an extra OR

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

    IF & AND Statment need to add an extra OR

    I have the following formula which works fine, but, I need Y3 to be a Y or an A

    Please Login or Register  to view this content.
    have tried;

    Please Login or Register  to view this content.
    Unfortunately, this doesn't work. Any help would be much appreciated. Actually, it does but it give me everything in BY which is what I don't want

    So, I need to know that if AY is blank, Y is Y or A then count BY if greater than blank
    Last edited by AllenMead; 09-29-2010 at 05:26 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: IF & AND Statment need to add an extra OR

    Try:

    =(IF(AND(Properties!$BY3>0,OR(Properties!Y3="Y",Properties!Y3="A"),Properties!$AY3=""),1,0))

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

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

    Re: IF & AND Statment need to add an extra OR

    Sweet! Thanks Domski!

+ 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