Workbook linking

matman

Board Regular
Joined
May 13, 2002
Messages
60
I have approx 100 workbooks. I have another spreasheet that is to link to each of these to look at certain cells for data. The formula used is
='[spreadsheetname.xls] sheet1'! $a$1.
I have copied and pasted all the names into column A, in column B I want to have my formula. Is there any way I can drag the formula down with the spreasheet name looking at Colomn A rather than having to type them all in. This is a task that is to be repeated anumber of times.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Use the INDIRECT function. It reads text strings as cell addresses. Therefore INDIRECT("a1") returns the contents of A1 but INDIRECT(a1) returns the contents of the cell specified by an address entered as text in A1. That is, if A1 contained "Sheet2!C1" INDIRECT(A1) would return the contents of Sheet2!C1.

Using concatenation and other tricks you can quickly construct cell or file "references" to read with INDIRECT. ie
Col A contains file names
Col B contains sheet names
Col C contains ="["A#&"]"B#&"!C2"
Col D contains =INDIRECT(C#)

This would return the contents of cell C2 on each specified sheet/workbook.

Hope this helps.
Alex
This message was edited by Alriemer on 2002-09-25 02:17
 
Upvote 0

Forum statistics

Threads
1,225,563
Messages
6,185,704
Members
453,316
Latest member
mani_mech031

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