MixedUpExcel
Board Regular
- Joined
- Apr 7, 2015
- Messages
- 222
- Office Version
- 365
- Platform
- Windows
Hi,
This should be straight forward but I can't see what I'm missing.
On Sheet 1 in Cell O4 I have the name of a Workbook (not the one I'm in) but it is open.
On Sheet 2 I have the name of the current Sheetname in Cell P1 (which will be identical sheet on the Workbook I have the name of in Cell O4 on Sheet1)
I am currently in a cell on Sheet2 and want to reference the Workbook name from Sheet1 and the Sheetname from Sheet2
I am trying to use Indirect as both the Workbook name and Sheetname can change in the future.
This is the formula I have but I can't see what I'm missing:
I know that it should look like this when it pulls through the data:
Please can you someone advise.
Thanks in advance.
Simon
This should be straight forward but I can't see what I'm missing.
On Sheet 1 in Cell O4 I have the name of a Workbook (not the one I'm in) but it is open.
On Sheet 2 I have the name of the current Sheetname in Cell P1 (which will be identical sheet on the Workbook I have the name of in Cell O4 on Sheet1)
I am currently in a cell on Sheet2 and want to reference the Workbook name from Sheet1 and the Sheetname from Sheet2
I am trying to use Indirect as both the Workbook name and Sheetname can change in the future.
This is the formula I have but I can't see what I'm missing:
Code:
=INDIRECT("'["&Sheet1!O4&"]"&P1&"'!"&C9)
I know that it should look like this when it pulls through the data:
Code:
='[Workbookname.xlsx]currentsheetname '!$C$9
Please can you someone advise.
Thanks in advance.
Simon