Count unique entries

L

Lynn

1)How can I count unique entries within a column? Eg:

APPLES
APPLES
ORANGES
ORANGES
APPLES
BANANAS

The answer I want is 3 - 3 unique entries in the list.

2)If these entries are part of a large datalist - how can
I count unique entries in a category within a category? A
pivot table scenario would be great but it only seems to
allow count - not a unique count.
 
F

Frank Kabel

Hi
use the following formula
=SUMPRODUCT((D1:D100<>"")/COUNTIF(D1:D100,D1:D100&""))
if D1:D100 is your range with data
 
P

Peo Sjoblom

Another way would be to apply an advanced filter
data>filter>advanced filer, unique entries only, then use

=SUBTOTAL(3,Range)

where Range is the range with fruits (header excluded)
to turn off filter data>filter>show all


--


For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom
 
G

Guest

Thanks!!
-----Original Message-----
Hi
use the following formula
=SUMPRODUCT((D1:D100<>"")/COUNTIF(D1:D100,D1:D100&""))
if D1:D100 is your range with data

--
Regards
Frank Kabel
Frankfurt, Germany


.
 
K

Kenneth Lam

Hi
use the following formula
=SUMPRODUCT((D1:D100<>"")/COUNTIF(D1:D100,D1:D100&""))
if D1:D100 is your range with data

I will use the array formula
{=SUM(1/COUNTIF(D1:D100,D1:D100))}

Yours is very simple but powerful. Could you briefly explain it? I
really don't understand. Thanks.
 
F

Frank Kabel

Hi Kenneth
both formulas are quite similar. Advantage of SUMPRODUCT: You don't
have to array enter it. Also your formula counts blanks cells as well
as one unique entry
 

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

Top