count with and formula

S

Satyendra_Haldaur

Dear all;
I am trying to use countif with and like this.
COUNTIF(A1:A12,and(">30","<100"))
I did try it with diffrent condition and even replace and with or but it
just show me answer 0.
is there any other way to use countif with multiple conditions?
 
B

Bernard Liengme

Using COUNTIF:
=COUNTIF(A1:A12,">30")-COUNTIF(A1:A12,">100")
With SUMPRODUCT
=SUMPRODUCT(--(A1:A12>30),--(A1:A12<100))
best wishes
 
S

Shane Devenshire

Hi,

If you are using 2007 then

=COUNTIFS(A1:A12,">30",A1:A12,"<100")

Its more flexible to use cell references:

=COUNTIFS(A1:A12,">"&C1,A1:A12,"<"&C2)

Where C1 contains 30 and C2 100.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top