This is the spreadsheet in question.
I need to calculate the FTEs (employee full time equivalents) for multiple projects, over time. Employees keep changing number of week-hours over time (sheet "Employees Import"), with maximum week hours is 40. So someone working 40 hrs a week has a FTE of 1.
I'm trying to write a formula that would fill the yellow cells. I don't think it's possible to be achieved using array formulas, so I don't have a problem with copying the formula for each week and each project. But the challenge for me is to do the sumproduct operation that includes a VLOOKUP with Employee match AND date between match at the same time. Maybe someone can help out.
EDIT: I've had a bit success with this formula:
=SUMPRODUCT({K19:K21}; ARRAYFORMULA(VLOOKUP($F19:$F21; SORT( FILTER({'Employees Import'!$A$1:$A\'Employees Import'!$E$1:$E\'Employees Import'!$F$1:$F\'Employees Import'!$G$1:$G}; ('Employees Import'!$F$1:$F<K$4)*( IF('Employees Import'!$G$1:$G=""; DATE(2030;12;31); 'Employees Import'!$G$1:$G) >K$4) ) ) ; 2)))/40