Ref data in another file

jtodd

Board Regular
Joined
Aug 4, 2014
Messages
194
Is this possible ?
I have a work book with sheets that are linked as the link below
=S:\RDC\RDC OUTBOUND\Shift Planner 2020-2021\Week 1\[planning tracker.xls]Sunday'!$D$3
i am trying to create a master sheet so when the user changes the week number the link changes ie
Have the formula refer to a week number typed in a cell , a1 = Week 1 , when the user changes a1 to Week 2 the link changes to Week 2.
Have tried Idirect and abslolute cell refs without success ,

Can anybody help or is it a lost cause
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
An INDIRECT formula should work as long as you specify the full folder path, workbook name, sheet name and cell reference:

Suppose the Master sheet contains "Week 1", without the quotes, in A1, then:

=INDIRECT("'S:\RDC\RDC OUTBOUND\Shift Planner 2020-2021\" & Master!A1 & "\[planning tracker.xls]Sunday'!$D$3")

The above formula will return a #REF error if you open planning tracker.xls in the "Week 2" folder and Master!A1 is not "Week 2". The formula should return the correct value after you change Master!A1 to same as the 'Week n' folder that you opened the workbook from. Use the IFERROR function to prevent the #REF error:

=IFERROR(INDIRECT("'S:\RDC\RDC OUTBOUND\Shift Planner 2020-2021\" & Master!A1 & "\[planning tracker.xls]Sunday'!$D$3"),"")
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top