+ Reply to Thread
Results 1 to 2 of 2

Counting Unique Names

  1. #1
    Registered User
    Join Date
    10-13-2011
    Location
    Lawrence, KS
    MS-Off Ver
    Excel 2007
    Posts
    1

    Counting Unique Names

    Hello,

    I'm stuck on a problem. Basically, I'm trying to build a formula that will count the unique names in one column where the number assigned to them in an adjacent column is less than or equal to some value. In other words, I want a cumulative sum of how many unique names are in the list. Below is an example table:

    Mike 1
    Jason 1
    Mike 1
    Marcus 1
    Marcus 2
    Jake 2
    Mike 2
    Nick 2
    Jake 3
    Mike 3
    Harold 3

    For this example, the formula should return 3 for a value of 1, 5 for a value of 2, and 6 for a value of 3.

    Any help you can give me would be greatly appreciated.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Counting Unique Names

    Try this for 3

    =SUM(IF(FREQUENCY(IF(B2:B20=3,IF(A2:A20<>"",MATCH(A2:A20,A2:A20,0))),ROW(A2:A20)-ROW(A2)),1))

    confirmed with CTRL+SHIFT+ENTER
    Audere est facere

+ 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