What is the range of times that this can fall into each day? Say, for example, that the times for a given day fall between 7:00 PM and 2:00 AM the next morning. (19:00 to 02:00). I would add 12 hours to times earlier than noon, and take the average of that.
This can be done with an array formula. Enter this formula into the cell
Formula:
=AVERAGE(IF(D8:AA8<0.5,D8:AA8+0.5,D8:AA8))
then instead of hitting ENTER, hit the combination CTRL-SHIFT-ENTER. If you have done it correctly you will see brackets around the formula in the formula bar.
Formula:
{=AVERAGE(IF(D8:AA8<0.5,D8:AA8+0.5,D8:AA8))}
You cannot do this by typing the brackets; you must hit the combination CTRL-SHIFT-ENTER.
(This assumes that times after midnight are rare. If by some quirk your average is later than midnight, then the result would be 12 hours later.)
Bookmarks