Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Variable in a filename reference in Excel 2000
I am working on a spreadsheet that compiles data from other spreadsheets. I refer to data in the other spreadsheets with a formula like the one below: =[filename.xls]Sheet1!$B$1 I would like to have a cell where I could change the filename, and have all of cells that use that filename change. In other words, I would like to have a variable in the formulas that refers to the file, like this: =["variable".xls]Sheet1!$B$1 So I could specify that the variable is filename1, run my calculations, then specify that the variable is filename2 and run the next set of calculations, and so on. Is this possible? If so, how do you do it? Thanks for your help! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Variable in a filename reference in Excel 2000
You'd want to use the =indirect() function, but that only works when the
"sending" workbook is open. But Harlan Grove wrote a UDF called PULL that will retrieve the value from a closed workbook. You can find the function at Harlan's FTP site: ftp://members.aol.com/hrlngrv/ Look for pull.zip Laurent Longre has an addin (morefunc.xll) at: http://xcell05.free.fr/ That includes =indirect.ext() that may help you. pdabill wrote: I am working on a spreadsheet that compiles data from other spreadsheets. I refer to data in the other spreadsheets with a formula like the one below: =[filename.xls]Sheet1!$B$1 I would like to have a cell where I could change the filename, and have all of cells that use that filename change. In other words, I would like to have a variable in the formulas that refers to the file, like this: =["variable".xls]Sheet1!$B$1 So I could specify that the variable is filename1, run my calculations, then specify that the variable is filename2 and run the next set of calculations, and so on. Is this possible? If so, how do you do it? Thanks for your help! -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cell Protection over Excel 2000 and 2003 | Excel Discussion (Misc queries) | |||
How do I create a List in Excel 2000 | Excel Worksheet Functions | |||
Activate method of Worksheet class fails in Excel 2000 | Excel Discussion (Misc queries) | |||
Value Errors with EXCEL XP not showing up in EXCEL 2000 | Links and Linking in Excel | |||
how to convert GETPIVOTDATA from excel 2000 to excel 2002... | Excel Worksheet Functions |