Hello,
hoping you can assist.
The logic I'm after is:
return the value of 1 if the employee was employed in a particular month however an employee can only be counted once in a month i.e. not duplicates.
If there is no actual end date then there should be a value in each month the employee is still employed, up until the expected end date.
This is what I currently have as the formula however it is not accurate:
=IFERROR(SUMPRODUCT(1/(COUNTIF($B$4:$B$3386,$B3&"")*(OR(COUNTIFS($C3,"<=31/07/2013",$E3,">=01/07/2013"),COUNTIFS($C3,"<=31/07/2013",$D3,">=01/07/2013<=$G4"),COUNTIFS($C3,"<=31/07/2013",$E3,"",$D3,">31/07/2013"))))),"")
hoping you can assist.
The logic I'm after is:
return the value of 1 if the employee was employed in a particular month however an employee can only be counted once in a month i.e. not duplicates.
If there is no actual end date then there should be a value in each month the employee is still employed, up until the expected end date.
This is what I currently have as the formula however it is not accurate:
=IFERROR(SUMPRODUCT(1/(COUNTIF($B$4:$B$3386,$B3&"")*(OR(COUNTIFS($C3,"<=31/07/2013",$E3,">=01/07/2013"),COUNTIFS($C3,"<=31/07/2013",$D3,">=01/07/2013<=$G4"),COUNTIFS($C3,"<=31/07/2013",$E3,"",$D3,">31/07/2013"))))),"")