PC Review


Reply
Thread Tools Rate Thread

Copying data and increasing formula

 
 
Mark
Guest
Posts: n/a
 
      13th Aug 2008
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.



 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      13th Aug 2008
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 <M...@discussions.microsoft.com> 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.


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      13th Aug 2008
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" <(E-Mail Removed)> wrote in message
news:987E2295-5ECA-4BD0-80B7-(E-Mail Removed)...
>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.
>
>
>



 
Reply With Quote
 
Mark
Guest
Posts: n/a
 
      13th Aug 2008
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.
>
>
>

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      13th Aug 2008
You're welcome, Mark.

Pete

On Aug 13, 1:57*pm, Mark <M...@discussions.microsoft.com> wrote:
> Thanks guys, much appreciated
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copying down a formula only where there is data childofthe1980s Microsoft Excel Programming 3 15th Jul 2009 01:33 PM
copying down the formula just for data childofthe1980s Microsoft Excel Programming 3 23rd Jun 2009 06:15 PM
Copying Data/Formula Kristi Microsoft Excel Worksheet Functions 1 27th Nov 2007 08:58 PM
formula copying data and lay out Kootje Microsoft Excel Misc 6 30th Jun 2006 04:43 PM
copying data by way of a formula =?Utf-8?B?U2FuZHk=?= Microsoft Excel Worksheet Functions 2 7th Apr 2004 04:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:50 AM.