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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,213,497
Messages
6,113,998
Members
448,541
Latest member
iparraguirre89

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