I would like to make a formula stating below:
worker finishes work at 18:00,
after 18:25, we give half an hour OT
after 18:45, we give 1 hour OT
I also need to take into account some workers might work a few hours OT,
therefore if he finishes work 19:25, I need excel to show 1hr30minutes (1:30)OT
20:45 will be 2 hours (2:00)and so on.
Is this possible?
Thanks a lot.
Hi Sim Che
You can try putting the values into a table and do a VLOOKUP to get the OT hours entitlement.
See example attached.
Hope this helps.
Sunny
Thanks for your help. Unfortunately, this only applies to the ones listed on the table, it's hard to list all of them since worker finish work at all sort of times like 18:26, 18:27 etc... I will need a formula stating after every hour :25 is half an hour, but will also need to add the extra hours if more than 1 hour.
Thanks.
Maybe this:
=MROUND(EndTime-TIME(18,0,0),"0:30")
Where EndTime is the time the worker finish work.
If this doesn't work then perhaps you could attach a file with various scenarios of end time and the expected OT hours.
Good luck
Sunny