+ Reply to Thread
Results 1 to 3 of 3

Excel Formula - Lots of ORs and ANDs

  1. #1
    Registered User
    Join Date
    03-11-2013
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    14

    Excel Formula - Lots of ORs and ANDs

    Hello,

    I'm going to break down the problem a little bit.

    Starting with row 1 I have:

    =IF(AND(A1<>"",B1>0,C1<>"Y"),1,0)

    No problem.

    But what I want is a formula that will check this row by row to see if it's ever true and then return 1 else 0. Basically, I want a more compact form of:

    =IF(OR(AND(A1<>"",B1>0,C1<>"Y"),AND(A2<>"",B2>0,C2<>"Y"),...,AND(A100<>"",B100>0,C100<>"Y")),1,0)

    Any ideas?

    Thanks,
    Nik

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Excel Formula - Lots of ORs and ANDs

    Why don't you pull the original formula down ? ( or am I missing something?)

  3. #3
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Excel Formula - Lots of ORs and ANDs

    =if(sumproduct(--(a1:a100<>""),--(b1:b100>0),--(c1:c100<>"y")),1,0)
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

+ 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