[QUOTE=Joey P]
I’m not sure what CTRL-1 does, but I’ll try it. About that though, it’s pretty strightfoward, I’ve got two cells, let’s say B1 and B2 both are set to text, B2 contains the function VALUE(B1). If B1 contains “43” so will B2, if it contains “102,3,4” B2 will give me an error. If I think of it, I’ll try putting plain old text (ie “HELLO WORLD”) and we’ll see what happens.
As for the other part…That would probably work, except, I’ve got over a thousand (and counting) files. One or two per day for the last several years. If I could start over (and I’m still debating changing over to this) I would have had one file for each month, with one tab for each day. That way I could have a final tab with totals and/or averages on it. So what I was hoping for is a method, like your’s, but that I could tell excel to find every excel file in a given directory and extract a specific cell out of it.
[/QUOTE]
You can do what you want with macros, but directly, it’s hard. You might take a look at the “INDIRECT” function. If you have the text “B3” in cell A1, then
=INDIRECT(A1)
will return whatever is in B3.
To refer to a closed file, you use something like
=‘Macintosh HD:Users:bob:Desktop:[junk1.xls]Sheet1’!A1
on the Mac, and the same on the PC with slashes for the directory separators.
So in cell C1, put the full directory text
'Macintosh HD:Users:bob:Desktop:
In cell C2, put the workbook name
[junk1.xls]
In cell C3, put the sheet name and cell address
Sheet1’!A1
In cell C4, combine them with the formula
=C1 & C2 & C3 & C4
This gives you the full address of what you want to get, built up out of the component parts. The advantage is that you can change any part, and get a full address out of it.
Then in cell C5, put
=INDIRECT(C4), and it will give you the value of that cell in that file in that directory.
Replicate this horizontally, change the names of the workbooks, and you have it.
Regards,
w.
PS - There’s an easier way than the one TomCat explained for linking to a cell on another worksheet. Simply type “=” into a cell, switch to the other worksheet, and click on the cell you want to link to.