I have a spreadsheet with a shift start time and a shift end time. What I'm trying to do is figure out how much time is spent between a time range during their shift.
For example, this is my working code:
This checks and returns how much time of the shift is spent between 7AM and 11AM. The only issue I'm having with this is the overnight shift. I can't figure out how to make this code work and return a valid number if, say, the shift was 11PM-7AM, or 6PM-2AM.
If anybody could give me a hand with this I sure would appreciate it!!!
Bookmarks