Hello - I am looking to determine which hours of the day (not total) were worked between two time periods. In the below example, first row, I am looking for a formula to drag across the hours of the day based on clock in and clock out times, rounded to the nearest quarter of an hour (expressed where 15 mins = 0.25). I manually entered the data shown in yellow/red columns to show what I am looking for the end result to be. I thought the FLOOR function with a nested IF would help me, but I'm having trouble with the logic. Thank you very much for any assistance you can provide.
Text form of above screen shot*
Text form of above screen shot*
STARTDTM.2 | ENDDTM.1 | ENDDTM.2 | Worked Time Hours | 12 AM - 1 AM | 1 AM - 2 AM | 2 AM - 3 AM | 3 AM - 4 AM | 4 AM - 5 AM | 5 AM - 6 AM | 6 AM - 7 AM | 7 AM - 8 AM | 8 AM - 9 AM | 9 AM - 10 AM | 10 AM - 11 AM |
5:42 PM | 7/1/2020 | 10:12 PM | 4.5 | 0.25 | 1 | 1 | 1 | 1 | 0.25 | |||||
10:42 PM | 7/1/2020 | 11:00 PM | 0.3 | 0.3 | ||||||||||
11:00 PM | 7/2/2020 | 12:00 AM | 1 | |||||||||||
12:00 AM | 7/2/2020 | 6:00 AM | 6 | 1 | 1 | 1 | 1 | 1 | 1 |