PC Review


Reply
Thread Tools Rate Thread

Build a reference to another worksheet from cell values in currentsheet

 
 
Lucas Reece
Guest
Posts: n/a
 
      17th Feb 2009
I have a summary sheet and separate week number sheets. In the summary
sheet I have a link to the week number sheets returning data from A1
see below.

A B
1 Week Data (cell A1 from Week ??.xls)
2 01 ='[Week 01.xls]Sheet1'!$A$1
3 02 ='[Week 02.xls]Sheet1'!$A$1
4 03 ='[Week 03.xls]Sheet1'!$A$1

Is it possible to build the formula which includes a cell value held
in column A for example rather than specify ='[Week 01.xls]Sheet1'!$A
$1 in cell B2, I'd like to build the formula something like this...
='["Week" & A2 & ".xls"]Sheet1'!$A$1. Hope this makes sense?

Is this possible?

Many thanks.
 
Reply With Quote
 
 
 
 
Glenn
Guest
Posts: n/a
 
      17th Feb 2009
Lucas Reece wrote:
> I have a summary sheet and separate week number sheets. In the summary
> sheet I have a link to the week number sheets returning data from A1
> see below.
>
> A B
> 1 Week Data (cell A1 from Week ??.xls)
> 2 01 ='[Week 01.xls]Sheet1'!$A$1
> 3 02 ='[Week 02.xls]Sheet1'!$A$1
> 4 03 ='[Week 03.xls]Sheet1'!$A$1
>
> Is it possible to build the formula which includes a cell value held
> in column A for example rather than specify ='[Week 01.xls]Sheet1'!$A
> $1 in cell B2, I'd like to build the formula something like this...
> ='["Week" & A2 & ".xls"]Sheet1'!$A$1. Hope this makes sense?
>
> Is this possible?
>
> Many thanks.



Look at the INDIRECT() function.
 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      17th Feb 2009
Try

=INDIRECT("'[week " & A2 &".xls]Sheet1'!$A$1")

Mike

"Lucas Reece" wrote:

> I have a summary sheet and separate week number sheets. In the summary
> sheet I have a link to the week number sheets returning data from A1
> see below.
>
> A B
> 1 Week Data (cell A1 from Week ??.xls)
> 2 01 ='[Week 01.xls]Sheet1'!$A$1
> 3 02 ='[Week 02.xls]Sheet1'!$A$1
> 4 03 ='[Week 03.xls]Sheet1'!$A$1
>
> Is it possible to build the formula which includes a cell value held
> in column A for example rather than specify ='[Week 01.xls]Sheet1'!$A
> $1 in cell B2, I'd like to build the formula something like this...
> ='["Week" & A2 & ".xls"]Sheet1'!$A$1. Hope this makes sense?
>
> Is this possible?
>
> Many thanks.
>

 
Reply With Quote
 
Lucas Reece
Guest
Posts: n/a
 
      18th Feb 2009
On 17 Feb, 22:16, ~L <L...@discussions.microsoft.com> wrote:
> No, and yes.
>
> No as in: *Not with the out-of-the-box indirect function.
>
> Yes as in, you can change how the data is stored (consolidating it into one
> workbook for example) and using a non-volatile function
>
> OR
>
> Have a look at:http://xcell05.free.fr/morefunc/english/
>
> which includes (among other things) a function called INDIRECT.EXE that
> works more or less like indirect, but on workbooks that seem closed.
>
> "Lucas Reece" wrote:
> > On 17 Feb, 21:11, Mike H <Mi...@discussions.microsoft.com> wrote:
> > > Try

>
> > > =INDIRECT("'[week " & A2 &".xls]Sheet1'!$A$1")

>
> > > Mike

>
> > > "Lucas Reece" wrote:
> > > > I have a summary sheet and separate week number sheets. In the summary
> > > > sheet I have a link to the week number sheets returning data from A1
> > > > see below.

>
> > > > * * * A * * * * * *B
> > > > 1 * *Week * * *Data (cell A1 from Week ??.xls)
> > > > 2 * *01 * * * * * ='[Week 01.xls]Sheet1'!$A$1
> > > > 3 * *02 * * * * * ='[Week 02.xls]Sheet1'!$A$1
> > > > 4 * *03 * * * * * ='[Week 03.xls]Sheet1'!$A$1

>
> > > > Is it possible to build the formula which includes a cell value held
> > > > in column A for example rather than specify ='[Week 01.xls]Sheet1'!$A
> > > > $1 in cell B2, I'd like to build the formula something like this...
> > > > ='["Week" & A2 & ".xls"]Sheet1'!$A$1. Hope this makes sense?

>
> > > > Is this possible?

>
> > > > Many thanks.

>
> > Thanks guys. This works a treat! However, when the week number sheet
> > is closed *the summary sheet value returns a #REF!. Any way around
> > this?


Excellent thanks.
 
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 worksheet A values into worksheet B - missing cell values huge_ness Microsoft Excel Programming 16 24th Sep 2009 08:00 PM
Re: Build a reference to another worksheet from cell values incurrent Lucas Reece Microsoft Excel Worksheet Functions 1 17th Feb 2009 10:16 PM
cell values as worksheet reference Joerg Schaber Microsoft Excel Programming 3 29th Feb 2008 04:53 PM
cell values as worksheet reference Joerg Schaber Microsoft Excel Discussion 2 29th Feb 2008 04:52 PM
How do I build a reference to an external worksheet? Alexsalles Microsoft Excel Worksheet Functions 3 15th Dec 2005 07:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 PM.