I guess I will be having a hard time explaining it so I will just try to attach a couple of excel files to illustrate it.
And this is the macro code I am using:
The bottom line is - it seems to work just fine, but when it gets to the 11 and 13 hours it gives wrong results and I can't figure out why.
I suppose that there could be an easier and most importantly - shorter way to achieve the same result which would minimise the chance of mistakes but I am pretty new in Excel VB, so I would appreciate it if you could help me in any way.
P.S. The rows for every time interval are not always the same number.
Bookmarks