Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Domenic
 
Posts: n/a
Default


Assuming that you currently have 10 sheets named Clin1, Clin2, etc...

=SUMPRODUCT(SUMIF(INDIRECT("'Clin"&ROW(INDIRECT("1 :10"))&"'!K2:K1000"),B8,INDIRECT("'Clin"&ROW(INDIR ECT("1:10"))&"'!U2:U1000")))

OR

=SUMPRODUCT(SUMIF(INDIRECT("'Clin"&ROW(INDIRECT("1 :"&C8))&"'!K2:K1000"),B8,INDIRECT("'Clin"&ROW(INDI RECT("1:"&C8))&"'!U2:U1000")))

...where C8 contains the number of sheets you currently have. So when
you add another sheet, let's say you add sheet Clin11, enter 11 in C8
and that sheet will automatically be taken into account.

Hope this help!

Mike@Q Wrote:
Hi

I am trying to write a SUMIF formula that will sum across a range of
worksheets in a workbook. I never know how many worksheets there will
be in
this range. The formula I am trying is
=SUMIF(Clin1:ClinEND!K:K,NOTES!B8,Clin1:ClinEND!U: U).

Can anyone help? If this is not possible using a SUMIF, is there
another
formula that would work?

Thanks

Mike



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=320097

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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM
SUMIF with only one criteria cell within range Stan Excel Discussion (Misc queries) 5 December 16th 04 10:12 PM
named range refers to: in a chart Spencer Hutton Excel Discussion (Misc queries) 1 December 14th 04 10:15 PM
Macro with Range of Worksheets Chris E. New Users to Excel 8 December 3rd 04 04:56 PM


All times are GMT +1. The time now is 04:54 PM.

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"