Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Laramie
 
Posts: n/a
Default Replaceable parameter in formula


I need to build a spreadsheet that will reference the same cell in about
300 workbooks (all Sheet1). I would like to build a list of the
workbook names in the first column, then write a formula, that I could
copy down, which would pick up the worksheet names.
For example:

_File_Name_ _Formula__
8801.xls =[ ]Sheet1!$a$1

8802.xls
8803.xls

How can I get the file name in the first column into the formula in the
second column, without all of it converting to text? In effect, I'm
trying to set up links with external files without opening each of the
files and manually linking.

Any ideas would be greatly appreciated!


--
Laramie
------------------------------------------------------------------------
Laramie's Profile: http://www.excelforum.com/member.php...o&userid=24191
View this thread: http://www.excelforum.com/showthread...hreadid=378062

  #2   Report Post  
MrShorty
 
Posts: n/a
Default


The INDIRECT function can be used to generate the formulas. However, in
theory, the INDIRECT function can only retrieve values from an open
workbook. I once downloaded an add-in from somewhere that had an
updated INDIRECT function that claimed to be able to retrieve data from
open and closed workbooks, but I don't remember where I got it from.

HTH


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=378062

  #3   Report Post  
bj
 
Posts: n/a
Default

try
if book names are in Column A starting row 3
=indirect("[" & A3 & "]Sheet1!A1)

"Laramie" wrote:


I need to build a spreadsheet that will reference the same cell in about
300 workbooks (all Sheet1). I would like to build a list of the
workbook names in the first column, then write a formula, that I could
copy down, which would pick up the worksheet names.
For example:

_File_Name_ _Formula__
8801.xls =[ ]Sheet1!$a$1

8802.xls
8803.xls

How can I get the file name in the first column into the formula in the
second column, without all of it converting to text? In effect, I'm
trying to set up links with external files without opening each of the
files and manually linking.

Any ideas would be greatly appreciated!


--
Laramie
------------------------------------------------------------------------
Laramie's Profile: http://www.excelforum.com/member.php...o&userid=24191
View this thread: http://www.excelforum.com/showthread...hreadid=378062


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula or not? Alan Excel Worksheet Functions 2 February 20th 05 03:26 PM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"