Linking to Worksheets named in cells

Steve123

New Member
Joined
Apr 24, 2002
Messages
2
I have a sheet listing workbooks in column A, what i want to do is extract data from the same cell in each workbook
ie
=[Book1.xls]Sheet1!$D$5
=[Book2.xls]Sheet1!$D$5

Is there a way to format the Sheet name cells so they can be added to that formula, an extract function or does it have to be done by VB ?

nb: there are 2000+ Worksbooks that i need to extract the data from an identical cell (D5)from

Cheers
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Howdy,

The formulation approach is use of the INDIRECT function. Since you already have the file and cell reference in A you would use : =INDIRECT(A2) for example - although you may need the full path of the file listed.

Sadly there's a nasty drawback to INDIRECT with filenames: the files need to be OPEN for the INDIRECT to recognize the link - might be a serious problem if your dealing with a large number of files.

Anyone have a VBA solution?

Adam
 
Upvote 0
Cheers Adam,
I'm trying to avoid opening all the workbooks though - once i've done that, i may as well cut n paste the value from D5 into the master file
 
Upvote 0

Forum statistics

Threads
1,213,517
Messages
6,114,089
Members
448,548
Latest member
harryls

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