sorting or adding numbers of the same value

  • Thread starter Thread starter luckysg
  • Start date Start date
L

luckysg

I want to count the number of 1's, 2, in a column. For example i use the
number 1 to represent a smith city resedient, and number 2 to represent
jackons city residents, i want to total the amount of each group?
 
hi
=countif(A1:A500,1)
and
=countif(A1:A500,2)
Trick...if your two formula were in say B1 and B2, in C1, you could put the
number 1 or 2 then have only 1 formula like this....
= countif(A1:A500, C1)
the formula would count whatever is in C1.

Regards
FSt1
 

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

Back
Top