ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   CountIf should work across sheets (https://www.excelbanter.com/excel-worksheet-functions/115486-countif-should-work-across-sheets.html)

[email protected]

CountIf should work across sheets
 
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/comm...et.f unctions

Bob Phillips

CountIf should work across sheets
 
=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)

"
om wrote in message
...
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/comm...id=2cb14e2c-b5
67-4936-ad4e-178a2a427211&dg=microsoft.public.excel.worksheet.f unctions



romelsb

CountIf should work across sheets
 
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

"Bob Phillips" wrote:

=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)

"
om wrote in message
...
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/comm...id=2cb14e2c-b5
67-4936-ad4e-178a2a427211&dg=microsoft.public.excel.worksheet.f unctions





All times are GMT +1. The time now is 08:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com