ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   linking workbooks based on a variable factor (https://www.excelbanter.com/excel-discussion-misc-queries/237697-linking-workbooks-based-variable-factor.html)

thedovonron

linking workbooks based on a variable factor
 
Hi,

Is it possible to have links to another file based on a variable factor
selected in the main sheet?

For example, the main file is currently linking to a JuneUK.xls file as I'm
displaying June data. If I were to change the main file to show July data (by
dropdown box and Indirect formula) is it then possible for the links to
realise that they need to be adjusted to link to a JulyUK.xls file?

Hope this is clear. Let me know if not.

Cheers!

jasontferrell

linking workbooks based on a variable factor
 
This is an example of what you would need. It references the cell in
row 2, column 3, of the Sheet1 sheet in workbook test.xls (you can
also use a path).

=INDIRECT(ADDRESS(2,3,1,TRUE,"[test.xls]Sheet1"))


Dave Peterson

linking workbooks based on a variable factor
 
The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

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

thedovonron wrote:

Hi,

Is it possible to have links to another file based on a variable factor
selected in the main sheet?

For example, the main file is currently linking to a JuneUK.xls file as I'm
displaying June data. If I were to change the main file to show July data (by
dropdown box and Indirect formula) is it then possible for the links to
realise that they need to be adjusted to link to a JulyUK.xls file?

Hope this is clear. Let me know if not.

Cheers!


--

Dave Peterson


All times are GMT +1. The time now is 04:50 AM.

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