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

mtaystl11

Try this and let me know if it works for you. It must be entered with
ctrl+shift+enter

=SUMPRODUCT(--(A1:A75),--(A1:A7<10))

Dave

"mtaystl11" wrote
in message ...

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