Count function problem

C

Christo

Hi there,

I need the formula to count how many reps I have on my
spreadsheet i.e.

Jones
Jones
Roberts
Doe
Albert

The # of reps should be 4.....

Please help!!!!

Thanks
 
F

Frank Kabel

Hi Christo
if you have no blanks in that columns try
=SUM(1/COUNTIF(A1:A100,A1:A100))

Frank
 
A

Andy B

Christo

This needs to be array-entered (instead of hitting Enter when you've done
it, hit Ctrl Shift and Enter)

Andy.
 
G

Guest

Hi Frank,

Thanks for the response, i tried this but it does not
work, the value of the formula below is 0. I am using
excel 2003 if this makes a difference...
 
F

Frank Kabel

Hi
forgot to mention you have to array enter this formula
(CTRL+SHIFT+ENTER instead of only hitting ENTER)

Frank
 
H

Harlan Grove

forgot to mention you have to array enter this formula
(CTRL+SHIFT+ENTER instead of only hitting ENTER)

You should have used SUMPRODUCT.

=SUMPRODUCT(1/COUNTIF(A1:A100,A1:A100))

doesn't need to be entered as an array formula.
 
F

Frank Kabel

Harlan said:
...

You should have used SUMPRODUCT.

=SUMPRODUCT(1/COUNTIF(A1:A100,A1:A100))

doesn't need to be entered as an array formula.

Harlan
thanks, good point
Frank
 

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