=Countif Question

lhather

New Member
Joined
Feb 4, 2003
Messages
45
Hi, I've searched though and have not found the answer that is working for me on this question.

I have a range of number in column F. The Values range from -24,000 to +5,000.

I would like to use the countif formula to find how many numbers are between the value of 0 to +500. I have lots of different ranges I want to specify.

I did try a couple of formulas from this board but they didn't work in my situation. Thanks in advance as usual.

I also would like to use a sumif function with the same range.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
May be something like this
Code:
=sumproduct(--(F1:F200>0),--(F1:F200<500))
for counting number of cells
 
Upvote 0
And
Code:
=sumproduct(--(F1:F200>0),--(F1:F200<500),(F1:F200))
for summing all those numbers that match criteria
 
Upvote 0
Hi, I've searched though and have not found the answer that is working for me on this question.

I have a range of number in column F. The Values range from -24,000 to +5,000.

I would like to use the countif formula to find how many numbers are between the value of 0 to +500.
You can do this with COUNTIF and it is faster than SUMPRODUCT which may become an issue if you have a large set of data.

=COUNTIF(F1:F200,"<500")-COUNTIF(F1:F200,"<=0")

Adjust the < and <= depending on just what you want to happen at the boundaries.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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