问题
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