Forum

Notifications
Clear all

Including a reference within a sheet name

4 Posts
2 Users
0 Reactions
123 Views
(@creativespirit)
Posts: 2
New Member
Topic starter
 

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

 
Posted : 15/02/2017 10:51 am
(@sunnykow)
Posts: 1417
Noble Member
 

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

 
Posted : 15/02/2017 11:56 am
(@creativespirit)
Posts: 2
New Member
Topic starter
 

SunnyKow said
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  

Hello, Thank you for your suggestion.  I believe It is exactly what I am looking for, however, it is returning #REF. Any suggestions?

Capture-1.JPG

 
Posted : 15/02/2017 4:53 pm
(@sunnykow)
Posts: 1417
Noble Member
 

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

 
Posted : 15/02/2017 7:16 pm
Share: