+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Count Unique Records

  1. #1
    Registered User
    Join Date
    10-18-2010
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    73

    Count Unique Records

    I searched the forum on counting unique records. There are a lot of posts but I can't get any of the solutions to work. I'm trying to count unique records by quarter (Q1, Q2, Q3, Q4). I've attached a sample of what I'm trying to do. The yellow fields are the ones I'd like to automatically count unique records.

    Any ideas on how to do this?

    Thanks,
    Steve
    Attached Files Attached Files

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

    Re: Count Unique Records

    Hello Steve,

    To get those results you can use this "array formula" in H8

    =SUM(IF(FREQUENCY(IF(B$2:B$16=G8,IF(A$2:A$16<>"",MATCH(A$2:A$16,A$2:A$16,0))),ROW(A$2:A$16)-ROW(A$2)+1),1))

    confirm with CTRL+SHIFT+ENTER

    and copy down to H11

    The formula can be quite slow if you have a large amount of data....
    Audere est facere

  3. #3
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Count Unique Records

    with ex 2007 you can use remove.duplicate and use pivot table
    Attached Files Attached Files
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

+ 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