Hi everyone,
I have created a spread sheet for employees to log flexible working hours. The problem we have is that they enter their time in in 08.00 format (24hr) and the following formula calculates the time of flexible hours banked.
=TRUNC(P7/60)+(P7-TRUNC(P7/60)*60)/100)
I have data validation set up within the time in / out boxes already which are to the 15 minute marks (ie 08.15, 08.30, 08.45 etc...) but what this means is that someone could foreseeably log 15 mins, 45 mins of flex etc... The rule our company has come up with is to only allow flex increments to 30 minutes or 1 hour (up to a max of 3 hours)
So what I am trying to do is; if a person says they come in at 7:45am and then leaves at 5pm, this means they have worked an extra 15mins but because we only recognise 30 minute intervals, I want the flex sheet to read zero. conversely, if someone puts in 7:15am - 5pm, they would have 45 mins but I want it to round down to the nearest half hour.
in addition to this, I want the daily maximum flex allowance to be capped at 3 hours
Thanks all!
Bookmarks