How to set dynamic formula to get value from list of filename?

London12F

Board Regular
Joined
Jun 21, 2016
Messages
59
There is a list of filenames at Column A, say File A1, File A2, File A3 ...
How to set the formula at Column B so that it can get the value of A1 of files
i.e. Cell B1 can get the value of A1 for filename at Cell A1;
Cell B2 can get the value of A1 for filename at Cell A2;

NB: the path for the value of A1 of File A1 is:

='C:\Users\DK-01\Desktop\[File A1.xlsx]Sheet1'!$A$1
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Upvote 0
Hi James006,

Yes, I need formula at column B,

e.g. cell A1 = File A1;
formula at B1 = "'C:\Users\DK-01\Desktop\[" & A1 & ".xlsx]Sheet1'!$A$1"
cell A2 = File A2;
formula at B2 = "'C:\Users\DK-01\Desktop\[" & A2 & ".xlsx]Sheet1'!$A$1"
 
Upvote 0
Hi again,

Formula in cell B1 = "'C:\Users\DK-01\Desktop\[" & Indirect(A1) & ".xlsx]Sheet1'!$A$1"

Hope this will help
 
Upvote 0
What does not work ...????

What is the output of cell B1 .... once you input the formula ...???
 
Upvote 0
OK ...

Can you tell what following formula produces at your end ...

= "'C:\Users\DK-01\Desktop\[" &A1& ".xlsx]Sheet1'!$A$1"
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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