Based on the formula kindly provided by rylo, I have managed to get the basic function working.
I have now named ranges in Workbook2 (TempAssignReport.xls) and can get the SUMPRODUCT function to return the correct values in Workbook1 using these named ranges. I'm surprised this has actually worked. SUMPRODUCT appears to use Arrays and I have NO knowledge of working with Arrays. I took a punt which appeared to pay off at first.
How do I get this to do the same thing in VBA? I believe I need to use "Evaluate" but I seem to only return a value of "False" even for the value I know to be "True".
This is what I have been using. Could someone please point out where I am going wrong?
In Workbook1, V2:
Note: the named ranges are:
PersNo: =TempAssignReport!$A$1:$A$5
StartDate: =TempAssignReport!$C$1:$C$5
EndDate: =TempAssignReport!$D$1:$D$5
Any assistance is much appreciated.
Bookmarks