Use Cell Value In File Path

mouse88

Board Regular
Joined
May 24, 2011
Messages
148
I am using the following formula throughout 12 workbooks:

=INDEX('C:\Test\01.06.11\[SUMMARY.xlsm]CC'!$D:$D, MATCH(A68, 'C:\Test\01.06.11\[SUMMARY.xlsm]CC'!$C:$C, 0) + 0)

Is there any way I can get the formula to take the date '01.06.11' from a cell in the workbook.

Currently I have 12 workbooks and each has about 2000+ of these formulas. When I want to set them up for a new month I have to do a find & replace on them to change the month in the date and this takes far too much time.

Any advice appreciated.

Thanks
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Sorry, that was wrong

This should be it

Code:
=INDEX("C:\Test\"&A1&'\[SUMMARY.xlsm]CC'!$D:$D, MATCH(A68, "C:\Test\"&A1&'\[SUMMARY.xlsm]CC'!$C:$C, 0) + 0)
 
Last edited:
Upvote 0
Have just tried and does not work.

I get a #REF error and where it has the workbook name in the formula it defaults that to show the c:\ drive before it.

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

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