#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default Count through tabs

Hi all,
I have a document that has 12 tabs,named after the months of the year.
Could anybody tell me how to create the following equations:
* COUNTIF column A in January tab +column A in February tab +column A in
March tab +column A in May tab +column A in June tab +column A in July tab
+column A in August tab +column A in September tab +column A in October tab
+column A in November tab +column A in December tab = "Peter"
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Count through tabs

I assume you *accidently* left out APRIL.

Anyway ... you'll have to make a datalist of your tab names.
Make sure that the spelling is *exactly* as they appear in the tabs.
Say you create this list in Z1 to Z12.

Then try this:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&Z1:Z12&"'!A:A")," Peter"))

Watch those apostrophes and double quotes!
They're included just in case there might be spaces in the sheet names.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Pietro" wrote in message
...
Hi all,
I have a document that has 12 tabs,named after the months of the year.
Could anybody tell me how to create the following equations:
* COUNTIF column A in January tab +column A in February tab +column A in
March tab +column A in May tab +column A in June tab +column A in July tab
+column A in August tab +column A in September tab +column A in October
tab
+column A in November tab +column A in December tab = "Peter"



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count through tabs

=SUMPRODUCT(COUNTIF(INDIRECT("'"&TEXT(ROW(INDIRECT ("1:12"))*30,"mmmm")&"'!A:A"),"Peter"))

TEXT(ROW(INDIRECT("1:12"))*30,"mmmm")

will generate the sheet names:

January
February
March
...
December

Biff

"Ragdyer" wrote in message
...
I assume you *accidently* left out APRIL.

Anyway ... you'll have to make a datalist of your tab names.
Make sure that the spelling is *exactly* as they appear in the tabs.
Say you create this list in Z1 to Z12.

Then try this:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&Z1:Z12&"'!A:A")," Peter"))

Watch those apostrophes and double quotes!
They're included just in case there might be spaces in the sheet names.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Pietro" wrote in message
...
Hi all,
I have a document that has 12 tabs,named after the months of the year.
Could anybody tell me how to create the following equations:
* COUNTIF column A in January tab +column A in February tab +column A in
March tab +column A in May tab +column A in June tab +column A in July
tab
+column A in August tab +column A in September tab +column A in October
tab
+column A in November tab +column A in December tab = "Peter"





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
Can i set up tabs within tabs on Excel? Gizelle Excel Worksheet Functions 5 October 30th 06 12:52 PM
Page Count with Tabs tom Excel Discussion (Misc queries) 3 October 27th 06 04:09 AM
Is there a way to count all the worksheet tabs in an Excel speadsh PCGArts Excel Discussion (Misc queries) 2 April 14th 06 05:48 PM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 03:45 PM.

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"