# Using COUNTIF function to count cells between values

#### andy5150

##### New Member
Hi,

I'm having a mental block that I'm hoping that someone can help with...

I have a column containing number of days to resolve a certain issue. What I'm looking to do is produce a summary tab to show the number within certain ranges (i.e. how many took between 1-10 days, 11-20 days, 21-30 days, etc).

How can I do this without the use of a Pivot Table? I'd imagine I'd need to get the countif function to look at multiple calculations, but just cant work out how to do it!

Any help would be very much appreciated.

Thanks,

A

### Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

#### AlphaFrog

##### MrExcel MVP
If the number of days are in column B, this will count the number of entries in column B that are from 11 to 20

=COUNTIF(B:B, ">=11")-COUNTIF(B:B,">20")

If you have Excel 2007 or later, you could use the COUNTIFS function instead

=COUNTIFS(B:B, ">=11", B:B,"<=20")

#### nerojr

##### New Member
Sorry to piggy back, but I also have a COUNTIF? Can you create a formula using COUNTIF that will exclude the weekends when trying to count data. I'm looking to count everyting with a date 8/5 and prior, but I don't want to include the weekends.

#### AlphaFrog

##### MrExcel MVP
To nerojr:

You should really start a new thread. The answer to your question is quite different. Take a look at the NETWORKDAYS function

Replies
1
Views
94
Replies
2
Views
174
Replies
1
Views
185
Replies
2
Views
209
Replies
3
Views
506

1,181,899
Messages
5,932,690
Members
436,851
Latest member
masthomas

### 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