PC Review


Reply
Thread Tools Rate Thread

How to add formula calling up current workbook when sheet copied

 
 
=?Utf-8?B?U211ZGdl?=
Guest
Posts: n/a
 
      6th Sep 2007
Hi everyone,

I'm trying to make life easier for me by putting the following into a cell
="Number of Units " & '[Depot 1.xls]dumpers'!H1

This should let me copy this worksheet into a number of workbooks and pick
up the depot number from cell H1 in an existing sheet in each workbook.

How do I do this and make excel look for h1 in the book I'm copying into?

TIA


--
Smudge
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      6th Sep 2007
You wouldn't need the workbook name [depot 1.xls] in the formula.

I'd use:
$$$$$="Number of Units " & 'dumpers'!h1

Yep, it's text--not a formula.
Copy and paste into the new workbook.
then remove the $$$$$ to change it into a formula.

Or you could copy the formula:
="Number of Units " & 'dumpers'!h1
from the formulabar and paste it into the formulabar.

Smudge wrote:
>
> Hi everyone,
>
> I'm trying to make life easier for me by putting the following into a cell
> ="Number of Units " & '[Depot 1.xls]dumpers'!H1
>
> This should let me copy this worksheet into a number of workbooks and pick
> up the depot number from cell H1 in an existing sheet in each workbook.
>
> How do I do this and make excel look for h1 in the book I'm copying into?
>
> TIA
>
> --
> Smudge


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?U211ZGdl?=
Guest
Posts: n/a
 
      6th Sep 2007
Hi Dave,

So there's no magic way of it doing this without amending the cell each time
I copy over? :-(
--
Smudge


"Dave Peterson" wrote:

> You wouldn't need the workbook name [depot 1.xls] in the formula.
>
> I'd use:
> $$$$$="Number of Units " & 'dumpers'!h1
>
> Yep, it's text--not a formula.
> Copy and paste into the new workbook.
> then remove the $$$$$ to change it into a formula.
>
> Or you could copy the formula:
> ="Number of Units " & 'dumpers'!h1
> from the formulabar and paste it into the formulabar.
>
> Smudge wrote:
> >
> > Hi everyone,
> >
> > I'm trying to make life easier for me by putting the following into a cell
> > ="Number of Units " & '[Depot 1.xls]dumpers'!H1
> >
> > This should let me copy this worksheet into a number of workbooks and pick
> > up the depot number from cell H1 in an existing sheet in each workbook.
> >
> > How do I do this and make excel look for h1 in the book I'm copying into?
> >
> > TIA
> >
> > --
> > Smudge

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      6th Sep 2007
The second suggestion seems pretty easy.

Smudge wrote:
>
> Hi Dave,
>
> So there's no magic way of it doing this without amending the cell each time
> I copy over? :-(
> --
> Smudge
>
> "Dave Peterson" wrote:
>
> > You wouldn't need the workbook name [depot 1.xls] in the formula.
> >
> > I'd use:
> > $$$$$="Number of Units " & 'dumpers'!h1
> >
> > Yep, it's text--not a formula.
> > Copy and paste into the new workbook.
> > then remove the $$$$$ to change it into a formula.
> >
> > Or you could copy the formula:
> > ="Number of Units " & 'dumpers'!h1
> > from the formulabar and paste it into the formulabar.
> >
> > Smudge wrote:
> > >
> > > Hi everyone,
> > >
> > > I'm trying to make life easier for me by putting the following into a cell
> > > ="Number of Units " & '[Depot 1.xls]dumpers'!H1
> > >
> > > This should let me copy this worksheet into a number of workbooks and pick
> > > up the depot number from cell H1 in an existing sheet in each workbook.
> > >
> > > How do I do this and make excel look for h1 in the book I'm copying into?
> > >
> > > TIA
> > >
> > > --
> > > Smudge

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?U211ZGdl?=
Guest
Posts: n/a
 
      6th Sep 2007
Hi Dave,

Didn't mean to sound ungrateful ! I'm using 2nd option between messages :-)
but imagined that there was an automatic way of doing it that I was missing -
learning all the time.

Mant thanks again
--
Smudge


"Dave Peterson" wrote:

> The second suggestion seems pretty easy.
>
> Smudge wrote:
> >
> > Hi Dave,
> >
> > So there's no magic way of it doing this without amending the cell each time
> > I copy over? :-(
> > --
> > Smudge
> >
> > "Dave Peterson" wrote:
> >
> > > You wouldn't need the workbook name [depot 1.xls] in the formula.
> > >
> > > I'd use:
> > > $$$$$="Number of Units " & 'dumpers'!h1
> > >
> > > Yep, it's text--not a formula.
> > > Copy and paste into the new workbook.
> > > then remove the $$$$$ to change it into a formula.
> > >
> > > Or you could copy the formula:
> > > ="Number of Units " & 'dumpers'!h1
> > > from the formulabar and paste it into the formulabar.
> > >
> > > Smudge wrote:
> > > >
> > > > Hi everyone,
> > > >
> > > > I'm trying to make life easier for me by putting the following into a cell
> > > > ="Number of Units " & '[Depot 1.xls]dumpers'!H1
> > > >
> > > > This should let me copy this worksheet into a number of workbooks and pick
> > > > up the depot number from cell H1 in an existing sheet in each workbook.
> > > >
> > > > How do I do this and make excel look for h1 in the book I'm copying into?
> > > >
> > > > TIA
> > > >
> > > > --
> > > > Smudge
> > >
> > > --
> > >
> > > Dave Peterson
> > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      6th Sep 2007
Maybe you could use some sort of macro that would make it more automatic.



Smudge wrote:
>
> Hi Dave,
>
> Didn't mean to sound ungrateful ! I'm using 2nd option between messages :-)
> but imagined that there was an automatic way of doing it that I was missing -
> learning all the time.
>
> Mant thanks again
> --
> Smudge
>
> "Dave Peterson" wrote:
>
> > The second suggestion seems pretty easy.
> >
> > Smudge wrote:
> > >
> > > Hi Dave,
> > >
> > > So there's no magic way of it doing this without amending the cell each time
> > > I copy over? :-(
> > > --
> > > Smudge
> > >
> > > "Dave Peterson" wrote:
> > >
> > > > You wouldn't need the workbook name [depot 1.xls] in the formula.
> > > >
> > > > I'd use:
> > > > $$$$$="Number of Units " & 'dumpers'!h1
> > > >
> > > > Yep, it's text--not a formula.
> > > > Copy and paste into the new workbook.
> > > > then remove the $$$$$ to change it into a formula.
> > > >
> > > > Or you could copy the formula:
> > > > ="Number of Units " & 'dumpers'!h1
> > > > from the formulabar and paste it into the formulabar.
> > > >
> > > > Smudge wrote:
> > > > >
> > > > > Hi everyone,
> > > > >
> > > > > I'm trying to make life easier for me by putting the following into a cell
> > > > > ="Number of Units " & '[Depot 1.xls]dumpers'!H1
> > > > >
> > > > > This should let me copy this worksheet into a number of workbooks and pick
> > > > > up the depot number from cell H1 in an existing sheet in each workbook.
> > > > >
> > > > > How do I do this and make excel look for h1 in the book I'm copying into?
> > > > >
> > > > > TIA
> > > > >
> > > > > --
> > > > > Smudge
> > > >
> > > > --
> > > >
> > > > Dave Peterson
> > > >

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?U211ZGdl?=
Guest
Posts: n/a
 
      7th Sep 2007
Thanks Dave

Will give it a go

--
Smudge


"Dave Peterson" wrote:

> Maybe you could use some sort of macro that would make it more automatic.
>
>
>
> Smudge wrote:
> >
> > Hi Dave,
> >
> > Didn't mean to sound ungrateful ! I'm using 2nd option between messages :-)
> > but imagined that there was an automatic way of doing it that I was missing -
> > learning all the time.
> >
> > Mant thanks again
> > --
> > Smudge
> >
> > "Dave Peterson" wrote:
> >
> > > The second suggestion seems pretty easy.
> > >
> > > Smudge wrote:
> > > >
> > > > Hi Dave,
> > > >
> > > > So there's no magic way of it doing this without amending the cell each time
> > > > I copy over? :-(
> > > > --
> > > > Smudge
> > > >
> > > > "Dave Peterson" wrote:
> > > >
> > > > > You wouldn't need the workbook name [depot 1.xls] in the formula.
> > > > >
> > > > > I'd use:
> > > > > $$$$$="Number of Units " & 'dumpers'!h1
> > > > >
> > > > > Yep, it's text--not a formula.
> > > > > Copy and paste into the new workbook.
> > > > > then remove the $$$$$ to change it into a formula.
> > > > >
> > > > > Or you could copy the formula:
> > > > > ="Number of Units " & 'dumpers'!h1
> > > > > from the formulabar and paste it into the formulabar.
> > > > >
> > > > > Smudge wrote:
> > > > > >
> > > > > > Hi everyone,
> > > > > >
> > > > > > I'm trying to make life easier for me by putting the following into a cell
> > > > > > ="Number of Units " & '[Depot 1.xls]dumpers'!H1
> > > > > >
> > > > > > This should let me copy this worksheet into a number of workbooks and pick
> > > > > > up the depot number from cell H1 in an existing sheet in each workbook.
> > > > > >
> > > > > > How do I do this and make excel look for h1 in the book I'm copying into?
> > > > > >
> > > > > > TIA
> > > > > >
> > > > > > --
> > > > > > Smudge
> > > > >
> > > > > --
> > > > >
> > > > > Dave Peterson
> > > > >
> > >
> > > --
> > >
> > > Dave Peterson
> > >

>
> --
>
> Dave Peterson
>

 
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
The Dates change when sheet copied to a new workbook Robyns521 Microsoft Excel Misc 4 7th Jan 2010 09:23 PM
When Copying a sheet, the whole workbook gets copied =?Utf-8?B?UnVnYnkgQWw=?= Microsoft Excel Misc 1 5th Jan 2006 01:03 AM
Error when workbook sheet are copied =?Utf-8?B?Sk9FU0NEUA==?= Microsoft Excel Crashes 0 23rd Dec 2005 04:41 PM
Calling a Personal.XLS Sub from anther workbook's 'This Workbook' Sheet Activate Jack Gillis Microsoft Excel Discussion 2 21st Mar 2005 11:58 PM
Close current Workbook after calling macro in other Des Janke Microsoft Excel Programming 4 7th Aug 2003 07:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 PM.