Time - again
Posted by Rob on December 31, 2001 12:51 PM
Hi,
I need to calculate how much time is being worked...
b9=1:00 am
c9=10:00 am
d9= total hours worked?????
It is in the time format but i need it to do more that just that... I need to figure out if they work over 5.5 hours then a .5 hour break comes out, if over 7 hours then a 1 hour break comes out.
I tried this formula, but it doesnt work:
=IF((C9-B9)>7,(C9-B9)-1,IF((C9-B9)>5.5,(C9-B9)-0.5,(C9-B9)))
The result of this formula is 9, it should be 8(with the first criteria being true and the formula should subtract 1 from the total?????) Is it because I am subtracting "1" when I should be subtracting 1 hour somehow?
Thanks,
Rob