cell value to be reference for saved file name

JPHenning

Board Regular
Joined
Jun 5, 2008
Messages
189
Hello,

Is it posible to have the name of a saved .xls file for instance "Jan P L" in a cell

and then link this with the formular in a the same workbook so if the cell name changes say to "Feb P L" it will look at the new file and update the information on the sheet.

I can link the two files so that it looks at the correct file with this formula in the cell but if i need it to change Month I cannot get it to work as I need to set the formula to change the reference file name.

='C:\Users\User name\Desktop\[Jan PL.xls]Sheet1'!$F$10

Thank you for your time
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi,

Maybe something like this;

=INDIRECT("'C:\Users\User name\Desktop\["&A1&".xls]Sheet1'!$F$10")

Assuming the workbook variable is on A1
 
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,937
Members
448,534
Latest member
benefuexx

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