+ Reply to Thread
Results 1 to 14 of 14

Count unique values based on multiple criteria

  1. #1
    Registered User
    Join Date
    10-14-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    14

    Count unique values based on multiple criteria

    Hello,

    I need to count the number of unique values in column C for a specific tutor in column B between each month in column A. For example, Tutor B in march has 6 unique clients. Attached is a document with the data.

    Any help will be appreciated!

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor stephenloky's Avatar
    Join Date
    07-10-2013
    Location
    Sao Paulo - Brazil
    MS-Off Ver
    Excel 2007
    Posts
    146

    Re: Count unique values based on multiple criteria

    Hey,
    You can use =COUNTIFS() for that

    Insert this formula in cell E2 :
    Please Login or Register  to view this content.
    and in cells D2 and D3 put your 2 criteria. If you want more criterias just make the samething.

    Any doubts, tell me.
    "The quieter you become, the more you are able to hear"

    Any reputation (*) points appreciated.

    "If you know yourself but not the enemy, for every victory gained, you will suffer defeat."

  3. #3
    Registered User
    Join Date
    10-14-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    14

    Re: Count unique values based on multiple criteria

    Thanks, I don't think this is considering the dates though? Unless I missed something.

    I need to count the unique clients that a specific tutor has between months. In march for example, tutor B has 9 rows for clients but only 6 are unique - I need a way to get that 6 for tutor B for march

  4. #4
    Registered User
    Join Date
    10-14-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    14

    Re: Count unique values based on multiple criteria

    Quote Originally Posted by stephenloky View Post
    Hey,
    You can use =COUNTIFS() for that

    Insert this formula in cell E2 :
    Please Login or Register  to view this content.
    and in cells D2 and D3 put your 2 criteria. If you want more criterias just make the samething.

    Any doubts, tell me.
    Thanks, I don't think this is considering the dates though? Unless I missed something.

    I need to count the unique clients that a specific tutor has between months. In march for example, tutor B has 9 rows for clients but only 6 are unique - I need a way to get that 6 for tutor B for march

  5. #5
    Forum Contributor stephenloky's Avatar
    Join Date
    07-10-2013
    Location
    Sao Paulo - Brazil
    MS-Off Ver
    Excel 2007
    Posts
    146

    Re: Count unique values based on multiple criteria

    Oh rigth, you can always make a pivot table for that.
    Hope that helps.
    EG 2.xlsx]

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Count unique values based on multiple criteria

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    ...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.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  7. #7
    Registered User
    Join Date
    10-14-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    14

    Re: Count unique values based on multiple criteria

    Quote Originally Posted by daffodil11 View Post
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    ...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 for this but the date is being ignored? How would I change the formula to show for dates between the 1st of march and the 31st of march?

  8. #8
    Forum Contributor stephenloky's Avatar
    Join Date
    07-10-2013
    Location
    Sao Paulo - Brazil
    MS-Off Ver
    Excel 2007
    Posts
    146

    Re: Count unique values based on multiple criteria

    Please see my post,
    I've attached a Pivot table by Month, you can ungroup that and see each date.

    Attached another without grouping.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-14-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    14

    Re: Count unique values based on multiple criteria

    Quote Originally Posted by stephenloky View Post
    Please see my post,
    I've attached a Pivot table by Month, you can ungroup that and see each date.

    Attached another without grouping.
    Many thanks for this but I this is not what I want to see. I need unique values of clients for a certain tutor

  10. #10
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Count unique values based on multiple criteria

    It took some tinkering, but here you go:

    I created a little table for month and Tutor.

    Please Login or Register  to view this content.
    H2:
    Please Login or Register  to view this content.
    This is an array-formula, confirmed with Ctrl+Shift+Enter the exit the cell.
    Attached Files Attached Files
    Last edited by daffodil11; 05-19-2015 at 07:59 PM.

  11. #11
    Forum Contributor stephenloky's Avatar
    Join Date
    07-10-2013
    Location
    Sao Paulo - Brazil
    MS-Off Ver
    Excel 2007
    Posts
    146

    Re: Count unique values based on multiple criteria

    Well, sorry for misunderstanding you.
    If your worksheet it not that big, you still can use a pivot and count that....
    Still thinking in a way of counting only uniques.
    Hope that helps.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    10-14-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    14

    Re: Count unique values based on multiple criteria

    Quote Originally Posted by stephenloky View Post
    Please see my post,
    I've attached a Pivot table by Month, you can ungroup that and see each date.

    Attached another without grouping.
    Many thanks for this but I this is not what I want to see. I need unique values of clients for a certain tutor

  13. #13
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Count unique values based on multiple criteria

    Was my response close?

    I'm showing:

    4 unique clients for A in Feb.
    6 unique clients for B in Mar
    1 unique client for B in Apr

  14. #14
    Registered User
    Join Date
    10-14-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    14

    Re: Count unique values based on multiple criteria

    Quote Originally Posted by stephenloky View Post
    Well, sorry for misunderstanding you.
    If your worksheet it not that big, you still can use a pivot and count that....
    Still thinking in a way of counting only uniques.
    Hope that helps.
    No worries, I still appreciate the help

+ 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. Count unique values based on several criteria
    By evilgrin in forum Excel General
    Replies: 2
    Last Post: 10-10-2010, 03:50 PM
  2. [SOLVED] how to count unique values in excel based on multiple criteria
    By IDBUGM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2006, 12:10 PM
  3. how to count unique values in excel based on criteria
    By Jorge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2005, 10:06 AM

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