Thread: CountIf
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default CountIf

One way:

=COUNTIF(A1:A100,"=40") - COUNTIF(A1:A100,"=45")

another:

=SUMPRODUCT(--(A1:A100=40),--(A1:A100<45))

In article ,
Eze wrote:

Hi,
Does anyone knows how can I use CountIf with two criteria conditions. For
example if I want to Count numbers with the following criteria: =40 and <45.
What shall I write in the criteria field
I tried using & or and in the criteria field but it didn't work
Thanks