Two approaches depending on your needs.
1) If you want to treat your dataset as being the same each day, then you just add logic so that from 11pm onwards, look at the start of day data again. i.e. for 23:15-00:14, use the existing formula to pick up 23:15-23:59, then add from 00:00-00:14 from the start of your list again.
Cell H2 becomes:
Formula:
=SUMIFS(B:B,C:C,">="&VALUE(TEXT(G2,"hhmm")), $C:$C, "<"&VALUE(TEXT(G2+1/24,"hhmm"))) + IF(HOUR(G2)=23,SUMIFS(B:B,$C:$C, "<"&VALUE(TEXT(G2+1/24,"hhmm"))))
2) If it's different data for each day, then you can use the similar approach by combining the date and time and formatting the TimeToVal as
Formula:
=VALUE(TEXT(datetime, "DDHHMM"))
. You then also need to add days to your rolling hour analysis columns and logic too. Can help tomorrow if you go down this route and need some help
Bookmarks