Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lost in Parsippany
 
Posts: n/a
Default Use a cell's value to set the source file name in link

I am trying to create a formula that will link to another file, where the
name of the file (or part of the name) is provided in another cell.

For example, instead of the formula:

='[File Name.xls]Sheet Name'!$C$5

I want to be able to enter:

='[D8]Sheet Name'!$C$5

Where cell D8 in the local worksheet contains the file name. The above
syntax does not work, and I've tried a number of other logical guesses, but
none of them work.

Thanks!

  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

try

=INDIRECT("'"&D8&"Sheet Name'!$C$5")


"Lost in Parsippany" wrote:

I am trying to create a formula that will link to another file, where the
name of the file (or part of the name) is provided in another cell.

For example, instead of the formula:

='[File Name.xls]Sheet Name'!$C$5

I want to be able to enter:

='[D8]Sheet Name'!$C$5

Where cell D8 in the local worksheet contains the file name. The above
syntax does not work, and I've tried a number of other logical guesses, but
none of them work.

Thanks!

  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

Sorry. Make that

=INDIRECT("'["&D8&"]Sheet Name'!$C$5")


"Lost in Parsippany" wrote:

I am trying to create a formula that will link to another file, where the
name of the file (or part of the name) is provided in another cell.

For example, instead of the formula:

='[File Name.xls]Sheet Name'!$C$5

I want to be able to enter:

='[D8]Sheet Name'!$C$5

Where cell D8 in the local worksheet contains the file name. The above
syntax does not work, and I've tried a number of other logical guesses, but
none of them work.

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
copy excell file to a CSV file and than to Notepad need to know bob Excel Discussion (Misc queries) 0 August 23rd 05 07:27 PM
Can i reduce my file that's 29 MB but filled with blank cells? zapadias Excel Discussion (Misc queries) 3 August 18th 05 01:33 PM
Reference multiple cells in if statement PAR Excel Worksheet Functions 1 June 10th 05 06:28 AM
Excel data query locks source file jim.bahr Excel Discussion (Misc queries) 0 June 10th 05 05:48 AM
Protecting Workbook Paul Cooling Excel Discussion (Misc queries) 2 March 7th 05 11:55 AM


All times are GMT +1. The time now is 08:46 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"