ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Indirect Reference to Other files (https://www.excelbanter.com/excel-discussion-misc-queries/99073-indirect-reference-other-files.html)

Danny Lewis

Indirect Reference to Other files
 
Good Afternoon

I wonder if someone out there can help me.

Say, in cell A1 is the formula:
='A:\Folder1\Folder2\[File1.xls]DATA'!$A$4

Is it possible to change this using the INDIRECT function (or otherwise)?

i.e. if in B1 I put
Folder3

Is there a formula I can put in A1 which is like the one above that
references automatically what is in B1?

e.g. (and I know this is wrong)
='A:\Folder1\INDIRECT(B2)\[File1.xls]DATA'!$A$4


Special-K

Indirect Reference to Other files
 

Why dont you just use CONCATENATE, something like e.g.

=CONCATENATE('A:\Folder1\',B2,'\[File1.xls]DATA')!$A$4


--
Special-K
------------------------------------------------------------------------
Special-K's Profile: http://www.excelforum.com/member.php...fo&userid=7470
View this thread: http://www.excelforum.com/showthread...hreadid=561101


Ardus Petus

Indirect Reference to Other files
 
=INDIRECT("'A:\Folder1\Folder2\"&B1&"\[File1.xls]DATA'!$a$4")

HTH
--
AP

"Danny Lewis" <Danny a écrit dans le
message de news:
...
Good Afternoon

I wonder if someone out there can help me.

Say, in cell A1 is the formula:
='A:\Folder1\Folder2\[File1.xls]DATA'!$A$4

Is it possible to change this using the INDIRECT function (or otherwise)?

i.e. if in B1 I put
Folder3

Is there a formula I can put in A1 which is like the one above that
references automatically what is in B1?

e.g. (and I know this is wrong)
='A:\Folder1\INDIRECT(B2)\[File1.xls]DATA'!$A$4




Danny Lewis

Indirect Reference to Other files
 
That will only come out with the text of the link

"Special-K" wrote:


Why dont you just use CONCATENATE, something like e.g.

=CONCATENATE('A:\Folder1\',B2,'\[File1.xls]DATA')!$A$4


--
Special-K
------------------------------------------------------------------------
Special-K's Profile: http://www.excelforum.com/member.php...fo&userid=7470
View this thread: http://www.excelforum.com/showthread...hreadid=561101



Danny Lewis

Indirect Reference to Other files
 
Ardus that didn't work mate

"Ardus Petus" wrote:

=INDIRECT("'A:\Folder1\Folder2\"&B1&"\[File1.xls]DATA'!$a$4")

HTH
--
AP

"Danny Lewis" <Danny a écrit dans le
message de news:
...
Good Afternoon

I wonder if someone out there can help me.

Say, in cell A1 is the formula:
='A:\Folder1\Folder2\[File1.xls]DATA'!$A$4

Is it possible to change this using the INDIRECT function (or otherwise)?

i.e. if in B1 I put
Folder3

Is there a formula I can put in A1 which is like the one above that
references automatically what is in B1?

e.g. (and I know this is wrong)
='A:\Folder1\INDIRECT(B2)\[File1.xls]DATA'!$A$4





Ardus Petus

Indirect Reference to Other files
 
File1.xls must be opened.
Otherwise, no way!

HTH
--
AP

"Danny Lewis" a écrit dans le message
de news: ...
Ardus that didn't work mate

"Ardus Petus" wrote:

=INDIRECT("'A:\Folder1\Folder2\"&B1&"\[File1.xls]DATA'!$a$4")

HTH
--
AP

"Danny Lewis" <Danny
a écrit dans le
message de news:
...
Good Afternoon

I wonder if someone out there can help me.

Say, in cell A1 is the formula:
='A:\Folder1\Folder2\[File1.xls]DATA'!$A$4

Is it possible to change this using the INDIRECT function (or
otherwise)?

i.e. if in B1 I put
Folder3

Is there a formula I can put in A1 which is like the one above that
references automatically what is in B1?

e.g. (and I know this is wrong)
='A:\Folder1\INDIRECT(B2)\[File1.xls]DATA'!$A$4







Danny Lewis

Indirect Reference to Other files
 
Ahhh I opened the file and it worked. That's excellent thanks very much.

"Ardus Petus" wrote:

File1.xls must be opened.
Otherwise, no way!

HTH
--
AP

"Danny Lewis" a écrit dans le message
de news: ...
Ardus that didn't work mate

"Ardus Petus" wrote:

=INDIRECT("'A:\Folder1\Folder2\"&B1&"\[File1.xls]DATA'!$a$4")

HTH
--
AP

"Danny Lewis" <Danny
a écrit dans le
message de news:
...
Good Afternoon

I wonder if someone out there can help me.

Say, in cell A1 is the formula:
='A:\Folder1\Folder2\[File1.xls]DATA'!$A$4

Is it possible to change this using the INDIRECT function (or
otherwise)?

i.e. if in B1 I put
Folder3

Is there a formula I can put in A1 which is like the one above that
references automatically what is in B1?

e.g. (and I know this is wrong)
='A:\Folder1\INDIRECT(B2)\[File1.xls]DATA'!$A$4









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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com