+ Reply to Thread
Results 1 to 4 of 4

Count w/multiple criteria across multiple columns - SUMPRODUCT, MATCH?

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Count w/multiple criteria across multiple columns - SUMPRODUCT, MATCH?

    Greetings!

    I can't really think of a good description for the title. I tried all manner of search terms and came up with some good stuff, but I'm having a really tough time describing what I need without showing it, so here goes:

    Sample.png

    (Would have done a Table entry, but it looked way taller than it needed to be.)
    What I need is a formula that can look at a range of values, look those values up in the "Tags" column, see if they all belong to one "Object", and then checks for Passed and/or Failed (depending on what is desired) in the Result column, and then, finally, returns the number of hits in the Result column. For instance, if my range had "Black" in one cell and "Critter" in another, with no specification for Passed or Failed, it would return 2. "Smooth" + "Black" + Passed would return 1, "Cylindrical" + Failed would return 1, no tags + Passed would return 3, etc.

    Originally, on the chart that uses this table, I just used a filter for comparing the Passed/Failed results based on Tags, but that just compares two separate tags and doesn't refine the results. Obvious now, took me an embarrassingly long time to realize that.

    I tried doing all kinds of stuff with a Pivot Table and couldn't get it to do what I needed here, either.

    I imagine what I need here is some manner of SUMPRODUCT magic. I feel like I'm on the verge of getting it, and I'm pretty good at coming up with spiffy SUMPRODUCT formulas, but this one evades me after trying so, so many things. I have a feeling that I'm overthinking it. A large number of issues that stump me are because I bury the simple answer in my head under REALLY NEATO FORMULAS! that don't do what I need.

    Generally I need to stay out of VBA and work exclusively in formulas, but VBA is a valid option here. Even though, I would still really like to see the formula. I loves me a clever formula.

    I need to stay pretty rigid as to how the data is structured. I can't put Passed or Failed into the Tags column, for instance.

    I think that covers what I need. Sorry for the hugeness. Any ideas?

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Count w/multiple criteria across multiple columns - SUMPRODUCT, MATCH?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    09-05-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Count w/multiple criteria across multiple columns - SUMPRODUCT, MATCH?

    Thanks much for the reply! Here's a sample:

    Example.xlsx

    I hope that demonstrates it well enough. The whole thing is kinda jamming up my brain.
    The two blue-shaded boxes are where the formula would go. I have data validation lists for the five labeled cells in the Before box meant to be the criteria for the formula.

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Count w/multiple criteria across multiple columns - SUMPRODUCT, MATCH?

    Your additional refinements aren't making sense, but perhaps this will work as a starting point.

    In cell I4, try:

    Please Login or Register  to view this content.
    and in cell I5, try:

    Please Login or Register  to view this content.
    Cheers,

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 02-06-2015, 08:44 PM
  2. Replies: 1
    Last Post: 02-21-2014, 09:09 PM
  3. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  4. Count instances of a string across multiple columns with multiple criteria
    By rpthoth in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2012, 09:23 AM
  5. Replies: 1
    Last Post: 09-03-2010, 12:52 PM

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