Hi All,
Excel version – 2010
I’m trying to calculate ticket incident duration in minutes for issues that occur in an environment with non-standard business hours. Depending on the location the incident occurs the hours in the “business day” vary and need to accommodate the total duration of the incident relative to the hours of operation in each day.
As an example, an incident occurs in a shopping mall with hours of operation - Monday to Wednesday & Friday to Saturday 0900-1630; Thursday 0900-1800; Sunday 1000-1400
An incident is raised 12/04/2015 13:00 (Sunday) and closed 18/04/2015 9:30 (Saturday), manually calculating the duration of time is 2,430 minutes.
With the help of the forum we were able to determine the below formula, however, my issue now is how to translate the formula to accommodate different hours of operations. I can follow the majority of the formula, but am struggling with the values in the CHOOSE function and how the values relate to the over formula. I can see the CHOOSE expression in the first half of the formula contains the daily hours of operation from Monday to Sunday, however, come unstuck further into the formula.
Am seeking assistance to help create formulas for the remaining hours of operation in the attached spreadsheet. Cell reference H2 shows the formula I was provided for the above example. Could you please assist and provide formulas in H3 – H7
Excel 2010
<colgroup><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]Start[/TD]
[TD="align: center"]Finish[/TD]
[TD="align: center"]Manual Calculation (min)[/TD]
[TD="align: center"]Hours of Operation Downtime (min)[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]2430[/TD]
[TD="align: center"]2430[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]2370[/TD]
[TD="align: right"][/TD]
[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]2430[/TD]
[TD="align: right"][/TD]
[TD="align: center"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]3360[/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]3690[/TD]
[TD="align: right"][/TD]
[TD="align: center"]7[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]2250[/TD]
[TD="align: right"][/TD]
</tbody>
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: #DAE7F5"]H2[/TH]
[TD="align: left"]=(SUMPRODUCT(NETWORKDAYS.INTL(E2,F2,SUBSTITUTE("1111111",1,0,{1,2,3,4,5,6,7})),{7.5,7.5,7.5,9,7.5,7.5,4})-MEDIAN(0,CHOOSE(WEEKDAY(E2,2),7.5,7.5,7.5,9,7.5,7.5,4),MOD(E2,2)*24-CHOOSE(WEEKDAY(E2,2),9,9,9,9,9,9,10))-MEDIAN(0,CHOOSE(WEEKDAY(F2,2),7.5,7.5,7.5,9,7.5,7.5,4),CHOOSE(WEEKDAY(F2,2),16.5,16.5,16.5,18,16.5,16.5,14)-MOD(F2,2)*24))*60[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks,
Excel version – 2010
I’m trying to calculate ticket incident duration in minutes for issues that occur in an environment with non-standard business hours. Depending on the location the incident occurs the hours in the “business day” vary and need to accommodate the total duration of the incident relative to the hours of operation in each day.
As an example, an incident occurs in a shopping mall with hours of operation - Monday to Wednesday & Friday to Saturday 0900-1630; Thursday 0900-1800; Sunday 1000-1400
An incident is raised 12/04/2015 13:00 (Sunday) and closed 18/04/2015 9:30 (Saturday), manually calculating the duration of time is 2,430 minutes.
With the help of the forum we were able to determine the below formula, however, my issue now is how to translate the formula to accommodate different hours of operations. I can follow the majority of the formula, but am struggling with the values in the CHOOSE function and how the values relate to the over formula. I can see the CHOOSE expression in the first half of the formula contains the daily hours of operation from Monday to Sunday, however, come unstuck further into the formula.
Am seeking assistance to help create formulas for the remaining hours of operation in the attached spreadsheet. Cell reference H2 shows the formula I was provided for the above example. Could you please assist and provide formulas in H3 – H7
Excel 2010
A | B | C | D | E | F | G | H | |
---|---|---|---|---|---|---|---|---|
Hours of Operation | ||||||||
Monday to Wednesday & Friday to Saturday 0900-1630; Thursday 0900-1800; Sunday 1000-1400 | ||||||||
Monday to Tuesday & Thursday to Friday 0900-1630; Wednesday 0900 – 1830; Saturday & Sunday not open | ||||||||
Monday to Friday 0900-1630; Saturday 1000-1300; Sunday not open | ||||||||
Monday to Wednesday and Saturday 0900-1630; Thursday to Friday 0900-1900; Sunday 1000-1600 | ||||||||
Monday to Sunday 0800- 1800 | ||||||||
Monday to Friday 0900-1630 |
<colgroup><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]Start[/TD]
[TD="align: center"]Finish[/TD]
[TD="align: center"]Manual Calculation (min)[/TD]
[TD="align: center"]Hours of Operation Downtime (min)[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]2430[/TD]
[TD="align: center"]2430[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]2370[/TD]
[TD="align: right"][/TD]
[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]2430[/TD]
[TD="align: right"][/TD]
[TD="align: center"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]3360[/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]3690[/TD]
[TD="align: right"][/TD]
[TD="align: center"]7[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12/04/2015 13:00[/TD]
[TD="align: center"]18/04/2015 9:30[/TD]
[TD="align: center"]2250[/TD]
[TD="align: right"][/TD]
</tbody>
Sheet1
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: #DAE7F5"]H2[/TH]
[TD="align: left"]=(SUMPRODUCT(NETWORKDAYS.INTL(E2,F2,SUBSTITUTE("1111111",1,0,{1,2,3,4,5,6,7})),{7.5,7.5,7.5,9,7.5,7.5,4})-MEDIAN(0,CHOOSE(WEEKDAY(E2,2),7.5,7.5,7.5,9,7.5,7.5,4),MOD(E2,2)*24-CHOOSE(WEEKDAY(E2,2),9,9,9,9,9,9,10))-MEDIAN(0,CHOOSE(WEEKDAY(F2,2),7.5,7.5,7.5,9,7.5,7.5,4),CHOOSE(WEEKDAY(F2,2),16.5,16.5,16.5,18,16.5,16.5,14)-MOD(F2,2)*24))*60[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks,