How can i count a range of cells ??

toyo2

New Member
Joined
Apr 18, 2013
Messages
2
I try CountIF(g4:g229,And(">100","<220") this on dont work help plz :confused:
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Welcome to the board.

Which version of XL do you have?
If you have XL2007+ you can use COUNTIFS

=COUNTIFS(Q4:Q229,">100",Q4:Q229,"<220")


In XL2003 or earlier, you need sumproduct

=SUMPRODUCT(--(Q4:Q229>100),--(Q4:Q229<220))
 
Upvote 0
Maybe this (not 100% sure whether you need < or <= for either COUNTIF function call... it depends if you need to count or exclude the boundary numbers... your post shows you excluding them so that is what I set up my formula to do...

=COUNTIF(G4:G229,"<200")-COUNTIF(G4:G229,"<=100")
 
Upvote 0

Forum statistics

Threads
1,214,793
Messages
6,121,614
Members
449,039
Latest member
Mbone Mathonsi

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