ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   counting only specific numbers in column (https://www.excelbanter.com/excel-worksheet-functions/27830-counting-only-specific-numbers-column.html)

Alex C

counting only specific numbers in column
 
I have a column with ranges from A:1 thru A:50. I need to be able to count
how many times a specific number is used within all those ranges.. What
formula could I use to get this answer? Please see example below:

Column
2
2
2
2
3
3
2
6

Number of times 2 used - 5 times.



Peo Sjoblom

=COUNTIF(A1:A50,2)


Regards,

Peo Sjoblom

"Alex C" wrote:

I have a column with ranges from A:1 thru A:50. I need to be able to count
how many times a specific number is used within all those ranges.. What
formula could I use to get this answer? Please see example below:

Column
2
2
2
2
3
3
2
6

Number of times 2 used - 5 times.



David McRitchie

Hi Alex,
Use COUNTIF see John Walkenbach's page:
Cell Counting Techniques
http://www.j-walk.com/ss/excel/tips/tip52.htm

=COUNTIF(Range("A:A",2)
=COUNTIF(Range("A1:A50",2)
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Alex C" <Alex wrote in message ...
I have a column with ranges from A:1 thru A:50. I need to be able to count
how many times a specific number is used within all those ranges.. What
formula could I use to get this answer? Please see example below:

Column
2
2
2
2
3
3
2
6

Number of times 2 used - 5 times.






All times are GMT +1. The time now is 09:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com