How do I count the number of each number in a column?

S

Shelby

I have columns containing numbers 1-6 (randomly). At the bottom, I do not
want to total, rather I wish to count up how many 1s, how many 2s, how many
3s etc.

I know there must be a way, but I can't see the wood for the trees!

Any help will be gratefully accepted.

Confused of Lichfield!
 
P

Peo Sjoblom

=COUNTIF(A2:A10,2)

to count 2's as long as they are the only number in the cell

--


Regards,


Peo Sjoblom
 
P

Pete_UK

Put 1 to 6 in cells A101 to A106 (say), then in B101 you can put this
formula:

=COUNTIF(B$1:B$100,$A101)

You may need to adjust the ranges and cell references to suit your
data, but you can then copy the formula into B102:B106, and then copy
these 6 formulae across to other columns.

Hope this helps.

Pete
 
S

Shelby

So kind of you to help out...just the job!

Pete_UK said:
Put 1 to 6 in cells A101 to A106 (say), then in B101 you can put this
formula:

=COUNTIF(B$1:B$100,$A101)

You may need to adjust the ranges and cell references to suit your
data, but you can then copy the formula into B102:B106, and then copy
these 6 formulae across to other columns.

Hope this helps.

Pete
 
S

Shelby

Is there also a way that I could find out how many of the numbers are more
than 2, more than 3, more than 4, etc? Thanks, Shelby
 

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