Hi Nerina,
Unfortunately, this is not especially easy problem in excel, and I can hardly imagine (If I understood the requirement correctly) it can be effectively solved with formulas.
I prepared (not optimized, but works reasonably fast) macro to do that.
Original times are copied as reference to columns E and F
then a list of machines is created in column G and for each machine the time off/on is adjusted to eliminate potential overlapping downtimes.
then sum of downtimes for each machine is listed in column H
finally the same procedure of ovelapping time adjustment is executed on all events listed in columns A:D despite the machine.
So for your sample data: total down time (as listed) was
128:34:00
after corrections for overlapping down times for each machine it was
117:54
but after overlapping between machines has been eliminated only
115:56:00
of "genuine" downtime has been noted.
See the code:
Bookmarks