# COUNTIF, criteria for counting 10's

#### hotrod

##### Board Regular
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
do you mean 10 - 19?

If so,

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

#### Jonmo1

##### MrExcel MVP
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
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.

Replies
5
Views
212
Replies
6
Views
678
Replies
8
Views
160
Replies
5
Views
112
Replies
8
Views
148

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.

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.

### Which adblocker are you using?

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

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