UpdateLinks directory location problem

Brian.Crawford

Board Regular
Joined
Oct 3, 2007
Messages
136
I am updating a Workbook from other workbooks (about 10 workbooks with about 200rows by 40columns each to sum up) using links such as (in each cell)

='M:\Development\BC\Test1\[400_Financial_Submission.xlsm]400'!$L$10 + 'M:\Development\BC\Test1\[500_Financial_Submission.xlsm]500'!$L$10
+ 'M:\Development\BC\Test1\[600_Financial_Submission.xlsm]600'!$L$10 etc. etc.

For flexibility (and bevity) I would like the directory part of the above to be stored in a cell (or range name) and append it to the worbook, sheet and range part. I have tried various things but cannot seem to get it to work. It doesn`t seem like my appending the direcory part to the book/sheet/range part... not sure how to do this.

Given that each linked cell is going to consist of the sum of 10 ranges, 1 per workbook/sheet, (ie 10 of the above +`s per cell) is there a simplier approach. All the workbooks to be summed are in the same folder if that helps at all. Also the 1st part of the file name (ie 400) corresponds to the worksheet name I get the data from.

Advice much appreciated
Brian
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try for example

=INDIRECT("'&A1"&"\[400_Financial_Submission.xlsm]400'!$L$10")

where A1 contains the path without the final \.
 
Upvote 0
Could I include everything up to & incuding the sheet name

something like

ie =INDIRECT("'&A1" & "!$L$10")

where A1 =" 'M:\Development\BC\Test1\[400_Financial_Submission.xlsm]400' "

not sure I understand the single quote in the part ("'&A1"


your original suggestion
=INDIRECT("'&A1"&"\[400_Financial_Submission.xlsm]400'!$L$10")
where A1 contains the path without the final \.
Thanks
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,522
Members
452,923
Latest member
JackiG

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