I am monitoring service outages using excel 2007. I have a start and and end time as shown in the example below. Start and end time are in dd/mm/yyyy hh:mm:ss format.
<tbody>
</tbody>
Days is worked out using the following formula =IF(H31>G31,H31-G31, 1-G31+H31)
Hours worked out using the following formula =M31*24
Whilst the above provides the total outage duration is it possible to split the outage duration into segments / time ranges using a formula/formulas or some code? So for the example above the result would be as below. The formula/ code must take into account that an outage could span different days.
<tbody>
</tbody>
Start | End | Days | Hours |
03/01/2018 18:30:00 | 04/01/2018 02:42:00 | 0.342 | 8.20 |
<tbody>
</tbody>
Days is worked out using the following formula =IF(H31>G31,H31-G31, 1-G31+H31)
Hours worked out using the following formula =M31*24
Whilst the above provides the total outage duration is it possible to split the outage duration into segments / time ranges using a formula/formulas or some code? So for the example above the result would be as below. The formula/ code must take into account that an outage could span different days.
Hours Impacted Range | Total Hours |
06:00 - 11:59 | 0 |
12:00 - 14:59 | 0 |
15:00 - 17:59 | 0 |
18:00 - 22:59 | 4.5 |
23:00 - 05:59 | 3.7 |
<tbody>
</tbody>