Hi
I've put together (with help from tek-tips,but I can't find my original post), a holidays calculator for new starters at my work. A "manual" calculation is 25 / 12 * 4 being the number of days entitlement, divided by the months in the year multiplied by the number of months in the holiday year the person will work. That bit is easy.
If the person starts mid month- then it's 25 / 12 / 23(the number of working days in October ) * 15 (the number of days worked in October if they start on the 13th. So the whole allowance worked out manually is 5.51.
The formula used in the spreadsheet is
=FLOOR((NETWORKDAYS($A5,EOMONTH($A5,0))/NETWORKDAYS($A5-DAY($A5)+1,EOMONTH($A5,0))+12-MONTH($A5))*25/12+0.4,0.5)
BUT, my line manager has asked that if the calculation is between, for example,
7.0 and 7.24, then the allowance should be 7.
between 7.25 and 7.74 then the allowance should be 7.5
between 7.75 and 8 then the allowance should be 8
Can anyone help me with this? I've tried changing the 0.4,0.5 bit at the end of the formula, but although it works for some calculations, it's not consistent.
Any advice gratefully received.
regards
Pendle
I've put together (with help from tek-tips,but I can't find my original post), a holidays calculator for new starters at my work. A "manual" calculation is 25 / 12 * 4 being the number of days entitlement, divided by the months in the year multiplied by the number of months in the holiday year the person will work. That bit is easy.
If the person starts mid month- then it's 25 / 12 / 23(the number of working days in October ) * 15 (the number of days worked in October if they start on the 13th. So the whole allowance worked out manually is 5.51.
The formula used in the spreadsheet is
=FLOOR((NETWORKDAYS($A5,EOMONTH($A5,0))/NETWORKDAYS($A5-DAY($A5)+1,EOMONTH($A5,0))+12-MONTH($A5))*25/12+0.4,0.5)
BUT, my line manager has asked that if the calculation is between, for example,
7.0 and 7.24, then the allowance should be 7.
between 7.25 and 7.74 then the allowance should be 7.5
between 7.75 and 8 then the allowance should be 8
Can anyone help me with this? I've tried changing the 0.4,0.5 bit at the end of the formula, but although it works for some calculations, it's not consistent.
Any advice gratefully received.
regards
Pendle