+ Reply to Thread
Results 1 to 18 of 18

count all unique values (text) + Definition of UNIQUE :D

  1. #1
    Registered User
    Join Date
    05-31-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    47

    count all unique values (text) + Definition of UNIQUE :D

    Hi
    If I have multiple entries with different but repeatable text values in one column - how do I count all unique ones ? Is there a function or does it have to be a pivot table of sth ?
    THanks
    Last edited by przemke; 08-24-2009 at 08:53 AM. Reason: new issues

  2. #2
    Registered User
    Join Date
    03-16-2009
    Location
    London, UK
    MS-Off Ver
    Excel for Mac 16.31
    Posts
    72

    Re: count all different values (text)

    Perhaps not the most elegant way, but it works...

    Say you have a column (my_values) which contains

    a
    b
    a
    a
    c
    b

    Then enter in the next column

    =COUNTIF(my_values,A1)

    and copy down. Then select the values that have a 1 next to them.

    Hope that helps.

  3. #3
    Registered User
    Join Date
    05-31-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: count all different values (text)

    Thanks. Hmm does not appear to work properly, there were more with "1" and besides that the list is too long to look for all with "1" ..and I have more columns. It has to be counted normally.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,406

    Re: count all different values (text)

    Add at the top of that new column: =COUNTIF(range, 1)

  5. #5
    Registered User
    Join Date
    05-31-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: count all different values (text)

    I cannot add at the top because of the sheet design, if I added elsewhere it returned 0
    Those are text values as I mentioned although formatting was general (when I changed to text - no effect)

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,406

    Re: count all different values (text)

    Like this?

    Book1.xls

  7. #7
    Registered User
    Join Date
    05-31-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: count all different values (text)

    Quote Originally Posted by zbor View Post
    Like this?

    Attachment 51428
    Ok this way it should work however I am suprised that there's no formula for such simple thing (I thought).
    Seems easier to sum results from pivot table (should take less calculations and file space -on disk- at the same time?)

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,406

    Re: count all different values (text)

    Probably there is way to put it in single formula but I don't know it :-S

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: count all different values (text)

    This formula counts unique entries in range A1:A10

    =SUMPRODUCT((A1:A10<>"")/COUNTIF(A1:A10,A1:A10&""))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  10. #10
    Registered User
    Join Date
    05-31-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: count all different values (text)

    Amen


    (solved then)

  11. #11
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,406

    Re: count all different values (text)

    I think it's not working... In my example giving solution 15 and there is 11.

  12. #12
    Registered User
    Join Date
    05-31-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: count all different values (text)

    So what's not working your solution or NBVC's formula and are you sure?

  13. #13
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,406

    Re: count all different values (text)

    here...

    Book1(1).xls

  14. #14
    Registered User
    Join Date
    05-31-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: count all different values (text)

    here.. your solution does not work it seems. It turns out when I changed the actual values, the formula counts correctly
    However I don;t have tme to investigate this fully
    Attached Files Attached Files

  15. #15
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,406

    Re: count all different values (text)

    oh, THAT'S what you asking.

    I assume UNIQE are those that don't have matching couple.
    So in your example would be 2 unique values ( tt and tutu ).

    Others aren't unique since they come in couples (at least).

    But most important is that you get your solution

  16. #16
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: count all different values (text)

    The highlighted values are the unique values...
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    05-31-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: count all unique values (text) + Definition of UNIQUE :D

    Ha! Yes indeed good point zbor! I'm thinking ...both thinking seems logic...or just common ? (and just one logic?)

    I change the topic to definition of Unique (unsolved
    Oh yes: I actually gave my definition at first: "different but repeatable" :D

  18. #18
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,406

    Re: count all unique values (text) + Definition of UNIQUE :D

    Yes, there are several definitions... Find what best suits for you
    I choose 2nd

    –adjective
    1. existing as the only one or as the sole example; single; solitary in type or characteristics: a unique copy of an ancient manuscript.
    2. having no like or equal; unparalleled; incomparable: Bach was unique in his handling of counterpoint.
    3. limited in occurrence to a given class, situation, or area: a species unique to Australia.
    4. limited to a single outcome or result; without alternative possibilities: Certain types of problems have unique solutions.
    5. not typical; unusual: She has a very unique smile.

    –noun
    6. the embodiment of unique characteristics; the only specimen of a given kind: The unique is also the improbable.

+ 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