Hi all,
I am trying to make a VLookup which goes and finds data from a closed workbook.
In my master spreadsheet, "Well Estimates", I ask the user to enter a date. This is cell A1.
This date has a specific daily report which is in C:\Folder\ for arguments sake.
The file name is called DRyymmdd.xls where yymmdd is variable based one the year, month and day of the report.
The range in the daily report from which I want to obtain information for is R4:V57 in sheet "Supplement Report"
The thing I am looking for is in column 4 of the array. The VLookup looks at the first column based on "IDT 2".
In cell P1 of "Well Estimates" I have written the following code which automatically updates the above into a path to that range of cells. I think I have done this right:
="'O:\Engineering\Kutubu\Production Actuals\Daily Production\"&YEAR($A$1)&"\"&TEXT($A$1,"mmmm")&"\[DR"&TEXT($A$1,"yymmdd")&".xls]Supplement Report'!$R$4:$V$57"
Which returns:
'O:\Engineering\Kutubu\Production Actuals\Daily Production\2009\November\[DR091127.xls]Supplement Report'!$R$4:$V$57
Next, I tried to write the vlookup:
VLOOKUP("IDT 2", INDIRECT(P1), 4, FALSE)
But I get a #REF because the worksheet is not open.
Is there any way around this from what I have mentioned above?
Thank you![]()
Bookmarks