PC Review


Reply
Thread Tools Rate Thread

countif across worksheets

 
 
davegb
Guest
Posts: n/a
 
      10th Jul 2008
I'm trying to count then occurences of "C" in the same column on 13
different worksheets (same workbook) named Q1 to Q13. I did a countif
on each sheet, then entered the following formula in a summary sheet:
=sum(Q1:Q13!C65)
I'm getting a #VALUE error because XL keeps inserting single quotes
into my formula so it becomes
=sum(Q1:'Q13'!C65)

Does anyone know why XL is editing my forumla this way? Is there a
workaround?
Thanks.
 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      10th Jul 2008

=SUM('Q1:Q13'!A1)

Put the single quotes in yourself. Without them, I suspect Excel gets
confused thinking this is a cell reference rather than a sheet name. Worked
for me.

--
Regards,
Tom Ogilvy


"davegb" wrote:

> I'm trying to count then occurences of "C" in the same column on 13
> different worksheets (same workbook) named Q1 to Q13. I did a countif
> on each sheet, then entered the following formula in a summary sheet:
> =sum(Q1:Q13!C65)
> I'm getting a #VALUE error because XL keeps inserting single quotes
> into my formula so it becomes
> =sum(Q1:'Q13'!C65)
>
> Does anyone know why XL is editing my forumla this way? Is there a
> workaround?
> Thanks.
>

 
Reply With Quote
 
Lars-Åke Aspelin
Guest
Posts: n/a
 
      10th Jul 2008
On Thu, 10 Jul 2008 12:58:13 -0700 (PDT), davegb
<(E-Mail Removed)> wrote:

>I'm trying to count then occurences of "C" in the same column on 13
>different worksheets (same workbook) named Q1 to Q13. I did a countif
>on each sheet, then entered the following formula in a summary sheet:
>=sum(Q1:Q13!C65)
>I'm getting a #VALUE error because XL keeps inserting single quotes
>into my formula so it becomes
>=sum(Q1:'Q13'!C65)
>
>Does anyone know why XL is editing my forumla this way? Is there a
>workaround?
>Thanks.



Try moving the first quote to the beginning, like this:

=sum('Q1:Q3'!C65)

Hope this helps/ Lars-Åke
 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      10th Jul 2008


I think I tested with A1 to verify my suspicions, so to alleviate any
confusion:

=sum('Q1:Q13'!C65)

--
Regards,
Tom Ogilvy


"davegb" wrote:

> I'm trying to count then occurences of "C" in the same column on 13
> different worksheets (same workbook) named Q1 to Q13. I did a countif
> on each sheet, then entered the following formula in a summary sheet:
> =sum(Q1:Q13!C65)
> I'm getting a #VALUE error because XL keeps inserting single quotes
> into my formula so it becomes
> =sum(Q1:'Q13'!C65)
>
> Does anyone know why XL is editing my forumla this way? Is there a
> workaround?
> Thanks.
>

 
Reply With Quote
 
davegb
Guest
Posts: n/a
 
      10th Jul 2008
On Jul 10, 2:13*pm, Tom Ogilvy <TomOgi...@discussions.microsoft.com>
wrote:
> I think I tested with A1 to verify my suspicions, so to alleviate any
> confusion:
>
> =sum('Q1:Q13'!C65)
>
> --
> Regards,
> Tom Ogilvy
>
>
>
> "davegb" wrote:
> > I'm trying to count then occurences of "C" in the same column on 13
> > different worksheets (same workbook) named Q1 to Q13. I did a countif
> > on each sheet, then entered the following formula in a summary sheet:
> > =sum(Q1:Q13!C65)
> > I'm getting a #VALUE error because XL keeps inserting single quotes
> > into my formula so it becomes
> > =sum(Q1:'Q13'!C65)

>
> > Does anyone know why XL is editing my forumla this way? Is there a
> > workaround?
> > Thanks.- Hide quoted text -

>
> - Show quoted text -


Thanks to all. That did the trick!
 
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
countif in many worksheets Rasoul Khoshravan Microsoft Excel Worksheet Functions 2 22nd Oct 2006 05:25 AM
Countif over several worksheets =?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?= Microsoft Excel Worksheet Functions 2 27th Jun 2006 03:55 PM
Countif over several worksheets =?Utf-8?B?U3RldmU=?= Microsoft Excel Worksheet Functions 6 26th Oct 2004 06:44 AM
COUNTIF over several worksheets RoyK Microsoft Excel Worksheet Functions 2 25th May 2004 02:12 PM
COUNTIF on several worksheets??? Mally Microsoft Excel Misc 3 18th Dec 2003 12:34 AM


Features
 

Advertising
 

Newsgroups
 


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