Hi,
Not sure if this can be achieved via formula alone or whether VBA is required. However what I am looking to do is link within a formula that references a workbook which contains a date.
To add some more context, I get a new excel file daily produced from a Access database via SAS, these files contain daily volume figures that I want to reference into a capacity worksheet to measure capacity vs volume.
Note that these files I am wanting to plot in advance before they even exist for the the entire year.
The file format will be something like this 'Volumes (01JAN15).xlsx' and the to make it further complicated the day is always 1 day negative so on my capacity I would be referencing in column that is for 02/02/15 but wanting to extract data from the file that contains a date from the previous day.
Ok so if i put this into an actual formula - not necessairly the one at this stage I will use as SUMIF is not great for linking to closed workbooks but just for example at this stage.
=SUMIF('[Volumes (01JAN15).xlsx]North_Region'!$A$2:$A$16,"Volumes",'[Volumes (01JAN15).xlsx]North_Region'!$C$2:$C$16)
I have tried putting the dates in excel cells above the columns that my formula is contained in and referring it is as a cell so something like
=SUMIF("'[Volumes"&"(A3)"&".xlsx]North_Region'"!$A$2:$A$16,"Volumes","'[Volumes"&"(A3)"&".xlsx]North_Region'"!$C$2:$C$16)
Where (A3) = (01JAN15)
Which unfortunately did not work. I am also wondering if I will need to use something like (IF(ISERROR(my formula)),"-",(my formula)) as the files will not exist until that date occurs.
Any help would be greatly appreciated as this could save me considerable time and also I think it raises an interesting topic which I have not been able to find any posts on the web anywhere about.
Bookmarks