Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've seen quite a few posts on this problem but haven't been able to
use any of the solutions I've found. The problem: (Excel 2003) =COUNTIF (W1!A1:A5,"1") is fine (W1 = Worksheet Name) =COUNTIF (W1.W5!A1:A5,"1") broken (tried with and without quotes around worksheet names) I want to solve this without using any addons, without resorting to VBA, and it would be nice (but not possible?) to solve without an INDIRECT and creating lists/ranges of work sheet names. In other words, I would like a simple and elegant solution. As an aside rant, why doesn't this work? COUNTA and other functions seem to have no problem with worksheet ranges. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you have only 5 sheets then use this
=COUNTIF (W1!A1:A5,"1") +COUNTIF (W2!A1:A5,"1")+COUNTIF (W3!A1:A5,"1")+COUNTIF (W4!A1:A5,"1")+COUNTIF (W5!A1:A5,"1") " wrote: I've seen quite a few posts on this problem but haven't been able to use any of the solutions I've found. The problem: (Excel 2003) =COUNTIF (W1!A1:A5,"1") is fine (W1 = Worksheet Name) =COUNTIF (W1.W5!A1:A5,"1") broken (tried with and without quotes around worksheet names) I want to solve this without using any addons, without resorting to VBA, and it would be nice (but not possible?) to solve without an INDIRECT and creating lists/ranges of work sheet names. In other words, I would like a simple and elegant solution. As an aside rant, why doesn't this work? COUNTA and other functions seem to have no problem with worksheet ranges. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Nov 14, 9:59*am, Joel wrote:
If you have only 5 sheets then use this =COUNTIF (W1!A1:A5,"1") +COUNTIF (W2!A1:A5,"1")+COUNTIF (W3!A1:A5,"1")+COUNTIF (W4!A1:A5,"1")+COUNTIF (W5!A1:A5,"1") Thanks; that seems like it would work fine. But I finally 'bit it' and used the INDIRECT funtion. I don't like it because I have to edit a LOT of fields when I add a new worksheet. Why can't they just fix COUNTIF? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't know why they can't fix the problem. It probably effects a lot of
functions. My guess by changing the code it will break other peoples workbooks that are relying on bugs so they will work. The main problem is the microsoft code wasn't tested very well in the 1st place. New enhancements were rushed to market to beat the competion. Lotus was good, Quatro was GREAAAAAAAAAT, and Excel was PooooooooooooooooR. but eventually Excel won the rat race. " wrote: On Nov 14, 9:59 am, Joel wrote: If you have only 5 sheets then use this =COUNTIF (W1!A1:A5,"1") +COUNTIF (W2!A1:A5,"1")+COUNTIF (W3!A1:A5,"1")+COUNTIF (W4!A1:A5,"1")+COUNTIF (W5!A1:A5,"1") Thanks; that seems like it would work fine. But I finally 'bit it' and used the INDIRECT funtion. I don't like it because I have to edit a LOT of fields when I add a new worksheet. Why can't they just fix COUNTIF? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Nov 14, 11:05*am, Joel wrote:
I don't know why they can't fix the problem. *It probably effects a lot of functions. *My guess by changing the code it will break other peoples workbooks that are relying on bugs so they will work. The main problem is the microsoft code wasn't tested very well in the 1st place. *New enhancements were rushed to market to beat the competion. *Lotus was good, Quatro was GREAAAAAAAAAT, and Excel was PooooooooooooooooR. *but eventually Excel won the rat race. " wrote: On Nov 14, 9:59 am, Joel wrote: If you have only 5 sheets then use this =COUNTIF (W1!A1:A5,"1") +COUNTIF (W2!A1:A5,"1")+COUNTIF (W3!A1:A5,"1")+COUNTIF (W4!A1:A5,"1")+COUNTIF (W5!A1:A5,"1") Thanks; that seems like it would work fine. But I finally 'bit it' and used the INDIRECT funtion. *I don't like it because I have to edit a LOT of fields when I add a new worksheet. Why can't they just fix COUNTIF?- Hide quoted text - I just realized that my list of Worksheet names in my INDIRECT function is in quotes, thus the field ranges aren't adjusted when I 'copy' the function. That's about 3 seperate edits in 90 cells I have to do hand. :( |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLookup accross multiple worksheets | Excel Worksheet Functions | |||
SumIf accross multiple worksheets | Excel Worksheet Functions | |||
COUNTIF Accross Multiple Columns with AND | Excel Discussion (Misc queries) | |||
Vlookup accross multiple worksheets | Excel Worksheet Functions | |||
Countif accross multiple questions. | Excel Discussion (Misc queries) |