How to check if a 2 specific time falls in between 2 times (Shifts) in Excel?

丶灬走出姿态 提交于 2020-08-10 19:17:22

问题


1.I want to find out if an event with start time and end time falls "inside" or "Outside" working shifts for associates.

2.Segregate and calculate the production duration that falls within shift hours or outside shift hours.

(The Shift timings are 5pm to 2am which would be the next day so that is something to look out of for.)

In the attached image you can see that Row 2 : Stamp_IST is the starting time and Stamps_IST End is the end of that event (Production Hrs),

For example in row 6 the user starts his production inside shift 1:24:37 AM but ends his production outside shift 3:36:02 AM so ideally he has worked only for around 6 mins within his shift and only duration of 6 mins to be taken in account where as the rest of the duration should fall outside shift. so is there a way formula or a macro which would segregate give me the duration spent within and outside shift hrs.

来源:https://stackoverflow.com/questions/63100485/how-to-check-if-a-2-specific-time-falls-in-between-2-times-shifts-in-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!