#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TJW JR
 
Posts: n/a
Default File reference

I am trying to reference data in an external workbook and would like to save
some typing. Each row has the same references, but to a different file. I
would like to just type the file name in the first cell and have each of the
following cells use that cell to get the file name and perform the function.
For instance:

='[external_file.xls]Enterprise Architecture'!$B$3

But the formula would contain some function that would get external_file.xls
from the first cell.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default File reference

Hi

You can use INDIRECT function to create a link, of-course, but there is a
drawback - INDIRECT needs source file to be opened - otherwise it returns an
error.

When addressing by cell value is needed only for designing purpouses, then
my advice is to use this alternative technique:

Into some column, p.e. A, enter workbook names.
In another column, enter the formula like this:
="='[" & A1 & "]Sheet1'!A1"
and copy it down
Select the range with formulas. Copy, and then PasteSpecialValues. Leaving
the range selected, replace all "=" with "=".
It's done!


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"TJW JR" <TJW wrote in message
...
I am trying to reference data in an external workbook and would like to
save
some typing. Each row has the same references, but to a different file.
I
would like to just type the file name in the first cell and have each of
the
following cells use that cell to get the file name and perform the
function.
For instance:

='[external_file.xls]Enterprise Architecture'!$B$3

But the formula would contain some function that would get
external_file.xls
from the first cell.



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
Links picking up values from an older version of linked file Cate Links and Linking in Excel 4 October 20th 05 01:53 PM
Reference a cell on another worksheet in the same spreadsheet file Dave Excel Discussion (Misc queries) 3 May 17th 05 08:55 PM
Locating a file in excel with a partial file name. Audra Excel Discussion (Misc queries) 0 February 19th 05 02:03 PM
Locating a file in excel with a partial file name. Audra Excel Discussion (Misc queries) 0 February 19th 05 02:01 PM
Automatically change tab reference TWC Excel Discussion (Misc queries) 2 February 2nd 05 10:17 PM


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