How do I count the # of unique occurences of a text in a column?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking for a command/formulat to count (return a single number) the
number of unique text entries in a column.
 
One way

=SUMPRODUCT((A1:A10<>"")/COUNTIF(A1:A10,A1:A10&""))


Regards,

Peo Sjoblom
 
This is VERY resource intensive, so be careful using it on a list of several
thousand entries

It's an array formula - enter it with the key combination Ctrl+Shift+Enter

=SUM(1/COUNTIF(A1:A10,A1:A10))
 
It's the SumProduct version of Hager's formula extended to take care of
formula-blanks and empty cells,

{=SUM(IF(A1:A10<>"",1/COUNTIF(A1:A10,A1:A10)))}
 
Experts
How do you adjust this to account for columns that may be different in
length? One time you need A375 and the next time you use it is A584.


JayMan
 
T
Do I now plug that in like this, Range is the name of the range
{=SUM(IF(Range<>"",1/COUNTIF(Range,Range)))}

not really sure here

JayMan
 
Yes. However, I would use the SUMPRODUCT formula that was posted in your
thread:

=SUMPRODUCT((Range<>"")/COUNTIF(Range,Range&""))
 
THANK YOU

T. Valko said:
Yes. However, I would use the SUMPRODUCT formula that was posted in your
thread:

=SUMPRODUCT((Range<>"")/COUNTIF(Range,Range&""))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top