count cells in a range with multiple conditions

S

Spyridonas

I am trying to use the countif function and calculating the number of cells
that contain a vlaue greater than x but less than y. What is the formula?
 
J

JulieD

Hi

here's answers from JE McGimpsey & myself to a similar question (counting
number of items between 6 & 12 inclusive) yesterday

Jim's answers:
=COUNTIF(A1:A10,">=6") - COUNTIF(A1:A10,">12")
alternatively:
=SUMPRODUCT(--(A1:A10>=6),--(A1:A10<=12))
see
http://www.mcgimpsey.com/excel/doubleneg.html for

mine:
=COUNTIF(A1:A10,">=" & 6)-COUNTIF(A1:A10,">"& 12)

Hope this helps
Cheers
JulieD
 

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