How to get named cell values in other workfiles that change name and location

ramseydk

New Member
Joined
Jan 12, 2015
Messages
26
Hi,

I'm sure this is simple, but I can't get it to work. I have a number of different workfiles that change name and location every month. I am trying to make a file that automatically pulls in the value in a named cell from each file.

I have a list of the file names which I then combine with the appropriate folder names through &"..."& etc.

In other words, I now have a list with 7 text strings that are referring to the correct file names and locations, but I can't get Excel to extract the value:

This is an example of a complete text string in cell A1, which is specifying the location as O:\FINANCE\Monthly\2021\05\Praxis\, the file name as Account 847010.xlsx and the named cell as Balance_spec

'O:\FINANCE\Monthly\2021\05\Praxis\Account 847010.xlsx'!Balance_spec

However, if I go to cell B1 and enter =A1 I can only get Excel to write the text string again. I need it to "execute" the string and actually retrieve the value from the file in that location without opening the file.

I would prefer if this could be done without macros, but if not, I'll take the macro. Please just bear in mind that it has to be a flexible solution where names and locations change every month.

Thanks a lot in advance,

Naomi
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,141,863
Messages
5,709,053
Members
421,611
Latest member
Lisa W

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
Top