Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
Default Copying data and increasing formula

I am creating a simple spreadsheet which pulls data from another. The first
(diary) has the names of operatives and the job numbers where they are
working, each week of the year is represented by a worksheet ie: week 17,
week 18 etc etc. The second (timesheet) takes the job numbers and enters them
onto a time sheet. This I can do by using (='[Diary.xls]Week 17'!$B$2) which
is pretty straight forward. The problem I have is in the second (timesheet)
spreadsheet, is there any way I can copy the second (timesheet) spreadsheet
increasing the week number ie: (='[Diary.xls]Week 18'!$B$2)
At the moment when I copy the worksheet the same formula appears and I have
to manually change it over and over again.

I hope this makes sense

Any help would be greatly appreciated.



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Copying data and increasing formula

Instead of manually changing each formula, you can highlight all the
cells with the formula in and do CTRL-H (or Edit | Replace):

Find What: Week 17
Replace With: Week 18
Click Replace All.

Another way would be to use the INDIRECT function, as long as the
Diary.xls file is open at the same time:

=INDIRECT("'[Diary.xls]Week "&A1&"'!$B$2")

where A1 contains 17 for the Week 17 sheet, and you can change this to
18 for the next sheet.

Hope this helps.

Pete

On Aug 13, 11:07*am, Mark wrote:
I am creating a simple spreadsheet which pulls data from another. The first
(diary) has the names of operatives and the job numbers where they are
working, each week of the year is represented by a worksheet ie: week 17,
week 18 etc etc. The second (timesheet) takes the job numbers and enters them
onto a time sheet. This I can do by using (='[Diary.xls]Week 17'!$B$2) which
is pretty straight forward. The problem I have is in the second (timesheet) *
spreadsheet, is there any way I can copy the second (timesheet) spreadsheet
increasing the week number ie: (='[Diary.xls]Week 18'!$B$2)
At the moment when I copy the worksheet the same formula appears and I have
to manually change it over and over again.

I hope this makes sense

Any help would be greatly appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Copying data and increasing formula

Put the week number in a cell, say A1, and use

=INDIRECT("'[Diary.xls]Week "&A1&"'!$B$2")

then all you need to do is change A1 after copying.

--
__________________________________
HTH

Bob

"Mark" wrote in message
...
I am creating a simple spreadsheet which pulls data from another. The first
(diary) has the names of operatives and the job numbers where they are
working, each week of the year is represented by a worksheet ie: week 17,
week 18 etc etc. The second (timesheet) takes the job numbers and enters
them
onto a time sheet. This I can do by using (='[Diary.xls]Week 17'!$B$2)
which
is pretty straight forward. The problem I have is in the second
(timesheet)
spreadsheet, is there any way I can copy the second (timesheet)
spreadsheet
increasing the week number ie: (='[Diary.xls]Week 18'!$B$2)
At the moment when I copy the worksheet the same formula appears and I
have
to manually change it over and over again.

I hope this makes sense

Any help would be greatly appreciated.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
Default Copying data and increasing formula

Thanks guys, much appreciated

"Mark" wrote:

I am creating a simple spreadsheet which pulls data from another. The first
(diary) has the names of operatives and the job numbers where they are
working, each week of the year is represented by a worksheet ie: week 17,
week 18 etc etc. The second (timesheet) takes the job numbers and enters them
onto a time sheet. This I can do by using (='[Diary.xls]Week 17'!$B$2) which
is pretty straight forward. The problem I have is in the second (timesheet)
spreadsheet, is there any way I can copy the second (timesheet) spreadsheet
increasing the week number ie: (='[Diary.xls]Week 18'!$B$2)
At the moment when I copy the worksheet the same formula appears and I have
to manually change it over and over again.

I hope this makes sense

Any help would be greatly appreciated.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Copying data and increasing formula

You're welcome, Mark.

Pete

On Aug 13, 1:57*pm, Mark wrote:
Thanks guys, much appreciated

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
Increasing payment in future value formula? AXPJESTER Excel Worksheet Functions 5 May 20th 23 07:43 PM
How do I copy a formula with the cell increasing by increments? Jaxboo Excel Discussion (Misc queries) 22 May 3rd 10 08:44 PM
Copying Data/Formula Kristi Excel Worksheet Functions 1 November 27th 07 08:58 PM
Formula for Increasing a Cell Reference by a Given Number Kentle Excel Worksheet Functions 3 October 21st 06 03:42 PM
formula copying data and lay out Kootje Excel Discussion (Misc queries) 6 June 30th 06 04:43 PM


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