pterribilis
New Member
- Joined
- Dec 11, 2017
- Messages
- 1
Hi All,
I am struggling at this stage and have been resisting having this created in a database but sometimes it is hard to convince your employer to move away from spreadsheets. With that said, I would be most appreciative if someone could help me figure this out:
=((F$1-IFERROR(MAX(0,NETWORKDAYS(MAX(F$2,INDEX(leave_from,MATCH($B3,leave_person,0))),MIN(DATE(YEAR(F$2),MONTH(F$2)+1,0),INDEX(leave_to,MATCH($B3,leave_person,0))))),0))*$E3)/F$1
That is currently my formula which calculates the FTE of a person considering the number of working days in a month, the number of days they have been approved for leave, and multiplies that by their FTE percentage. This formula is entered in each corresponding cell below the date (heading) Some context:
The issue I have is, what if the person has multiple leave entries? How can I modify the formula to sum up the number of days across all of the entries?
[TABLE="width: 382"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Person[/TD]
[TD]FromDate[/TD]
[TD]ToDate[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD="align: right"]9/02/2018[/TD]
[TD="align: right"]22/02/2018[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD="align: right"]27/12/2017[/TD]
[TD="align: right"]14/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
at the moment for the month of February it takes away 10 from the 20 working days in February, but it ignores the days off between December of January.
Anyone? please?
I am struggling at this stage and have been resisting having this created in a database but sometimes it is hard to convince your employer to move away from spreadsheets. With that said, I would be most appreciative if someone could help me figure this out:
=((F$1-IFERROR(MAX(0,NETWORKDAYS(MAX(F$2,INDEX(leave_from,MATCH($B3,leave_person,0))),MIN(DATE(YEAR(F$2),MONTH(F$2)+1,0),INDEX(leave_to,MATCH($B3,leave_person,0))))),0))*$E3)/F$1
That is currently my formula which calculates the FTE of a person considering the number of working days in a month, the number of days they have been approved for leave, and multiplies that by their FTE percentage. This formula is entered in each corresponding cell below the date (heading) Some context:
leave_from = From Date
leave_to = To Date
leave_person = The person taking leave being looked up
leave_to = To Date
leave_person = The person taking leave being looked up
The issue I have is, what if the person has multiple leave entries? How can I modify the formula to sum up the number of days across all of the entries?
[TABLE="width: 382"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Person[/TD]
[TD]FromDate[/TD]
[TD]ToDate[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD="align: right"]9/02/2018[/TD]
[TD="align: right"]22/02/2018[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD="align: right"]27/12/2017[/TD]
[TD="align: right"]14/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
at the moment for the month of February it takes away 10 from the 20 working days in February, but it ignores the days off between December of January.
Anyone? please?