I don't have the English version of Excel, so some English terms I use may be unusual or incorrect. Please bear with me.
I'd like to make refrenses (or links) and lookups to other Excel files, but I need to define the actual filename in another cell in the referensing spreadsheet.
I try to clarify with a couple of very simple examples. Say I have two Excel files, Master.xls and Slave.xls. Normally in the Master.xls I would make a link to cell C4 in Slave.xls as follows:
='C:\Foldername\[Slave.xls]Sheetname'!$C$4
That works. However, instead of writing the [Slave.xls] in the formula itself, I would like it to look up the filename from another cell in the Master.xls.
I know the following doesn't work, but it maybe gives a picture of what I'm asking for:
='C:\Foldername\[[A2].xls]Sheetname'!$C$4
...and A2 would contain the text "Slave". Is there a way to format it so that it works? Couldn't find it from the helpfiles or searching this site (and others).
Also acceptable (but not preferred) would be that the cell A2 contains the whole filename including the .xls extension, such as "Slave.xls" instead of just "Slave".
I'd like to make refrenses (or links) and lookups to other Excel files, but I need to define the actual filename in another cell in the referensing spreadsheet.
I try to clarify with a couple of very simple examples. Say I have two Excel files, Master.xls and Slave.xls. Normally in the Master.xls I would make a link to cell C4 in Slave.xls as follows:
='C:\Foldername\[Slave.xls]Sheetname'!$C$4
That works. However, instead of writing the [Slave.xls] in the formula itself, I would like it to look up the filename from another cell in the Master.xls.
I know the following doesn't work, but it maybe gives a picture of what I'm asking for:
='C:\Foldername\[[A2].xls]Sheetname'!$C$4
...and A2 would contain the text "Slave". Is there a way to format it so that it works? Couldn't find it from the helpfiles or searching this site (and others).
Also acceptable (but not preferred) would be that the cell A2 contains the whole filename including the .xls extension, such as "Slave.xls" instead of just "Slave".