COUNTIF over several worksheets

R

RoyK

Hi,
Getting #value eror when using countif trough several
worksheets (in the same workbook).
Does anyone now if this should work.

Example:
=COUNTIF(Sheet2:Sheet4!A1;">0")
(does not work)

Works OK
=COUNT(Sheet2:Sheet4!A1)

and COUNTIF on the same sheet is OK:
=COUNTIF(B5:B7;">0")

Thanks
 
J

Jason Morin

Unfortunately, COUNTIF doesn't handle 3D ranges very well.
Try using:

=SUM(COUNTIF(INDIRECT("Sheet"&{2,3,4}&"!A1"),">0"))

HTH
Jason
Atlanta, GA
 

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