How many different enrties are in the column ?

G

Gabor

Is there a formula which counts how many different entries are in a specific
column or range?
It would be like when you turn on Data>Filter and you would count how many
lines are there in the dropdown window of the filter.
Gabor
 
E

Electra

enter the following into a cell

=SUM(1/COUNTIF(A1:D23,A1:D23))

then press : CLT SHIFT ENTER (instead of just pressing ENTER)

if you do it correctly excel will display the formula enclosed in
braces:
{=SUM(1/COUNTIF(A1:D23,A1:D23)}


also their can't be any blanks cells in the range. if you have blanks
in your range then you must use the following:

{=sum(if(countif(a1:d23,a1:d23)=0,"",1/countif(a1:d23,a1:d23)))}

By the way I got these formulas from a book that is really helpful:

Microsoft Office Excel 2003 Bible by John Walkenbach
 

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