CountIf should work across sheets

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

Guest

The formula =COUNT(Sheet2:Sheet6!A1) works fine,
as does the formula =COUNTIF(A1:A6,"<4")

but the formula =COUNTIF(Sheet2:Sheet6!A1,"<4") does not. If there anyway
of counting across sheets only when a particular condition applys?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...dg=microsoft.public.excel.worksheet.functions
 
=SUMPRODUCT(COUNTIF(INDIRECT("'Sheet"&{1,2,3,4,5,6}&"'!A1"),"<4"))

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"(e-mail address removed)"
The formula =COUNT(Sheet2:Sheet6!A1) works fine,
as does the formula =COUNTIF(A1:A6,"<4")

but the formula =COUNTIF(Sheet2:Sheet6!A1,"<4") does not. If there anyway
of counting across sheets only when a particular condition applys?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/office/community/en-us/default.mspx?mid=2cb14e2c-b5
67-4936-ad4e-178a2a427211&dg=microsoft.public.excel.worksheet.functions
 
excuse me Bob....Mr thinker thats a good one...but please dont delete any
sheet in that range or even rename the sheet...good luck...more power Bob n
Thinker
 
Back
Top