Hi, start and finish hrs are h:mm AM/PM, total hours worked hh:mm using =mod(finish time-start time,1)I'm assuming you have a field for hours worked. How is it formatted?
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Start time | End Time | Time worked | Time less 20 min if 6 or more hours | ||
2 | 8:00:00 AM | 1:00:00 PM | 5:00 | 5:00 | ||
3 | 8:00:00 AM | 4:00:00 PM | 8:00 | 7:40 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C3 | C2 | =TEXT(B2-A2,"h:mm") |
D2:D3 | D2 | =IF(VALUE(TEXT(B2-A2,"h"))>=6, TEXT(B2-A2-1/72,"h:mm"), TEXT(B2-A2,"h:mm")) |
Thanks for your time and input, very much appreciated.I don't know if this is the most elegant way to do it, but it seems to work.
Book1
A B C D 1 Start time End Time Time worked Time less 20 min if 6 or more hours 2 8:00:00 AM 1:00:00 PM 5:00 5:00 3 8:00:00 AM 4:00:00 PM 8:00 7:40 Sheet1
Cell Formulas Range Formula C2:C3 C2 =TEXT(B2-A2,"h:mm") D2:D3 D2 =IF(VALUE(TEXT(B2-A2,"h"))>=6, TEXT(B2-A2-1/72,"h:mm"), TEXT(B2-A2,"h:mm"))