Total Time Less Lunch Overlap

L

Legacy 436357

Guest
Hello is there a way to adjust the formulas in Column I so that if the times overlap the lunch break (12 pm to 12:30 pm) it deducts that time?

I have the Lunch In L12 and Lunch Out L13 if that matters.

So it should be a 30 minute break.

The result of the new formula would then be I5 2.5 hours.

Thank you

Excel Workbook
GHI
3Start TimeEnd TimeTask Time
48:00 AM10:00 AM2:00
510:00 AM1:00 PM3:00
Week 27
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi,

Cell I4 be =IF($H4<>"",IF(AND($G4<=$L$11,$H4>=$L$12),$H4-$G4+$L$11-$L$12,$H4-$G4),"")
 
Last edited:
Upvote 0
Thank you again but I had to adjust the cells that contained the Lunch In and Lunch Out.

I do appreciate the help.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,203
Members
452,617
Latest member
Narendra Babu D

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top