I have a rectangular array of cells in one Excel file that I want to refer to in a vlookup function in another file. Unfortunately, the array is dynamic, since I am constantly adding data lines to it.
When the referred-to file is open, everything is okay. I have a cell in that file which contains the range of the array, and changes as the array changes. This cell could be cell K1 in the first file, and contains the text "A1.J32". Then in the second file I have a cell D1 containing the text: "D:\Spreadsheets\[FirstFile]Sheet1!A1.J32" which uses the information from cell K1 in the first file.
I then do my vlookup: Vlookup(x,indirect(D1),5). This works fine if the file Firstfile is open, but if I close it, then I get a #REF! in the vlookup cell in the second file.
Anyone know how (or if) I can do the lookup with the first file closed?
When the referred-to file is open, everything is okay. I have a cell in that file which contains the range of the array, and changes as the array changes. This cell could be cell K1 in the first file, and contains the text "A1.J32". Then in the second file I have a cell D1 containing the text: "D:\Spreadsheets\[FirstFile]Sheet1!A1.J32" which uses the information from cell K1 in the first file.
I then do my vlookup: Vlookup(x,indirect(D1),5). This works fine if the file Firstfile is open, but if I close it, then I get a #REF! in the vlookup cell in the second file.
Anyone know how (or if) I can do the lookup with the first file closed?