Countif over several worksheets

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

Guest

I'd like to have a countif equation over the range Sheet1:AA2, Sheet2:AA2,
Sheet3:AA2 and I want it count anything that is not equal to 2. How would I
write this.

Thanks,
Barb Reinhardt
 
COUNTIF() does not work over dis-joint ranges.

Try:

=(Sheet2!AA2<>2)+(Sheet3!AA2<>2)+(Sheet1!AA2<>2)
 
=SUMPRODUCT(COUNTIF(INDIRECT("Sheet"&{1,2,3}&"!AA2"),"<>2"))

--
HTH

Bob Phillips

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

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