PC Review


Reply
Thread Tools Rate Thread

COUNTIF accross multiple worksheets issues

 
 
djarvinen@gmail.com
Guest
Posts: n/a
 
      14th Nov 2008
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.
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      14th Nov 2008
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")

"(E-Mail Removed)" 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.
>

 
Reply With Quote
 
djarvinen@gmail.com
Guest
Posts: n/a
 
      14th Nov 2008
On Nov 14, 9:59*am, Joel <J...@discussions.microsoft.com> 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?
 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      14th Nov 2008
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.

"(E-Mail Removed)" wrote:

> On Nov 14, 9:59 am, Joel <J...@discussions.microsoft.com> 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?
>

 
Reply With Quote
 
djarvinen@gmail.com
Guest
Posts: n/a
 
      14th Nov 2008
On Nov 14, 11:05*am, Joel <J...@discussions.microsoft.com> wrote:
> I don't know why they can't fix the problem. *It probably effects a lotof
> 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.
>
>
>
> "djarvi...@gmail.com" wrote:
> > On Nov 14, 9:59 am, Joel <J...@discussions.microsoft.com> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLookup accross multiple worksheets jedman Microsoft Excel Worksheet Functions 8 11th Nov 2008 06:37 PM
SumIf accross multiple worksheets =?Utf-8?B?S2FyZW41Mw==?= Microsoft Excel Worksheet Functions 6 23rd Aug 2007 08:01 AM
COUNTIF Accross Multiple Columns with AND relaxandflow@gmail.com Microsoft Excel Misc 6 2nd Oct 2006 04:11 PM
Vlookup accross multiple worksheets =?Utf-8?B?RXhjZWxjcmF6eQ==?= Microsoft Excel Worksheet Functions 3 20th Dec 2005 11:32 PM
Countif accross multiple questions. golden Microsoft Excel Misc 1 28th Oct 2005 05:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:58 AM.