+ Reply to Thread
Results 1 to 4 of 4

Count unique values in column B for each value in column A

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    2

    Count unique values in column B for each value in column A

    I'm trying to count the number of workers that my managers have to interact with and I'm not having any luck. Column A is a list of projects, Column B is a list of managers, and Column C is a list of workers. I want to run a second table that calculates the number of workers that each manager has to work with. Any thoughts?

    Project Name Manager Worker
    Alpha Ann Brett
    Bravo Ann Colin
    Charlie Ann Colin
    Delta Ann Dave
    Echo Ellen Dave
    Foxtrot Ellen Dave
    Golf Ellen Dave
    Hotel Ellen Colin
    India Ellen Colin



    Manager Number of Workers
    Ann 3
    Ellen 2

  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 values in column B for each value in column A

    hi nkopp, welcome to the forum. assuming your 1st table is in A1:C10 and the 2nd is from E1 (meaning "Ann" is in E2), use copy this formula & paste into the formula bar of F2:
    =SUMPRODUCT(1*(FREQUENCY(IF($B$2:$B$10=E2,MATCH("~"&$C$2:$C$10,$C$2:$C$10&"",0)),ROW($C$2:$C$10)-ROW($C$1))>0))

    press CTRL + SHIFT + ENTER to confirm

    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
    09-20-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Count unique values in column B for each value in column A

    That's perfect. Thanks for the help!!

  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 values in column B for each value in column A

    @ nkopp

    Welcome to the forum.

    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.

+ 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