+ Reply to Thread
Results 1 to 5 of 5

Count Unique Cells with Multiple Criteria

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Atlanta, Ga
    MS-Off Ver
    Excel 2007
    Posts
    3

    Count Unique Cells with Multiple Criteria

    Good afternoon everyone,
    I have searched and tried a lot of the solutions on the site but have yet to find a solution for the problem I face. I am trying to summarize a count based on multiple criteria.

    Column A: Sales Rep
    Column B: Customer
    Column c: Customer Type

    I was able to use this function to find the number of unique customers per sales rep. E3:E4 is the reference for the sales rep name. This is an array function.

    =SUM(IF(FREQUENCY(IF($A$3:$A$27=E3,IF($B$3:$B$27<>"",MATCH("~"&$B$3:$B$27,$B$3:$B$27&"",0))),ROW($B$3:$B$327)-ROW($B$3)+1),1))

    Now I need to find the number of unique customers per sales rep by customer type. For example: Joe is the sales rep. He has 13 customers but only 9 unique customers. Each customer type is either new or existing. I need to know how many unique new and existing customers each sales rep has.

    I attached a sample spreadsheet in the hopes someone can make sense of the ramblings above. Any help would be greatly appreciated.

    Thanks,

    Frank
    Attached Files Attached Files

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

    Re: Count Unique Cells with Multiple Criteria

    hi Frank, welcome to the forum. try copying this formula :
    Please Login or Register  to view this content.
    paste into the formula bar in G3 & press CTRL + SHIFT + ENTER

    and this formula in H3:
    Please Login or Register  to view this content.
    you can then copy both formulas down

    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
    07-11-2012
    Location
    Atlanta, Ga
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Count Unique Cells with Multiple Criteria

    Thanks benishiryo! Those formulas work perfectly. Thanks for taking the time to reply, I really appreciate it.

    Frank

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Count Unique Cells with Multiple Criteria

    @ fkrueger1

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Registered User
    Join Date
    07-11-2012
    Location
    Atlanta, Ga
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Count Unique Cells with Multiple Criteria

    Thanks Cutter. I was called into a meeting just as I was finishing up my spreadsheet and did not get back to the thread until now.

+ 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