Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mr_chattaway
 
Posts: n/a
Default Formula to Sum a definable range of workbooks

I have created a workbook that collects daily data on 31 worksheets (1 per
day) and I am now trying to create a summary sheet at the end.

I am trying to create a formula that will allow a user to enter a start date
and end date which will provide a sum of all the work completed between the
given range. Somthing along the lines of :

sum ('$A$1:$B$1'!C1)

Where $A$1 and $B$1 refer to two cells which contain the name of the first
and last worksheet in the range (the worksheets are called
'1','2','3'...'31') and C1 is the cell to be calculated.

Thanks in advance for your help.

Matt Chattaway
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One possible way would be to put all sheet names in a column/row aqnd then
use a workaround, assume you put 1 - 31 in Z1 - Z31 (you need to creat a
whole list of the sheet names in use), I used column Z because it is off the
normal display of a spreadsheet and you can even use a nother sheet and hide
that sheet if you want, assume we use Z1:Z31, you still use A1 and B1 for the
sheets involved, then this formula will work


=SUMPRODUCT(SUMIF(INDIRECT("'"&OFFSET($Z$1,$A$1-1,,$B$1-$A$1+1)&"'!C1"),"<"""))



Regards,

Peo Sjoblom

"mr_chattaway" wrote:

I have created a workbook that collects daily data on 31 worksheets (1 per
day) and I am now trying to create a summary sheet at the end.

I am trying to create a formula that will allow a user to enter a start date
and end date which will provide a sum of all the work completed between the
given range. Somthing along the lines of :

sum ('$A$1:$B$1'!C1)

Where $A$1 and $B$1 refer to two cells which contain the name of the first
and last worksheet in the range (the worksheets are called
'1','2','3'...'31') and C1 is the cell to be calculated.

Thanks in advance for your help.

Matt Chattaway

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 do I make a formula NOT change when the data range is moved? Alida Andrews Excel Discussion (Misc queries) 2 January 6th 05 09:02 PM
use a date range as criteria in a countif formula mbparks Excel Worksheet Functions 3 January 2nd 05 11:06 PM
How do I use Range Names listed in a VLookup table in a formula? Essbasedvlpr32 Excel Worksheet Functions 3 December 15th 04 10:11 PM
how to enter a formula using column() function for a range Mike Peter Excel Worksheet Functions 6 December 8th 04 07:11 AM
how can i merge 2 workbooks using a formula? John F Excel Worksheet Functions 6 November 23rd 04 04:45 PM


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