Hi,
I'm building a shift schedule for a restaurant.
I want to have one cell with start time, one cell with end time, and one cell with duration. However, I want the duration to automatically subtract a 30-minute unpaid meal-period. I found an old thread with the formula below. It works great. But, I want to add one condition that it duration returned value is the actual duration if the total duration is less than 5 1/2 hours. I can't figure that "if" statement. Any ideas?
=(M10-L10+IF(MOD(M10-L10,1)<0.5,(M10>L10),-(M10>L10)))-TIME(0,30,0)
I'm building a shift schedule for a restaurant.
I want to have one cell with start time, one cell with end time, and one cell with duration. However, I want the duration to automatically subtract a 30-minute unpaid meal-period. I found an old thread with the formula below. It works great. But, I want to add one condition that it duration returned value is the actual duration if the total duration is less than 5 1/2 hours. I can't figure that "if" statement. Any ideas?
=(M10-L10+IF(MOD(M10-L10,1)<0.5,(M10>L10),-(M10>L10)))-TIME(0,30,0)