+ Reply to Thread
Results 1 to 2 of 2

SUMPRODUCT counting occurrences of multiple conditions - HELP!!

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    SUMPRODUCT counting occurrences of multiple conditions - HELP!!

    Hi,

    Wonder if anyone can help?

    I have set up a formula to count the occurrences of multiple conditions in a table of data (see below..) the formula reads from 4 cells of criteria but I will not always use the 4 criteria and maybe only need to use say 2 criteria - when I do this my formula doesn't work - my example below shows this... How do I make the formula continue to work when some criteria cells don't have any entries?

    This table is a simple example but my main work will have a much larger table and probably about 10 criteria cells, so running a big formula with 10 nested IF statements will probably be too cumbersome... does anyone know a smart workround for this?

    Thanks for your time,
    Chris

    Fruit Colours Towns Names
    Apples Red London Harry
    Apples Green Paris Bert
    Pears Blue London Fred
    Plums Red Venice Steve
    Apples Red London Bert


    Criteria Result
    Fruit Pears 0
    Colours
    Towns London
    Names Fred


    The formula in my Result cell is
    =SUMPRODUCT((A2:A6=B10)*(B2:B6=B11)*(C2:C6=B12)*(D2:D6=B13))
    If I put 'Blue' into the Colour criteria the Result is 1
    The top left cell (Fruit) is A1..

  2. #2
    Registered User
    Join Date
    02-01-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: SUMPRODUCT counting occurrences of multiple conditions - HELP!!

    sorry, here's the pic which is clearer...

    pic1.jpg

+ 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