View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Countif question

Alternately you could use

=SUMPRODUCT(--(A$31:A$42=5),--(A$31:A$42<=10))

"mtaystl11" wrote:


I am trying to get a "Countif" function to count within a certain
number. Meaning, I need to get it to count how many cells are between
the number 5 and 10.

I understand that you can put

=countif(A31:A42, 32) or
=countif(A31:A42, <32) or
=countif(A31:A42, "32"

but how do I do the 5 through 10?

I have tried
=countif(A31:A42, 5-10) DIDNT WORK
=countif(A31:A42, "5-10") DIDNT WORK
=countif(A31:A42, 5;6;7;8;9;10) DIDNT WORK

I would really appreciate some help here. I'm sure it is a simple fix
but I just can't figure it out! THANKS!


--
mtaystl11
------------------------------------------------------------------------
mtaystl11's Profile: http://www.excelforum.com/member.php...o&userid=35725
View this thread: http://www.excelforum.com/showthread...hreadid=555069