Dynamic path links to other workbooks

GerrypFL

New Member
Joined
Jul 1, 2020
Messages
6
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
I have created a folder with various sub-folders which contain a variety of workbooks on a thumb drive. I have a master workbook in the root folder and would like to create dynamic links to the the workbooks in those sub-folders.

The reason for the dynamic links is that when the thumb drive is moved to a different PC the associated drive letter changes. (additionally if the root folder and all sub-folders is copied from the thumb drive to a hard drive the associated path is changed.

In the master workbook my vision is to create a dynamic path to the respective workbooks in the various sub-folders and that concatenated path would be used along with the sheet name which I would want to retrieve the data from.

I am having issue writing a formula that would allow me to insert a dynamic link instead of a fixed path.

This fixed path works to retrieve data from one of the files in the sub-folder of "proposed". =IF(+'[_Contract Details.xlsx]Current'!$C5="","",+'[_Contract Details.xlsx]Current'!$C5) (Full path see attached image below)
2022-05-19_13-03-52.jpg


My Concatenated formula in cell G4, for the file path is =(CONCATENATE('READ ME FIRST (INDEX)'!$A$7,"\",'Employee Contracts'!$F$4,"[",'Employee Contracts'!$F$6,"]","current!"))

This concatenation gives me the following path C:\Users\gerryp\Documents\proposed\Employee Contracts\[_Contract Details.xlsx]current!

I have the _Contract Details.xlsx file open yet I get a #REF! in the field where I have this formula. =INDIRECT(G4 &ADDRESS(ROW(A2),COLUMN(A3)))

Is there a formula string that I can utilize that would give me the ability to embed the dynamic path reference and the source file worksheet cell? I would also like to drag the formula down and over a few rows and columns without the need to manually change the cell addresses.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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