I have the following formula:
='C:\TEST\Reports\2010\[Test Ratios.xlsx]Sheet1'!Y7
Is there a way that I can write this same formula, but for the year, have it refer to a particular cell that contains a year?
For example, let's say that cell A1 contains the year (in this case, "2010"). Is there a way to get the desired result but referece the year portion dynamically by referring to cell A1.
One idea was to use INDIRECT.
=INDIRECT("'C:\TEST\Reports\" & A1 & "\[Test Ratios.xlsx]Sheet1'!Y7"
This doesn't seem to work. Additionally, I need to keep Sheet1'!Y7 out of the quotes so that the cell reference will adjust as it is copied and pasted to other cells.
Any ideas?
Thanks,
Paul
INDIRECT doesn't work with closed workbooks... you would need to download and install a free addin from here: Morefunc and use INDIRECT.EXT instead.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks