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
 
Hi Jame006,

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

If part of value of formula is copied, i.e. 'C:\Users\DK-01\Desktop\[File A1.xlsx]Sheet1'!$A$1
and add = at front, the cell is not #Ref and value appears.
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
OK ...

Is this result what you actually expected or not ...???
 
Upvote 0
Hi James006,

Your formula, = "'C:\Users\DK-01\Desktop\[" &A1& ".xlsx]Sheet1'!$A$1", can only give the result of
'C:\Users\DK-01\Desktop\[File A1.xlsx]Sheet1'!$A$1

but cannot give the value.

I have to copy (VALUE ONLY) and add = at front manually to give the value.
 
Upvote 0
Hi,

Is the file where you want to take the value from ... is already opened ...?
 
Upvote 0
Hi James006,

The files are closed, as there are plenty of files that I want to extract their value of A1 only.
 
Upvote 0
Hi James006,

The files are closed, as there are plenty of files that I want to extract their value of A1 only.

Sorry ...

But we are back to square 1 ...

and you should use the solution provided in message # 2

Good Luck :smile:
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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