Dear Sifu
Help! I am trying to calculate total working hours after deducting break hours that one is entitled to.
In below scenario, the person worked from 8:30 AM to 6:15 PM.
He is entitled to lunch break because he has worked for 4.5 hours (8:30 AM to 1:00 PM) before the lunch break.
He is also entitled to afternoon tea break because he has worked for 2 hours (2:00 PM to 4:00 PM) before the afternoon tea break.
But he is not entitled to morning break because he has only worked for 1.5 hours (8:30 AM to 10:00 AM).
In cell C6, I have this formula: "=SUMPRODUCT((C12:C14>=C3)*(C12:C14<=C4)*(D12:D14)/24)*24".
How do I factor in the qualification for the break hours?
Thanks in advance!
Joseph
Count Hours.png
Bookmarks