I am in a similar situation. I have 22 columns, near the top of which I have input text entailing what the columns represent.
For example:
"A3" = Apples , "B3" = Bananas , "C3" = Carrots , etc...
Each column is in reference to a different workbook (each with only 1 critical sheet, labeled "Sheet1"). I need to make a formula to reference certain cells in the workbooks with titles corresponding to the column titles here.
Stipulation: The referenced cell coordinates can't be locked in an outside cell (with the use of INDIRECT() to select them), which means that when I copy the final formula in "A10" to the cells "A11 - A15" the reference will need to adjust itself from [Carrots.xls]Sheet1!M20 in "A10" to '[Carrots.xls]Sheet1'!M21 - M25 in "A11 - A15".
The space above the column titles (rows 1 - 2) can be used to determine the target workbook (based on the column titles).
So, if I've lost you at this point, let me attempt a visual aid:
| A | B | C |
3 | Apples | Bananas | Carrots |
4 | "M10" | "M10" | "M10" |
5 | "M11" | "M11" | "M11" |
6 | "M12" | "M12" | "M12" |
For the sake of specifics, the cells of the other workbooks are in quotes"" in the cells where the appropriate formula needs to be. So, the hand-typed formula of "B5" would be "='[Bananas.xls]Sheet1'!M11" . What I'm looking to do here is to use a formula that will adjust to changes I may make to the column titles.
For example: If I change "B3" to "Carrots" and "C3" to "Bananas" , I need the reference of "B5" to change to ""='[Carrots.xls]Sheet1'!M11" .
I hope I haven't left anything out. Forgive me for being all over the place in this post. I would appreciate any help I can get.
Thanks,
Jeremy