Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default 3D Count in all worksheets

I have 12 worksheets starting from Jan. to Dec.. There are staff names
in the A column in each worksheet and most of them are in the same row
on each worksheet. I have created names in the left column according to
the staff names and set up an formula in a defined column e.g. AG

10/01 10/02.......... 10/31
Davis Chan v v v =Sum((Davis_Chan="V")*1)
Ada Au v =Sum((Ada_Au="V")*1)

But I couldn't figure out a formula to count the string "V" for
all "Davis Chan" in all worksheets since "Davis Chan" can be in
different rows in all worksheets. Does anybody have any idea if I want
to put the new formula in a separate worksheet ?

Louis

  #2   Report Post  
Biff
 
Posts: n/a
Default 3D Count in all worksheets

Hi!

Try this:

Create a list of your sheet names:

Jan
Feb
Mar
...
Dec

Give this list a defined name, say, Snames

On your summary sheet starting in cell A1 you have the staff names listed:

A1 = Davis Chan
A2 = Ada Au

In B1 enter this formula and copy down as needed:

=SUMPRODUCT(SUMIF(INDIRECT("'"&Snames&"'!A1:A15"), A1,INDIRECT("'"&Snames&"'!AG1:AG15")))

Adjust the ranges to suit.

=Sum((Davis_Chan="V")*1)


Use this instead:

=COUNTIF(Davis_Chan,"V")

Biff

wrote in message
ups.com...
I have 12 worksheets starting from Jan. to Dec.. There are staff names
in the A column in each worksheet and most of them are in the same row
on each worksheet. I have created names in the left column according to
the staff names and set up an formula in a defined column e.g. AG

10/01 10/02.......... 10/31
Davis Chan v v v =Sum((Davis_Chan="V")*1)
Ada Au v =Sum((Ada_Au="V")*1)

But I couldn't figure out a formula to count the string "V" for
all "Davis Chan" in all worksheets since "Davis Chan" can be in
different rows in all worksheets. Does anybody have any idea if I want
to put the new formula in a separate worksheet ?

Louis



  #3   Report Post  
 
Posts: n/a
Default 3D Count in all worksheets

Biff,

Thanks for reply. One thing I don't know - how to create a list of
sheet names and define a name for them. Should I type Jan to Dec. on a
summary worksheet in a column and then create a name for them e.g.
summary!$A$1:$A$12. In addition, if I want to separate the count in
different months, can I just change the Snames to include the concerned
month e.g. Oct instead of Jan.to Dec. ?

Louis

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
Count If 2 Diff Values Appear on Several Worksheets w/in Workbook Kat Excel Worksheet Functions 5 September 22nd 05 06:44 PM
Count # of times value "x" appear across multiple worksheets eggdrunk Excel Worksheet Functions 0 June 9th 05 04:49 PM
Count of Worksheets Terry Excel Discussion (Misc queries) 7 February 23rd 05 09:39 AM
How to count # of worksheets? Stephen POWELL Excel Discussion (Misc queries) 4 January 27th 05 02:05 PM
Count the number of worksheets in a workbook Vincdc Excel Discussion (Misc queries) 7 January 17th 05 11:57 PM


All times are GMT +1. The time now is 02:37 AM.

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

About Us

"It's about Microsoft Excel"