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
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
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.
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.
Add at the top of that new column: =COUNTIF(range, 1)
Never use Merged Cells in Excel
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)
Like this?
Book1.xls
Probably there is way to put it in single formula but I don't know it :-S
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.
Amen
(solved then)
I think it's not working... In my example giving solution 15 and there is 11.
So what's not working your solution or NBVC's formula and are you sure?
here...
Book1(1).xls
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![]()
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![]()
The highlighted values are the unique values...
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
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks