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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Weaver

Well-known Member
Joined
Sep 10, 2008
Messages
5,196
do you mean 10 - 19?

If so,

=sumproduct(--(a1:m1>=10),--(a1:m1<20))
 

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
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?
 

hotrod

Board Regular
Joined
Feb 3, 2009
Messages
103
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,856
Messages
5,766,786
Members
425,378
Latest member
kapoor2892

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
Top