Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Another easy one

  1. #1
    Guest

    Default

    Hi guys
    How do I use a D function to get number of unique items.. I'll illustrate below
    Name
    AAA
    AAA
    BBB
    BBB
    CCC

    So the DCOUNTA formula returns 3

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,613
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-03-07 22:25, Anonymous wrote:
    Hi guys
    How do I use a D function to get number of unique items.. I'll illustrate below
    Name
    AAA
    AAA
    BBB
    BBB
    CCC

    So the DCOUNTA formula returns 3
    You could appy Advanced Filter to your data and apply COUNTA to the filtered list.

    A formula-based approach would be:

    =IF(LEN(A2:A6),SUMPRODUCT(1/(COUNTIF(A2:A6,A2:A6)))


  3. #3
    Guest

    Default

    Well, I am planning to write the formulas using VBA, because I will need to write it for 20 sheets, everyday. Any good method to do this??

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •