+ Reply to Thread
Results 1 to 3 of 3

Conditional Row Value In A Multiple Rangs

  1. #1
    Registered User
    Join Date
    04-05-2009
    Location
    kuwait
    MS-Off Ver
    Excel 2003
    Posts
    1

    Conditional Row Value In A Multiple Rangs

    Hello,

    How can I do the following for values in a range.
    Count if A1 = value 1, B1= blank, C1 = blank1, D1= blank, E1 = blank1, F1= blank

    One way - that I would rather not use - is to drag the formula so it applies to every entry in the range, then do a count of the true value. Given the work that I am doing, that would be very impractical. I am simply looking for one formula, in one cell that would do the conditional if count across a range. The condition applies to cells in a row in the ranges.

    Using VA and macros are out of the question.

    Thanks.
    Last edited by VBA Noob; 04-05-2009 at 08:05 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Row Value In A Multiple Rangs

    =sumproduct((a1:a500<>"")*(b1:b500="")*(c1:c500="")*(d1:d500="")*(e1:e500="")*(f1:f500=""))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional Row Value In A Multiple Rangs

    In theory you could also concatenate B:F and test as one string:

    =SUMPRODUCT(--(A1:A500<>""),--(B1:B500&C1:C500&D1:D500&E1:E500=""))

    assuming this is what you want to do of course...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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