Count() question

N

new2XL

Hello

I have a column of nonsequential random numbers some of which ar
duplicates.

I am trying to count the the number of numbers that appear once, th
number of numbers that appear twice, and the number of numbers tha
appear three times or more.

I have tried count(), countif(), and frequency() to no avail; an
advice?

I've been told countif is the way to go and I know the syntax is:
=countif(cells, condition) but obviously I am having trouble with th
condition constraint.

Thanks in advance!!
 
K

KellTainer

Assuming your numbers are from A1 to A10.

in B1, =COUNTIF($A$1:$A$10,A1)

Drag down till B10
 
P

Peo Sjoblom

=SUMPRODUCT(--(COUNTIF(A1:A10,A1:A10)=1))

will count the numbers that occurs once

for twice

=SUMPRODUCT(--(COUNTIF(A1:A10,A1:A10)=2))/2

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey
 

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