+ Reply to Thread
Results 1 to 3 of 3

Count values in one list and then narrow/combine values based on criteria and count those

  1. #1
    Registered User
    Join Date
    05-13-2010
    Location
    New Brunwsick, Canada
    MS-Off Ver
    Excel 2013
    Posts
    22

    Count values in one list and then narrow/combine values based on criteria and count those

    Stumped again.

    I need a way to find a value in a column which has one or more corresponding values in an adjacent column. Then take all of the corresponding values found and count all occurrences of the found values in another column. But I only want to count the entries if an adjacent column is not blank.

    Not the easiest thing to describe. Starting to wonder if I need to think in reverse. I hope the attached example makes more sense.

    Any ideas are greatly appreciated.

    Book1.xlsx

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Count values in one list and then narrow/combine values based on criteria and count th

    hi razz. maybe an array formula in K2:
    =SUM(COUNTIFS($C$2:$C$10,IF($G$2:$G$8=J2,$F$2:$F$8),$D$2:$D$10,">0"))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    05-13-2010
    Location
    New Brunwsick, Canada
    MS-Off Ver
    Excel 2013
    Posts
    22

    Re: Count values in one list and then narrow/combine values based on criteria and count th

    Thanks so much. Worked like a charm. I was trying to make it more complicated than it needed to be and didn't think to use the COUNTIFS.

+ 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. [SOLVED] Count values in one list and then narrow/combine values based on criteria
    By razz0807 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2013, 08:02 AM
  2. Replies: 2
    Last Post: 09-28-2011, 08:43 AM
  3. [SOLVED] Count unique values and create list based on these values
    By Alan Beban in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 06:05 AM
  4. Count unique values and create list based on these values
    By Alan Beban in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 09-06-2005, 04:05 AM
  5. Count unique values and create list based on these values
    By vipa2000 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-04-2005, 09:05 PM

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