Help required with countif function

D

Dynamo

Hi,

Can somebody please tell me if it is possible to use the countif function across
multiple sheets without repeatedly having to use countif. At present I have the
following:

Countif(sheet1!E1:E110,D15)+Countif(sheet2!A1:A55,D15)....... and so on up to 10
sheets. Can this statement be condensed?

Any help greatly appreciated
TIA
Dynamo
 
S

Scott_Mariani

Dynamo,
Have you had any success? I too have tried to use the countif accros
multiple worksheets without success. I tried th
"=countif('Sheet1:Sheet2'!...)" but kept getting a "#VALUE!" that
could not resolve. I tried the "=countif(..)+countif(..)" and tha
worked fine but it will certainly be much messier over time.
Please let me know if you were able to get it to work.
TIA Scot
 
P

Peo Sjoblom

There is a workaround, this will work

=SUMPRODUCT(COUNTIF(INDIRECT("'Sheet"&ROW(INDIRECT("1:3"))&"'!A2:A4"),">0"))

will count how many values greater than zero in A2:A4 for sheet1 to 3
 

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