CountIf with multiple criteria

C

Corey

I'm trying to set up some countif statements that will count the
number of cells within a given range that contain number within a
given range.

Ex. One column has a list of random numbers from 0-100. The next
column will count the number of numbers that fall into a given
range.
How many of the cells within the first column contain numbers between
0 and 9? 10 and 19? So on and so forth...

Any help on this would be greatly appreciated.
 
K

Ken Johnson

Hi Corey,

Assuming your random numbers are integers and in column A then this
formula will give you the count of 1 to 9...

=COUNTIF($A:$A,"<10")

and this formula in the cell below then filled down will give the
other counts...

=COUNTIF($A:$A,"<"&ROW(A2)*10+IF(ROW(A2)=10,1,0))-
SUM(INDIRECT(ADDRESS(ROW()-
ROW(A2)+1,COLUMN())&":"&ADDRESS(ROW()-1,COLUMN())))

Ken Johnson
 

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

Top