+ Reply to Thread
Results 1 to 5 of 5

Count rows meeting multiple criteria of multiple values

  1. #1
    Registered User
    Join Date
    08-10-2009
    Location
    Baton Rouge, La
    MS-Off Ver
    Excel 2003
    Posts
    6

    Count rows meeting multiple criteria of multiple values

    I am trying to find a formula to count rows that meet multiple criteria, but one of the criteria can be multiple values... if that makes sense.

    I have a list of people with a list of clients that they are responsible for. Each person is responsible for 10-20 clients. Every day I run a report that shows the project worksheets submitted for each client and if money has been awarded or not.

    I'm wondering if there is a way to count, for each person, the number of project worksheets that show "awarded" in column K. That would mean that I would have to look for, for each person, any of their multiple clients in column B and "awarded" in column K.

    I am trying to put the formula in D2:D9, as I use A2:D9 for a chart. O1:P79 contain the names of the people and the applicants that they are responsible for. A17:D158 contains the list of project worksheets (updated daily).

    I used =SUMPRODUCT(COUNTIF(B17:B999,P1:P14)) to count the actual number of project worksheets for each person, but I can't figure out a way to modify that to add in the "awarded" criteria also.

    Thanks in advance! I hope this made sense. I have attached an example.
    Attached Files Attached Files
    Last edited by borcimaeh; 08-11-2009 at 12:22 PM.

  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: Count rows meeting multiple criteria of multiple values

    You need to rework your sheet
    i added an index match against your table to put name against each pw ref in column L
    then used sum product (awarded/names) in col g to give count per person
    also seperated out names from groups and put in col A for something to look for in the sumproduct
    Attached Files Attached Files
    "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
    Registered User
    Join Date
    08-10-2009
    Location
    Baton Rouge, La
    MS-Off Ver
    Excel 2003
    Posts
    6

    Thumbs up Re: Count rows meeting multiple criteria of multiple values

    Perfect! Thank you!

    Quote Originally Posted by martindwilson View Post
    You need to rework your sheet
    i added an index match against your table to put name against each pw ref in column L
    then used sum product (awarded/names) in col g to give count per person
    also seperated out names from groups and put in col A for something to look for in the sumproduct

  4. #4
    Registered User
    Join Date
    08-24-2014
    Location
    brasov
    MS-Off Ver
    2013
    Posts
    1

    Re: Count rows meeting multiple criteria of multiple values

    hy i need some help i have to count multiple values from 5 sheets using 3 criteria and to get the result in one cell in a results sheet what formula should i use

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Count rows meeting multiple criteria of multiple values

    @madalinavm

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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