Start time in A1,end time in B1 lunch in C1 in D1 put =B1-A1-C1 format as custom [h]:mm
I have a similar problem, but total hours worked 18:45pm to 08:30am (night shift) My employer calculates the time (00:00) into total in decimal eg: 13.75. How do I do the same? Anyone know a formula?
Assuming A1 = Start time, B1 = End Time and C1 = Lunch duration (all in h:mm format)
Put the following in cell D1
=IF(A1>B1,B1-A1-C1+1,B1-A1-C1)*24
You need to break it up into two calculations; subtract the start time from midnight (24:00), then add that to the end time to get the total time. To convert that to a decimal time, in a cell formatted as General, multiply the total time by 24.