taylorreportingsolutions
New Member
I have a summary tab that shows 52 weeks worth of data. The formulas in each of the weekly columns link to that week's file, so 52 columns means the file links to 52 outside files. The formulas in each column are vlookup formulas. Right now, I copy the formula for week one, paste it in each of the remaining weeks and then find and replace the date part of the file path. So I highlight week two and replace all the occurrences of "1.6.12" with "1.13.12" in the file path name. I do this 52 times each time I build a file for a new client. I feel like I should be able to make the array part of each vlookup dynamic so I don't have to manually find and replace to update the date of each week.
So here's my question: Can the array part of a vlookup formula refer to a cell that includes the file path? Let's say I put a formula in cell A2 that generates the text of my file path. Then I want my vlookup formula to read: =VLOOKUP("b",A2,2,FALSE) but this doesn't work. If I paste the contents of A2 into my formula in the spot for the array, it works, but a reference to A2 doesn't work.
Thoughts?
So here's my question: Can the array part of a vlookup formula refer to a cell that includes the file path? Let's say I put a formula in cell A2 that generates the text of my file path. Then I want my vlookup formula to read: =VLOOKUP("b",A2,2,FALSE) but this doesn't work. If I paste the contents of A2 into my formula in the spot for the array, it works, but a reference to A2 doesn't work.
Thoughts?