F3: =IFERROR(OFFSET('r2'!$G$1,SUMPRODUCT((Date='r1'!F$1)*(Employee_ID='r1'!$A2),ROW(Employee_ID))-1,0),0)
and copy across
and
F6: =IFERROR(OFFSET('r2'!$G$1,SUMPRODUCT((Date='r1'!F$1)*(Employee_ID='r1'!$A5),ROW(Employee_ID))-1,0),0)
Copy across
Then copy Row 6 to Rows 9, 12,15 etc