Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 258
Default COUNTIF across worksheets

Good morning --

I'm shooting for a COUNTIF formula that will count text occurances across
multiple worksheets. I can get the formula to work if the data is on the
same worksheet but as soon as I go to multiple ones, it fails and I get a
'#VALUE!' error.

Here's the formula:

=COUNTIF(First:Last!A1,"Y")

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default COUNTIF across worksheets

On Sun, 21 Feb 2010 05:59:02 -0800, pdberger
wrote:

Good morning --

I'm shooting for a COUNTIF formula that will count text occurances across
multiple worksheets. I can get the formula to work if the data is on the
same worksheet but as soon as I go to multiple ones, it fails and I get a
'#VALUE!' error.

Here's the formula:

=COUNTIF(First:Last!A1,"Y")

Thanks in advance.


COUNTIF does not work with 3D references.

You may be able to use something like:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&A4:A7&"'!A1"),"Y" ))

where A1:A4 contains the names of your worksheets.
--ron
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 83
Default COUNTIF across worksheets

On Sun, 21 Feb 2010 05:59:02 -0800, pdberger
wrote:

Good morning --

I'm shooting for a COUNTIF formula that will count text occurances across
multiple worksheets. I can get the formula to work if the data is on the
same worksheet but as soon as I go to multiple ones, it fails and I get a
'#VALUE!' error.

Here's the formula:

=COUNTIF(First:Last!A1,"Y")

Thanks in advance.


Have a look he

https://www.microsoft.com/communitie...r=US&sloc=&p=1

Hope this helps / Lars-Åke
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default COUNTIF across worksheets

Hi,

You can't create a 3D formula with Countif, it doesn't support it so here's
another apptoach

Create a list of your sheet names in a column ( I used B1:B4) like this

First
Sheet3
Sheet4
last

Then the formula

=SUMPRODUCT(COUNTIF(INDIRECT("'"&B1:B4&"'!A1"),"Y" ))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"pdberger" wrote:

Good morning --

I'm shooting for a COUNTIF formula that will count text occurances across
multiple worksheets. I can get the formula to work if the data is on the
same worksheet but as soon as I go to multiple ones, it fails and I get a
'#VALUE!' error.

Here's the formula:

=COUNTIF(First:Last!A1,"Y")

Thanks in advance.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
countif from different worksheets BeefDr Excel Worksheet Functions 2 July 7th 08 09:53 PM
countif in many worksheets Rasoul Khoshravan Excel Worksheet Functions 2 October 22nd 06 05:25 AM
Countif over several worksheets Barb Reinhardt Excel Worksheet Functions 2 June 27th 06 03:55 PM
=COUNTIF across Worksheets Trevor Shuttleworth Excel Worksheet Functions 6 December 8th 05 10:58 PM
countif across worksheets MCK Excel Worksheet Functions 7 July 5th 05 05:15 PM


All times are GMT +1. The time now is 07:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"