COUNTIF, criteria for counting 10's

hotrod

Board Regular
Joined
Feb 3, 2009
Messages
103
I have a row of numbers and I want to count how many numbers there are in the 10's
Is it possible?
=COUNTIF(A1:M1, ?)
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
What do you mean by "In the 10's" ?
do you mean between 10 and 19 ?

=COUNTIF(A1:M1,">=10")-COUNTIF(A1:M1,">19")

do you mean a number with 2 digits, between 10 and 99

=COUNTIF(A1:M1,">=10")-COUNTIF(A1:M1,">99")

does that help?
 
Upvote 0
Thank you

Both work ...
=COUNTIF(A1:M1,">=10")-COUNTIF(A1:M1,">19")
=sumproduct(--(a1:m1>=10),--(a1:m1<20))

It's amazing how many ways you can do one thing.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top