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

Hi,

try =sumproduct(--(a1:a5=5),--(a1:a5<=10))

adjust the range as you need

HTH
Regards from Brazil
Marcelo

"mtaystl11" escreveu:


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