+ Reply to Thread
Results 1 to 8 of 8

count Unqiue values based on a cell value

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    5

    count Unqiue values based on a cell value

    Hi I would like some help with a little problem I have. I have a worksheet that contains a list of account handlers as well as a list of clients

    Column C - Account Handler Column I - Client
    1 Bekki Fred Bloggs
    2 Bekki Mr Wiggle
    3 Bekki Mr Wiggle
    4 Joe Mr Wiggle

    On another worksheet I have a list of those Account Handlers. What I want to have is a formula that counts the unique clients for each Account Handler depending on the account name in a cell.

    so for example Bekki has 2 unique Clients and Joe has 1

    Hope that makes sense as I am having real problems. Many thanks in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: count Unqiue values based on a cell value

    There may be a better way to do this, but here's what i came up with...

    Add a helper column with the formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then, on your worksheet you'll sum that column:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Obviously you'll have to tweak the columns / cell values to match your actual data set. See the attachment for clarity.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-27-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: count Unqiue values based on a cell value

    Sorry tried that. I can't use a helper column as the client may have two or more income lines spread over multiple account handlers leading in a faction count.

  4. #4
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: count Unqiue values based on a cell value

    Do you have a master list of all the clients?

    This is even uglier, but might get you goin in a different direction at least...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    where i've got my client list in column f and you have to add a new term for each client you want included....... this covers 2 clients...

    i've gotta run for the night at least. hope this helps.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-27-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: count Unqiue values based on a cell value

    Solution found!

    =SUM(IF(FREQUENCY(IF(Sheet1!A$2:A$7081=B5,MATCH(Sheet1!I$2:I$7081,Sheet1!I$2:I$7081,0)),ROW(Sheet1!I$2:I$7081)-ROW(Sheet1!I$2)+1),1))

  6. #6
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: count Unqiue values based on a cell value

    interesting... this isn't quite working for me... my second if statement returns false for everyone but the top account handler, frequency returns every number from 1 to 7080 to which my first if statement returns false for everything except for 1...

    my result shows Bekki has 1 client and everyone else is #Value!

    Maybe excel 2010 handles this a little differently?

    Glad you got your needed result. Any chance you wouldn't mind uploading a sample workbook so i can see the evaluation?

  7. #7
    Registered User
    Join Date
    11-27-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: count Unqiue values based on a cell value

    Did you do the Ctrl Shift Enter rather than just enter? I cant claim credit for this as a very nice man on another forum did it.

  8. #8
    Registered User
    Join Date
    11-27-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: count Unqiue values based on a cell value

    oh also there is another table with the list of the account handers that is referenced. I will post my sample tomorrow for people to use

+ 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