Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 5
Default Counting data over multiple worksheets

Hi all,

I have run into the need to be able to count data over a large number of worksheets that all have an identical format (so cell D4 has the same type of data in it on every page). I want to be able to count the number of occurances that cell D4="Division" and N120.6 I currently use a combination of sumproduct, countif, and indirect, but I can't figure out how to get it to count based on multiple criteria. Thanks in advance for any help that you might be able to give.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default Counting data over multiple worksheets


xlsuser42 wrote:
Hi all,

I have run into the need to be able to count data over a large number
of worksheets that all have an identical format (so cell D4 has the
same type of data in it on every page). I want to be able to count the
number of occurances that cell D4="Division" and N120.6 I currently
use a combination of sumproduct, countif, and indirect, but I can't
figure out how to get it to count based on multiple criteria. Thanks
in advance for any help that you might be able to give.




--
xlsuser42


Let SheetNames be the array of worksheet names
[either as a list or by defining the name SheetNames to refer to
=get.workbook(1)].

The formulas below count the number of sheets where D4="division" and
N120.6.

=SUMPRODUCT((T(INDIRECT(SheetNames&"!d4"))="Divisi on")*(N(INDIRECT(SheetNames&"!n12"))0.6))

Or..

=SUMPRODUCT(--(MMULT({1,1},COUNTIF(INDIRECT(SheetNames&{"!d4";"! n12"}),{"Division";"0.6"}))=2))

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
Inputting data to one worksheet for it effect another daedalus1 Excel Discussion (Misc queries) 1 June 25th 06 04:39 PM
How do I link lots of data in multiple worksheets ALSEGUY Excel Worksheet Functions 2 March 17th 06 09:31 PM
counting rows across multiple worksheets Aleks Excel Discussion (Misc queries) 1 October 29th 05 02:56 AM
Finding common Data in multiple worksheets Peter Syvertsen Excel Discussion (Misc queries) 1 October 21st 05 11:43 PM
Listing data from multiple worksheets scottcts Excel Worksheet Functions 3 August 12th 05 05:55 PM


All times are GMT +1. The time now is 11:23 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"