Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dingy101
 
Posts: n/a
Default Copy worksheet & maintain cell reference across worksheets

I have a workbook with a worksheet set up initially with a sheet named
1-01-06 and another sheet named 12-31-06, these refer to the first & last
weeks of 2006.
Both worksheets have a cell with the following formula
=SUM('1-01-06:12-31-06'!B12:F12) which sums the total of b12 thru f12 across
both worksheets.
I want to copy the first worksheet 24 times, renaming each copy to the date
for sunday of each week.

When I copy the worksheet to a new worksheet that is located between 1-01-06
& 12-31-06 the formula for the above cell changes to =SUM(#REF!B12:F12). I
have tried putting a $ sign in various places in the original formula to make
it absolute with no success, when I do this I get this result
=SUM('$1-01-06:[$12-31-06]$12-31-06'!B12:F12) by entering it this way
=SUM('$1-01-06:$12-31-06'!B12:F12) which gives me a #REF! value in cell.

How do I enter thus formula to make it copy exactly the same when I copy the
worksheet.?

Thanks
Gary D.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dingy101
 
Posts: n/a
Default Copy worksheet & maintain cell reference across worksheets

SOme thing else which would be nice to do when copying the worksheet is to be
able to have the formula copy as follows.

=SUM('1-01-06:12-31-06'!B12:F12) original formula

=SUM('1-01-06:(name of worksheet)'!B12:F12) copied worksheet formula

Thanks
Gary D.

"dingy101" wrote:

I have a workbook with a worksheet set up initially with a sheet named
1-01-06 and another sheet named 12-31-06, these refer to the first & last
weeks of 2006.
Both worksheets have a cell with the following formula
=SUM('1-01-06:12-31-06'!B12:F12) which sums the total of b12 thru f12 across
both worksheets.
I want to copy the first worksheet 24 times, renaming each copy to the date
for sunday of each week.

When I copy the worksheet to a new worksheet that is located between 1-01-06
& 12-31-06 the formula for the above cell changes to =SUM(#REF!B12:F12). I
have tried putting a $ sign in various places in the original formula to make
it absolute with no success, when I do this I get this result
=SUM('$1-01-06:[$12-31-06]$12-31-06'!B12:F12) by entering it this way
=SUM('$1-01-06:$12-31-06'!B12:F12) which gives me a #REF! value in cell.

How do I enter thus formula to make it copy exactly the same when I copy the
worksheet.?

Thanks
Gary D.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Copy worksheet & maintain cell reference across worksheets

Hi!

Kind of a clunky way to do it:

Convert the formula to a text string by preceding it with an apostrophe:

'=SUM('1-01-06:12-31-06'!B12:F12)

Make your sheet copies

Then group all those sheets together, select the cell with the formula in it
and edit out the apostrophe. Then make sure you ungroup the sheets.

Biff

"dingy101" wrote in message
...
I have a workbook with a worksheet set up initially with a sheet named
1-01-06 and another sheet named 12-31-06, these refer to the first & last
weeks of 2006.
Both worksheets have a cell with the following formula
=SUM('1-01-06:12-31-06'!B12:F12) which sums the total of b12 thru f12
across
both worksheets.
I want to copy the first worksheet 24 times, renaming each copy to the
date
for sunday of each week.

When I copy the worksheet to a new worksheet that is located between
1-01-06
& 12-31-06 the formula for the above cell changes to =SUM(#REF!B12:F12).
I
have tried putting a $ sign in various places in the original formula to
make
it absolute with no success, when I do this I get this result
=SUM('$1-01-06:[$12-31-06]$12-31-06'!B12:F12) by entering it this way
=SUM('$1-01-06:$12-31-06'!B12:F12) which gives me a #REF! value in cell.

How do I enter thus formula to make it copy exactly the same when I copy
the
worksheet.?

Thanks
Gary D.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Copy worksheet & maintain cell reference across worksheets

Hi

One way might be to create 2 dummy sheets titled First and Last.
Drag these to a position that wraps your other sheets.
Make the formula = SUM(First:last!B12:F12)


--
Regards

Roger Govier



dingy101 wrote:
I have a workbook with a worksheet set up initially with a sheet named
1-01-06 and another sheet named 12-31-06, these refer to the first &
last weeks of 2006.
Both worksheets have a cell with the following formula
=SUM('1-01-06:12-31-06'!B12:F12) which sums the total of b12 thru
f12 across both worksheets.
I want to copy the first worksheet 24 times, renaming each copy to
the date for sunday of each week.

When I copy the worksheet to a new worksheet that is located between
1-01-06 & 12-31-06 the formula for the above cell changes to
=SUM(#REF!B12:F12). I have tried putting a $ sign in various places
in the original formula to make it absolute with no success, when I
do this I get this result
=SUM('$1-01-06:[$12-31-06]$12-31-06'!B12:F12) by entering it this
way =SUM('$1-01-06:$12-31-06'!B12:F12) which gives me a #REF! value
in cell.

How do I enter thus formula to make it copy exactly the same when I
copy the worksheet.?

Thanks
Gary D.



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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Copy from worksheet to another x times Union70 Excel Discussion (Misc queries) 0 March 7th 05 09:03 PM
Using a cell reference to refernce worksheet in another work book [email protected] Excel Worksheet Functions 5 January 6th 05 06:26 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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