ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   variable substitution in a formula linking to external workbook (https://www.excelbanter.com/excel-discussion-misc-queries/149797-variable-substitution-formula-linking-external-workbook.html)

my

variable substitution in a formula linking to external workbook
 
Hi,

I'm trying to link to an external workbook. Let's say the formula is:

G:\2007\2007 Jun\blah.xls

I would like to be able to change "Jun" by referencing a cell. I've read
that the Indirect function cannot be used to reference an external workbook
without it being open. I can't open my external workbook b/c it has the same
file name as the one I'm working on (but they are located in difference
folders, thus, needing to change "Jun" each month). Is there a way to do
this?

Thanks in advance for any help.


Dave Peterson

variable substitution in a formula linking to external workbook
 
Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that may help you.

my wrote:

Hi,

I'm trying to link to an external workbook. Let's say the formula is:

G:\2007\2007 Jun\blah.xls

I would like to be able to change "Jun" by referencing a cell. I've read
that the Indirect function cannot be used to reference an external workbook
without it being open. I can't open my external workbook b/c it has the same
file name as the one I'm working on (but they are located in difference
folders, thus, needing to change "Jun" each month). Is there a way to do
this?

Thanks in advance for any help.


--

Dave Peterson

[email protected]

variable substitution in a formula linking to external workbook
 
I downloaded the formulas, but I am getting an error. I can't see the
mistake in using the INDIRECT.EXT formula. Can anyone with experience
tell me by looking why this would be incorrect?

=INDIRECT.EXT("'W:\Transportation\Overseas Operatations\FCA\FCA
Reports and Updates\FCA In Transit Reports\["&TEXT(B2,"yyyy.mm.dd")&"
FCA in transit report SZH.xls]Po List'!$A$3")

It works when the reference sheet is open, but returns the #VALUE!
error when I close that sheet...



All times are GMT +1. The time now is 08:43 PM.

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