
Originally Posted by
Dexter2
but have not been able to combine or restructure to fit with the original
Or, if moving away from the original then, to tweak to retrieve the other answers for Problems 1 and 3.
The primary problem is: you round overtime/2 to the minute, then add "total time" (rounded to the 15-min) before rounding to the 7.5-min.
But yours and MrShorty's earlier comments suggest that first, you want to round overtime/2 to the 7.5-min, then round to the min before adding "total time", which is rounded to the 15-min.
Here, "total time" is according to my definition (e.g. SUM(D16:D17)/24), not your definition for D20.
To that end, in the attachment to your posting #17, the formula in D20 should be (and copy into H20 and L20):
Likewise, in the attachment to your posting #1, the formulas should be:
Note that I use TEXT to convert to the correct binary approximation of time that should be accurate to the minute and to the second. MROUND is not reliable, due to binary arithmetic anomalies.
(I can demonstrate that, on request. But I suspect that it is TMI. I also suspect that MROUND does not round to the 7.5-min and 15-min reliably.)
MAX(0,...) ensures that (B2-TIME(11,0,0))*0.5 does not result in negative time, either due to binary arithmetic anomalies, or because B2 is less than 11h 0m.
TEXT(...+"0:30.0","[h]:m") rounds seconds to the minute, instead of truncating.
Excel interprets "0:30.0" as 0m 30s, due to the decimal point and decimal fraction (required).
-----
PS.... Because "total time" (again, my definition) is rounded to the 15-min, I think (too tired to be sure) the formulas can be simplified as follows:
Bookmarks