+ Reply to Thread
Results 1 to 6 of 6

Count unique items per client

Hybrid View

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Count unique items per client

    Hello all,

    I have a list of names, downloaded from client software, and then a manually maintained list of names for each, which aims to group clients with different names but the same ultimate beneficiary. Sample attached.

    I am looking for a formula which will tell me the number of unique names in col B per name in col A, desired result given in col C.

    So for 'APHANE - ARUP JV', result is 1 as all names in B are the same, but for 'APHANE CONSULTING CC' result is 2 as there are 2 different names in B.

    I've done this in the past with a pivot table, but it was messy - perhaps I was missing a trick, can anyone offer a solution?

    Thanks
    Rich
    Attached Files Attached Files
    There must be a quicker way...

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Count unique items per client

    You could maybe try something like:
    =SUM(IF(FREQUENCY(MATCH(IF(A$2:A$2010=A2,B$2:B$2010,0),IF(A$2:A$2010=A2,B$2:B$2010,0),0),MATCH(IF(A$2:A$2010=A2,B$2:B$2010,0),IF(A$2:A$2010=A2,B$2:B$2010,0),0))>0,1))-1
    in C2 and copy down but it might take a while to calculate.

    It's an array formula so needs to be confirmed with ctrl+shift+enter

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Count unique items per client

    Thank you very much, I'll try to figure that out.

    The full list has ~35k lines, so it is churning away now.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count unique items per client

    This does the same, but with considerably fewer calculations:

    =SUM(IF(FREQUENCY(IF(A$2:A$2010=A2,MATCH(B$2:B$2010,B$2:B$2010,0)),ROW(A$2:A$2010)-MIN(ROW(A$2:A$2010))+1),1))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Count unique items per client

    Thank you as always XOR, that calculates much quicker.

    - I should have mentioned the data size in my first post...

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count unique items per client

    You're welcome.

+ 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 of unique items by date
    By gren in forum Excel General
    Replies: 0
    Last Post: 11-01-2011, 11:13 AM
  2. Count Unique Items
    By e602043 in forum Excel General
    Replies: 4
    Last Post: 10-05-2011, 07:43 PM
  3. Count Condition Unique Items
    By Gos-C in forum Excel General
    Replies: 15
    Last Post: 01-23-2009, 10:14 PM
  4. Count Unique Items
    By Karleajensar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-05-2008, 05:20 PM
  5. Count unique items in column.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-19-2008, 10:14 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