Referencing an external worksheet in an indirection through a separate tab

Copper Contributor

I have a workbook with a worksheet (tab) named West, and a worksheet named DBname.  Cell A1 of worksheet DBname contains the name of another workbook named Foobar.xlsx.  In cell I4 of the West worksheet I want to use the contents of DBname!A1 to identify that external workbook, and resolve the path to a tab named 'DatabaseName' and cell A1 in that workbook.  Cell A1 in tab DatabaseName in Foobar.xlsx contains "This is the database".   DBname!A1 contains "Foobar.xlsx'.  In summary, West!I4 wants to use the contents of cell A1 in the DBname tab as the name of another workbook, and wants to pull the contents of cell A1 in the tab DatabaseName and display that as the resolved value of cell I4.

So, West!I4 needs to contain something like "=['DBname'!A1]DatabaseName!$A$1".  But Excel reports that "['DBname' is not valid".   By the way, this is in Excel 2011 on Mac.

 

2 Replies
I notice the above is with a closed workbook.
both of my tabs are in the same workbook, it's like my formula won't save. when it auto saves I lose it. Or if I save it and close it and reopen it the formulas are gone.