Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Reference to a different spreadsheet

Hi. I have multiple spreadsheets and a "consolidated" sheet that ties them
all together. Right now, I have a formula in each cell that refers back to a
different spreadsheet to get the
data(=+'L:\Budget\2008\Susan\[Susan2008Budget.xls]Consolidated'!C10)

That is working fine, but what I would like to do is have the name "Susan"
in a cell and have the formula refer to the cell that the name "Susan" is in
to create the formula. So, if I change where I want the data to come from, I
only have to change the name in the cell that "Susan" is in. So if I changed
Susan to Mike, the formula would read:
=+'L:\Budget\2008\Mike\[Mike2008Budget.xls]Consolidated'!C10

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Reference to a different spreadsheet

Use the INDIRECT function. Let's say your vaiable name is stored in cell A1.

=INDIRECT("L:\Budget\2008\"&$A$1&"\["&$A$1&"2008Budget.xls]Consolidated!C10)

HTH,
Elkar


"Steve" wrote:

Hi. I have multiple spreadsheets and a "consolidated" sheet that ties them
all together. Right now, I have a formula in each cell that refers back to a
different spreadsheet to get the
data(=+'L:\Budget\2008\Susan\[Susan2008Budget.xls]Consolidated'!C10)

That is working fine, but what I would like to do is have the name "Susan"
in a cell and have the formula refer to the cell that the name "Susan" is in
to create the formula. So, if I change where I want the data to come from, I
only have to change the name in the cell that "Susan" is in. So if I changed
Susan to Mike, the formula would read:
=+'L:\Budget\2008\Mike\[Mike2008Budget.xls]Consolidated'!C10

Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Reference to a different spreadsheet

I think we are close, thank you, but I seem to be getting an formula error,
not sure why..

"Elkar" wrote:

Use the INDIRECT function. Let's say your vaiable name is stored in cell A1.

=INDIRECT("L:\Budget\2008\"&$A$1&"\["&$A$1&"2008Budget.xls]Consolidated!C10)

HTH,
Elkar


"Steve" wrote:

Hi. I have multiple spreadsheets and a "consolidated" sheet that ties them
all together. Right now, I have a formula in each cell that refers back to a
different spreadsheet to get the
data(=+'L:\Budget\2008\Susan\[Susan2008Budget.xls]Consolidated'!C10)

That is working fine, but what I would like to do is have the name "Susan"
in a cell and have the formula refer to the cell that the name "Susan" is in
to create the formula. So, if I change where I want the data to come from, I
only have to change the name in the cell that "Susan" is in. So if I changed
Susan to Mike, the formula would read:
=+'L:\Budget\2008\Mike\[Mike2008Budget.xls]Consolidated'!C10

Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Reference to a different spreadsheet

Elkar wrote...
Use the INDIRECT function. Let's say your vaiable name is stored in
cell A1.

=INDIRECT("L:\Budget\2008\"&$A$1&"\["&$A$1&"2008Budget.xls]Consolidated!C10)

....

INDIRECT for external references ONLY works when the other workbooks
are open in the same Excel instance. However, when workbooks are open,
Excel doesn't require (and doesn't display) the drive/directory path
because it can only open one file with a given base filename at a
time. Therefore, if the OP's workbooks would be open, the formula may
be shortened to

=INDIRECT("'["&$A$1&"2008Budget.xls]Consolidated'!C10")

However, if these other files would be closed, your INDIRECT formula
will return #REF! errors.

There are work-arounds.

http://www.google.com/groups?selm=hk...wsranger.c om

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Reference to a different spreadsheet

Correct, the other workbooks will not be open, so I will have to work with a
different approach.

"Harlan Grove" wrote:

Elkar wrote...
Use the INDIRECT function. Let's say your vaiable name is stored in
cell A1.

=INDIRECT("L:\Budget\2008\"&$A$1&"\["&$A$1&"2008Budget.xls]Consolidated!C10)

....

INDIRECT for external references ONLY works when the other workbooks
are open in the same Excel instance. However, when workbooks are open,
Excel doesn't require (and doesn't display) the drive/directory path
because it can only open one file with a given base filename at a
time. Therefore, if the OP's workbooks would be open, the formula may
be shortened to

=INDIRECT("'["&$A$1&"2008Budget.xls]Consolidated'!C10")

However, if these other files would be closed, your INDIRECT formula
will return #REF! errors.

There are work-arounds.

http://www.google.com/groups?selm=hk...wsranger.c om


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
Reference another spreadsheet on a share drive Robert C. New Users to Excel 1 May 23rd 07 09:46 PM
How do I create a unique spreadsheet reference? Paul Excel Worksheet Functions 1 November 1st 06 07:14 PM
how can I cross reference 1 excel spreadsheet against another SusieMuir Excel Discussion (Misc queries) 2 March 15th 06 05:26 PM
absolute cell reference A spreadsheet cell reference that does no help Excel Discussion (Misc queries) 1 January 18th 06 06:56 PM
how do I reference a spreadsheet in a cell Lee_Wrede Excel Worksheet Functions 2 February 25th 05 02:11 AM


All times are GMT +1. The time now is 06:58 PM.

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"