#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default Indirect

I want to create a workbook which reads the value from a particular named
range (Test) in a number of workbooks.

The actual formula is:

='Y:\Testing\TestSource001.xls'!Test

I would like to build this formula and then read the value using the
Indirect function but cannot seem to get Indirect to work on anything other
than on a worksheet level.

Does Indirect work for external links? I can find nothing which says it has
this limitation, but I cannot find any examples of external links.

Paul Smith


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Indirect

"Paul W Smith" wrote...
....
The actual formula is:

='Y:\Testing\TestSource001.xls'!Test

....
Does Indirect work for external links? . . .

....

The simple answer is NO.

The nuanced answer is yes, but only for external references into OPEN
workbooks. Unless you'd have ALL these other workbooks open in the
same Excel session (process), INDIRECT won't work for this.

Try the following.

1. Put a list of the relevant file pathnames into a single column
range, e.g., A3:A20.

2. Enter the following formula corresponding to the topmost file's
pathname, e.g., in B3 corresponding to A3.

="='"&A3&"'!Test"

3. Fill this formula down so there's a like formula for every file,
e.g., fill B3 down into B4:B20. These formulas should produce text
strings that look like external reference formulas.

4. Select the range of formulas (B3:B20), copy, and paste special as
values on top of itself. Now you should have text CONSTANTS that look
like external reference formulas.

5. With this range still selected, run Edit Replace, replacing =
with = (yes, replacing the = character with itself). This effectively
enters all these text constants as formulas.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default Indirect

Thanks Harlan,

Excellent solution... I have no idea how it works but it does - thanks.




"Harlan Grove" wrote in message
...
"Paul W Smith" wrote...
...
The actual formula is:

='Y:\Testing\TestSource001.xls'!Test

...
Does Indirect work for external links? . . .

...

The simple answer is NO.

The nuanced answer is yes, but only for external references into OPEN
workbooks. Unless you'd have ALL these other workbooks open in the
same Excel session (process), INDIRECT won't work for this.

Try the following.

1. Put a list of the relevant file pathnames into a single column
range, e.g., A3:A20.

2. Enter the following formula corresponding to the topmost file's
pathname, e.g., in B3 corresponding to A3.

="='"&A3&"'!Test"

3. Fill this formula down so there's a like formula for every file,
e.g., fill B3 down into B4:B20. These formulas should produce text
strings that look like external reference formulas.

4. Select the range of formulas (B3:B20), copy, and paste special as
values on top of itself. Now you should have text CONSTANTS that look
like external reference formulas.

5. With this range still selected, run Edit Replace, replacing =
with = (yes, replacing the = character with itself). This effectively
enters all these text constants as formulas.



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
Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions Mike Barlow Excel Worksheet Functions 7 May 21st 23 07:42 PM
INDEX("a"&COLUMNS(INDIRECT(A1):INDIRECT(A2)):A30,4) Dave F[_2_] Excel Discussion (Misc queries) 3 September 20th 07 08:36 PM
Help with INDIRECT Spreadsheet Excel Worksheet Functions 3 June 7th 06 06:22 PM
#REF using =INDIRECT... frustratedwthis Excel Worksheet Functions 5 May 31st 06 07:28 PM
Indirect.ext #value! Stuartf Excel Discussion (Misc queries) 3 May 24th 06 12:00 PM


All times are GMT +1. The time now is 03:18 AM.

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"