Hello,
Is it possible to insert a cell reference within the sheet name of a formula?
Example,
Workbook 1
Sheets Canada US Mexico etc.
Workbook 2
Columns Canada US Mexico, etc.
Would like to be able to reference the column names to a cell in workbook 2 from the corresponding tab in workbook 1.
='[Workbook 1]Canada'!$J20, can I replace the sheet name with a cell reference? I have many countries to pull over, and I would rather not reference them all individually. Hope I am being clear. Is there another way?
Thanks
Hi Julie
Not too sure if I understood you but see if this is what you are looking for. In Workbook2 enter
=INDIRECT("[Workbook1.xlsx]"&C1&"!A1")
where C1 contains the word Canada.
This formula will refer to the cell A1 of the worksheet named Canada in file Workbook1.
Sunny
SunnyKow said
Hi JulieNot too sure if I understood you but see if this is what you are looking for. In Workbook2 enter
=INDIRECT("[Workbook1.xlsx]"&C1&"!A1")
where C1 contains the word Canada.
This formula will refer to the cell A1 of the worksheet named Canada in file Workbook1.
Sunny
Hello, Thank you for your suggestion. I believe It is exactly what I am looking for, however, it is returning #REF. Any suggestions?
Hi Julie
Make sure that the linked file HFM Hotel Revenue per Country B17.xlsx is open simultaneously.
When working with linked files, it is better to make sure that all related linked files are open simultaneously.
I normally do not recommend linking files as the problem associated with it can sometime out weight its benefit.
Sunny