Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Build a reference to another worksheet from cell values in currentsheet

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Build a reference to another worksheet from cell values in currentsheet

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.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Build a reference to another worksheet from cell values in current

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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Build a reference to another worksheet from cell values incurrent

On 17 Feb, 21:11, Mike H 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?
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default Build a reference to another worksheet from cell values in cur

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 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?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Build a reference to another worksheet from cell values in cur

On 17 Feb, 22:16, ~L 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 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
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
Trying to build reference to external, web-based sheets Error trying to sort in a Macro Excel Worksheet Functions 2 May 29th 08 08:18 PM
INDIRECT function to reference values in another worksheet Rich[_4_] Excel Worksheet Functions 1 February 1st 08 12:45 PM
Using cell value to build external reference Todd Lietha Excel Discussion (Misc queries) 11 October 1st 07 05:50 PM
How do I build a reference to an external worksheet? Alexsalles Excel Worksheet Functions 3 December 15th 05 07:29 PM
How do I conditionally build worksheet from existing worksheet? Bob G Excel Discussion (Misc queries) 1 July 3rd 05 06:40 PM


All times are GMT +1. The time now is 10:39 AM.

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"