Results 1 to 4 of 4

Statistical functions: count but disregard duplicates

Threaded View

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

    Re: Statistical functions: count but disregard duplicates

    I tend to agree with JB, Teethless Mama's suggested formula works great for small ranges but the MATCH function particularly across 10000 cells is going to be slow.

    Here's another alternative using Database function DCOUNTA.

    I put "Type" in E1 (this has to match the header in C1) and E2 holds the Product you want to count, e.g. TOASTERS.

    F1 has a header which isn't the same as any of the headers in A1:C1, I chose "Unique" and under that in F2 this formula

    =SUMPRODUCT(--(A$2:A2=A2),--(C$2:C2=C2))=1

    [Note this cell will dispaly TRUE or FALSE, it doesn't matter which]

    Now for the unique count in E4 use this formula

    =DCOUNTA(A1:C10000,1,E1:F2)

    just change E2 to whatever you want to count......see attached
    Attached Files Attached Files

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