Hi all,
Ive just had a go at designing a timesheet on Excel- ive got the basics (total hours, lunch breaks etc). But the company has a few specific requirements...
If an employee does less than 5 hours per any one day then 1 hour for lunch should NOT be deducted else it is (I have a formula for this). But also if they start at 1pm or after, 1 hour for lunch should also NOT be deducted else it is.
Example:
a)
Start time: 13.00 Finish time: 19.00 == 1 hour should NOT be deducted (employee started at 1pm or after)
Formula used:
=IF(B33>0.54166667, "True_Value", "False_Value")
b)
Start time: 9.00 Finish time: 17.00 == 1 hour IS deducted (more than 5 hours per day)
Formula used:
=IF(((C24-B24)*24)>5, ((C24-B24)*24)-1, ((C24-B24)*24))
c)
Start time: 14.00 Finish time 18.00 == 1 hour NOT deducted (employee started after 1pm and does less than 5 hours- this should only deduct 1 hour and not 2 hours even though is meets both criteria.
Formula used:
Mmm here I need to combine the logic of both formulaes but can't seem to get it right for some reason.
I need to combine both this formulaes and have it calculate on a single cell (called "Total hours worked per day")
I hope this makes sense.
Any help on this would be very much appreciated.
Thanks,
Sunil.
Ive just had a go at designing a timesheet on Excel- ive got the basics (total hours, lunch breaks etc). But the company has a few specific requirements...
If an employee does less than 5 hours per any one day then 1 hour for lunch should NOT be deducted else it is (I have a formula for this). But also if they start at 1pm or after, 1 hour for lunch should also NOT be deducted else it is.
Example:
a)
Start time: 13.00 Finish time: 19.00 == 1 hour should NOT be deducted (employee started at 1pm or after)
Formula used:
=IF(B33>0.54166667, "True_Value", "False_Value")
b)
Start time: 9.00 Finish time: 17.00 == 1 hour IS deducted (more than 5 hours per day)
Formula used:
=IF(((C24-B24)*24)>5, ((C24-B24)*24)-1, ((C24-B24)*24))
c)
Start time: 14.00 Finish time 18.00 == 1 hour NOT deducted (employee started after 1pm and does less than 5 hours- this should only deduct 1 hour and not 2 hours even though is meets both criteria.
Formula used:
Mmm here I need to combine the logic of both formulaes but can't seem to get it right for some reason.
I need to combine both this formulaes and have it calculate on a single cell (called "Total hours worked per day")
I hope this makes sense.
Any help on this would be very much appreciated.
Thanks,
Sunil.