View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Countif Multiple Criteria

=COUNTIF(C1:C50,"=51")-COUNTIF(C1:C50,"100")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"hot dogs" wrote in message
...
I'm having trouble using the countif function. I have a list of numbers

with
blanks, I want to count how many are in the range 0-50 how many are in

51-100
how many are in 101-150 and so on. I have no problem with the
=countif(C1:C50,"<=50") function for the first range, but when I
enter=countif(C1:C50,"AND(=51,<=100)") I get 0 for my answer but i know
there are values that are greater than 51 and less than 100 in the list. i
have also tried moving the "" around different parts of the AND function

and
tried removing them but non of this has worked.

Can anyone give me a clue?