Forum Discussion
JMW89
Oct 26, 2021Copper Contributor
File name in a formula.
Is there a way to refer to an Excel file in a formula by using the content of a specific cell ? In the cell G48, I'm entering manually the file name but I would like to take the content of the...
HansVogelaar
Oct 26, 2021MVP
You can use the INDIRECT function for this, but it will only work if the other workbook is open in Excel. INDIRECT does not work with closed workbooks.
The formula would look like this:
=INDIRECT("'["&A48&".xlsx]Fiche'!B7")
Note that the path is not mentioned in the formula since the other workbook must be open.