Count if multiple statements in two columns

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to create a calculation where the range creiteria in my first column
is ">=7<=9" and my second column ="30+" before it is counted.

I'm not sure how to work both statements into this calculation.
ie: countif(q2:q100">=7<=9" and r2:r100 "30+)

It just errors out on me...any suggestions
 
If you mean count the number of cell in R2:R100 where the value is 30 or
more and inthe same row Q2:Q100 contains 7,8,or 9 then try:

=SUMPRODUCT((Q2:Q100>=7)*(Q2:Q100<=9)*(R2:R100>=30))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 
In that case:

=SUMPRODUCT((Q2:Q100>=7)*(Q2:Q100<=9)*(R2:R100="30+"))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 

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

Back
Top