date/time difference for support calls with workday, opening times & holiday functions

gjenk

New Member
Joined
Apr 4, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi Guys

I have a spreadsheet logging support calls which has a start date/time (raised on) & end date/time (resolved on) which I want to be able to calculate the time taken to resolve the call based on daily opening time of 8:40-17:00 excluding weekends & holidays. Also want to be able to group the time taken to resolve call in 15 mins, 2hrs, 1 day, 2 days &more that 2 days.
ReferenceSummaryOwnerCustomerSUPPORT START TIMESUPORT END TIMERaised OnResolved OnResolution time
IN00020066VPN wont connectDerek GreenSuzanne Preston
08:40​
17:00​
06/12/2021 13:34​
07/02/2022 13:16​
IN00020147365 Password resetDerek GreenSean OSullivan
08:40​
17:00​
17/12/2021 09:18​
07/02/2022 13:17​
IN00020170VMWare Tools UpdateMatt BealeMatt Beale
08:40​
17:00​
20/12/2021 09:39​
02/02/2022 22:44​
IN00020345make a point live in officeMatt BealeFrances Laughlin
08:40​
17:00​
12/01/2022 16:15​
02/02/2022 11:42​
IN00020350Print room copierCorinna MilliganAlison Beattie
08:40​
17:00​
13/01/2022 10:46​
14/02/2022 09:25​
IN00020374Authenticator- Pauline BrennanDerek GreenAlison Beattie
08:40​
17:00​
17/01/2022 11:28​
07/02/2022 13:15​
IN00020462Purchase 3x TabletsYvonne ODonovanRachel Ritchie
08:40​
17:00​
24/01/2022 14:08​
07/02/2022 16:02​
IN00020477Laptop Required - Quote NeededMatt BealeTracy James
08:40​
17:00​
25/01/2022 14:22​
04/02/2022 12:13​
IN00020479Additional Wifi - ECPCorinna MilliganLloyd BainesDavies
08:40​
17:00​
25/01/2022 15:31​
08/02/2022 09:55​
IN00020517George BrassingtonRobert HallAngela Ross
08:40​
17:00​
27/01/2022 16:09​
08/02/2022 14:03​
IN00020532printer at golf courseMatt BealeAdam Smith
08:40​
17:00​
28/01/2022 13:08​
21/02/2022 10:57​
IN00020534Imail locked outYvonne ODonovanDonna Harrison
08:40​
17:00​
28/01/2022 15:35​
01/02/2022 08:32​
IN00020535I keep getting thrown out of my TEAM meetings by the systemDerek GreenJanice Parker
08:40​
17:00​
28/01/2022 17:48​
11/02/2022 08:41​
IN00020542PoE Switch - Log Cabin ProjectMatt BealeLloyd BainesDavies
08:40​
17:00​
31/01/2022 10:56​
03/02/2022 10:24​
IN00020544Kofax Scanning in Benefits not recognising the headersDerek GreenLindsey Holt
08:40​
17:00​
31/01/2022 13:12​
01/02/2022 09:30​
IN00020551ql not working on lap topDerek GreenKatie McHutchison
08:40​
17:00​
31/01/2022 14:53​
01/02/2022 11:08​
IN00020552Desk phone / network connection not workingPeter ConnellyGemma ODonovan
08:40​
17:00​
31/01/2022 15:43​
01/02/2022 09:12​
IN00020553Fwd: Our Office - TonerDerek GreenAlison Beattie
08:40​
17:00​
31/01/2022 16:30​
01/02/2022 13:41​
IN00020554QL4Yvonne ODonovanRobert Browne
08:40​
17:00​
31/01/2022 18:21​
02/02/2022 08:10​
IN00020556QL not workingYvonne ODonovanLisa Madden
08:40​
17:00​
01/02/2022 08:58​
01/02/2022 10:14​
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Excel Formula:
=F2-MOD(G2,1)+MOD(H2,1)-E2+NETWORKDAYS(INT(G2)+1,INT(H2)-1,HolidayList)*(F2-E2)

Create a named range with your list of holiday dates and call it Holiday List.

Use a custom format for Resolution time:
[h]:mm;@

Your data pastes in as text instead of dates/times so my testing was very limited. You will need to test this on your own data.
 
Upvote 0
Here is the spreadsheet with your formula. I have set the format of the cells as [h]:mm;@ There seems to be an issue with some of the results - see below:

Support calls.xlsx
ABCDEFGHI
1ReferenceSummaryOwnerCustomerSUPPORT START TIMESUPORT END TIMERaised OnResolved OnResolution time
2IN00020066VPN wont connectDerek GreenSuzanne Preston08:4017:0006/12/2021 13:3407/02/2022 13:16349:42
3IN00020147365 Password resetDerek GreenSean OSullivan08:4017:0017/12/2021 09:1807/02/2022 13:17278:58
4IN00020170VMWare Tools UpdateMatt BealeMatt Beale08:4017:0020/12/2021 09:3902/02/2022 22:44254:45
5IN00020345make a point live in officeMatt BealeFrances Laughlin08:4017:0012/01/2022 16:1502/02/2022 11:42120:26
6IN00020350Print room copierCorinna MilliganAlison Beattie08:4017:0013/01/2022 10:4614/02/2022 09:25181:58
7IN00020374Authenticator- Pauline BrennanDerek GreenAlison Beattie08:4017:0017/01/2022 11:2807/02/2022 13:15126:46
8IN00020462Purchase 3x TabletsYvonne ODonovanRachel Ritchie08:4017:0024/01/2022 14:0807/02/2022 16:0285:14
9IN00020477Laptop Required - Quote NeededMatt BealeTracy James08:4017:0025/01/2022 14:2204/02/2022 12:1364:30
10IN00020479Additional Wifi - ECPCorinna MilliganLloyd BainesDavies08:4017:0025/01/2022 15:3108/02/2022 09:5577:44
11IN00020517George BrassingtonRobert HallAngela Ross08:4017:0027/01/2022 16:0908/02/2022 14:0364:33
12IN00020532printer at golf courseMatt BealeAdam Smith08:4017:0028/01/2022 13:0821/02/2022 10:57131:08
13IN00020534Imail locked outYvonne ODonovanDonna Harrison08:4017:0028/01/2022 15:3501/02/2022 08:329:37
14IN00020535I keep getting thrown out of my TEAM meetings by the systemDerek GreenJanice Parker08:4017:0028/01/2022 17:4811/02/2022 08:4174:13
15IN00020542PoE Switch - Log Cabin ProjectMatt BealeLloyd BainesDavies08:4017:0031/01/2022 10:5603/02/2022 10:2424:28
16IN00020544Kofax Scanning in Benefits not recognising the headersDerek GreenLindsey Holt08:4017:0031/01/2022 13:1201/02/2022 09:30####################
17IN00020551ql not working on lap topDerek GreenKatie McHutchison08:4017:0031/01/2022 14:5301/02/2022 11:08####################
18IN00020552Desk phone / network connection not workingPeter ConnellyGemma ODonovan08:4017:0031/01/2022 15:4301/02/2022 09:12####################
19IN00020553Fwd: Our Office - TonerDerek GreenAlison Beattie08:4017:0031/01/2022 16:3001/02/2022 13:41####################
20IN00020554QL4Yvonne ODonovanRobert Browne08:4017:0031/01/2022 18:2102/02/2022 08:106:29
21IN00020556QL not workingYvonne ODonovanLisa Madden08:4017:0001/02/2022 08:5801/02/2022 10:14####################
22IN00020557Plotting Sheet Layers in Land Charges GIS MapsTibor BorzasiTracy James08:4017:0001/02/2022 09:1102/02/2022 15:32####################
23IN00020559Mail not updating on OutlookRobert Hall08:4017:0001/02/2022 10:0001/02/2022 11:01####################
24IN00020561QL won't openDerek GreenLeah Kelly08:4017:0001/02/2022 10:1101/02/2022 16:06####################
25IN00020562Failure to access Outlook/J drive etcDerek GreenLynn Stewart08:4017:0001/02/2022 11:0401/02/2022 15:19####################
26IN00020564Unable to obtain connection to SoftphonePeter ConnellySuzanne Wilson08:4017:0001/02/2022 12:1701/02/2022 14:29####################
27IN00020565Laptop will not connect to internetPeter ConnellySharon Eaton08:4017:0001/02/2022 15:4101/02/2022 16:38####################
28IN00020566My Personal (psimp) H: drive does not load anything up I have saved past Oct 2020Robert HallPaul Simpson08:4017:0001/02/2022 16:1203/02/2022 11:4012:07
29IN00020567Customer has advised that the LLS email address is wring on the NNC websiteDerek GreenNatalie Ratledge08:4017:0002/02/2022 08:2702/02/2022 08:58####################
30IN00020570CONNECTIVITYPeter ConnellySuzanne Elliott08:4017:0002/02/2022 09:2611/02/2022 08:3857:32
31IN00020571Unable to log on to RainbowYvonne ODonovanJulie Collins08:4017:0002/02/2022 09:3002/02/2022 09:34####################
32IN00020572Babatunde Aregbesola vpn not working SSL errorYvonne ODonovanBabatunde Aregbesola08:4017:0002/02/2022 09:3102/02/2022 10:39####################
33IN00020573outlook is saying there's a folder full and now I cannot delete anythingPeter ConnellyJames French08:4017:0002/02/2022 09:3102/02/2022 15:57####################
34IN00020574George BrassingtonDerek GreenAngela Ross08:4017:0002/02/2022 09:5102/02/2022 09:59####################
35IN00020575Leisha Murphy can't login to QLRobert HallLeisha Murphy08:4017:0002/02/2022 09:5703/02/2022 08:32####################
36IN00020576Unable to sign in to Outlook needs QR codeYvonne ODonovanGary Chisholm08:4017:0002/02/2022 11:1502/02/2022 11:48####################
37IN00020577Cannot access adelante paymentsYvonne ODonovanTheresia Ellis08:4017:0002/02/2022 11:4102/02/2022 11:44####################
38IN00020579Cannot generate documents on UniformTibor BorzasiBarry Agnew08:4017:0002/02/2022 11:4702/02/2022 12:06####################
39IN00020580BabatundeRobert HallBabatunde Aregbesola08:4017:0002/02/2022 12:3402/02/2022 13:01####################
40IN00020581QL not working on shared PC, 7JMXZS2Yvonne ODonovanDarren Foster08:4017:0002/02/2022 13:0008/02/2022 07:4528:05
41IN00020582headsetYvonne ODonovanLijana Armalaite08:4017:0002/02/2022 14:1302/02/2022 15:25####################
42IN00020583My H drive is not workingPeter ConnellyAmanda King08:4017:0002/02/2022 14:3410/02/2022 11:4947:14
43IN00020585my works mobile phone is not taking incoming calls, it makes a high pitch noise and the screen goes blank.Yvonne ODonovanDaniel Boon08:4017:0002/02/2022 14:4724/02/2022 12:27130:59
44IN00020589ArcReader GIS not workingMatt BealeTracy James08:4017:0003/02/2022 08:2503/02/2022 10:24####################
45IN00020590Unable to open pdfPeter ConnellyColin Cox08:4017:0003/02/2022 08:5303/02/2022 09:12####################
46IN000205922x Docks, 2x MonitorsMatt BealeMarion Williams08:4017:0003/02/2022 11:1810/02/2022 08:5639:17
47IN00020593Aadil EssaYvonne ODonovanAngela Ross08:4017:0003/02/2022 13:0207/02/2022 16:0819:46
48IN00020595I can't believe I'm saying this, but Outlook doesn't work. AgainMatt BealeJames French08:4017:0003/02/2022 14:3303/02/2022 22:42####################
Support calls
Cell Formulas
RangeFormula
I2:I48I2=F2-MOD(G2,1)+MOD(H2,1)-E2+NETWORKDAYS(INT(G2)+1,INT(H2)-1,holidays)*(F2-E2)
Named Ranges
NameRefers ToCells
holidays=Holidays!$A$2:$A$25I2:I48
 
Upvote 0
Here is a revision to the formula that fixes two problems:

$scratch.xlsm
ABCDEFGHI
1ReferenceSummaryOwnerCustomerSUPPORT START TIMESUPORT END TIMERaised OnResolved OnResolution time
2IN00020066VPN wont connectDerek GreenSuzanne Preston8:4017:0006/12/2021 13:3407/02/2022 13:16366:22
3IN00020147365 Password resetDerek GreenSean OSullivan8:4017:0017/12/2021 09:1807/02/2022 13:17295:38
4IN00020170VMWare Tools UpdateMatt BealeMatt Beale8:4017:0020/12/2021 09:3902/02/2022 22:44271:25
5IN00020345make a point live in officeMatt BealeFrances Laughlin8:4017:0012/01/2022 16:1502/02/2022 11:42120:26
6IN00020350Print room copierCorinna MilliganAlison Beattie8:4017:0013/01/2022 10:4614/02/2022 09:25181:58
7IN00020374Authenticator- Pauline BrennanDerek GreenAlison Beattie8:4017:0017/01/2022 11:2807/02/2022 13:15126:46
8IN00020462Purchase 3x TabletsYvonne ODonovanRachel Ritchie8:4017:0024/01/2022 14:0807/02/2022 16:0285:14
9IN00020477Laptop Required - Quote NeededMatt BealeTracy James8:4017:0025/01/2022 14:2204/02/2022 12:1364:30
10IN00020479Additional Wifi - ECPCorinna MilliganLloyd BainesDavies8:4017:0025/01/2022 15:3108/02/2022 09:5577:44
11IN00020517George BrassingtonRobert HallAngela Ross8:4017:0027/01/2022 16:0908/02/2022 14:0364:33
12IN00020532printer at golf courseMatt BealeAdam Smith8:4017:0028/01/2022 13:0821/02/2022 10:57131:08
13IN00020534Imail locked outYvonne ODonovanDonna Harrison8:4017:0028/01/2022 15:3501/02/2022 08:329:37
14IN00020535I keep getting thrown out of my TEAM meetings by the systemDerek GreenJanice Parker8:4017:0028/01/2022 17:4811/02/2022 08:4174:13
15IN00020542PoE Switch - Log Cabin ProjectMatt BealeLloyd BainesDavies8:4017:0031/01/2022 10:5603/02/2022 10:2424:28
16IN00020544Kofax Scanning in Benefits not recognising the headersDerek GreenLindsey Holt8:4017:0031/01/2022 13:1201/02/2022 09:304:38
17IN00020551ql not working on lap topDerek GreenKatie McHutchison8:4017:0031/01/2022 14:5301/02/2022 11:084:35
18IN00020552Desk phone / network connection not workingPeter ConnellyGemma ODonovan8:4017:0031/01/2022 15:4301/02/2022 09:121:49
19IN00020553Fwd: Our Office - TonerDerek GreenAlison Beattie8:4017:0031/01/2022 16:3001/02/2022 13:415:30
20IN00020554QL4Yvonne ODonovanRobert Browne8:4017:0031/01/2022 18:2102/02/2022 08:106:29
21IN00020556QL not workingYvonne ODonovanLisa Madden8:4017:0001/02/2022 08:5801/02/2022 10:141:16
22IN00020557Plotting Sheet Layers in Land Charges GIS MapsTibor BorzasiTracy James8:4017:0001/02/2022 09:1102/02/2022 15:3214:40
23IN00020559Mail not updating on OutlookRobert Hall8:4017:0001/02/2022 10:0001/02/2022 11:011:01
24IN00020561QL won't openDerek GreenLeah Kelly8:4017:0001/02/2022 10:1101/02/2022 16:065:54
25IN00020562Failure to access Outlook/J drive etcDerek GreenLynn Stewart8:4017:0001/02/2022 11:0401/02/2022 15:194:15
26IN00020564Unable to obtain connection to SoftphonePeter ConnellySuzanne Wilson8:4017:0001/02/2022 12:1701/02/2022 14:292:12
27IN00020565Laptop will not connect to internetPeter ConnellySharon Eaton8:4017:0001/02/2022 15:4101/02/2022 16:380:57
28IN00020566My Personal (psimp) H: drive does not load anything up I have saved past Oct 2020Robert HallPaul Simpson8:4017:0001/02/2022 16:1203/02/2022 11:4012:07
29IN00020567Customer has advised that the LLS email address is wring on the NNC websiteDerek GreenNatalie Ratledge8:4017:0002/02/2022 08:2702/02/2022 08:580:30
30IN00020570CONNECTIVITYPeter ConnellySuzanne Elliott8:4017:0002/02/2022 09:2611/02/2022 08:3857:32
31IN00020571Unable to log on to RainbowYvonne ODonovanJulie Collins8:4017:0002/02/2022 09:3002/02/2022 09:340:03
32IN00020572Babatunde Aregbesola vpn not working SSL errorYvonne ODonovanBabatunde Aregbesola8:4017:0002/02/2022 09:3102/02/2022 10:391:08
33IN00020573outlook is saying there's a folder full and now I cannot delete anythingPeter ConnellyJames French8:4017:0002/02/2022 09:3102/02/2022 15:576:25
34IN00020574George BrassingtonDerek GreenAngela Ross8:4017:0002/02/2022 09:5102/02/2022 09:590:07
35IN00020575Leisha Murphy can't login to QLRobert HallLeisha Murphy8:4017:0002/02/2022 09:5703/02/2022 08:326:55
36IN00020576Unable to sign in to Outlook needs QR codeYvonne ODonovanGary Chisholm8:4017:0002/02/2022 11:1502/02/2022 11:480:33
37IN00020577Cannot access adelante paymentsYvonne ODonovanTheresia Ellis8:4017:0002/02/2022 11:4102/02/2022 11:440:02
38IN00020579Cannot generate documents on UniformTibor BorzasiBarry Agnew8:4017:0002/02/2022 11:4702/02/2022 12:060:18
39IN00020580BabatundeRobert HallBabatunde Aregbesola8:4017:0002/02/2022 12:3402/02/2022 13:010:27
40IN00020581QL not working on shared PC, 7JMXZS2Yvonne ODonovanDarren Foster8:4017:0002/02/2022 13:0008/02/2022 07:4528:05
41IN00020582headsetYvonne ODonovanLijana Armalaite8:4017:0002/02/2022 14:1302/02/2022 15:251:12
42IN00020583My H drive is not workingPeter ConnellyAmanda King8:4017:0002/02/2022 14:3410/02/2022 11:4947:14
43IN00020585my works mobile phone is not taking incoming calls, it makes a high pitch noise and the screen goes blank.Yvonne ODonovanDaniel Boon8:4017:0002/02/2022 14:4724/02/2022 12:27130:59
44IN00020589ArcReader GIS not workingMatt BealeTracy James8:4017:0003/02/2022 08:2503/02/2022 10:241:59
45IN00020590Unable to open pdfPeter ConnellyColin Cox8:4017:0003/02/2022 08:5303/02/2022 09:120:18
46IN000205922x Docks, 2x MonitorsMatt BealeMarion Williams8:4017:0003/02/2022 11:1810/02/2022 08:5639:17
47IN00020593Aadil EssaYvonne ODonovanAngela Ross8:4017:0003/02/2022 13:0207/02/2022 16:0819:46
48IN00020595I can't believe I'm saying this, but Outlook doesn't work. AgainMatt BealeJames French8:4017:0003/02/2022 14:3303/02/2022 22:428:08
Resolution TIme
Cell Formulas
RangeFormula
I2:I48I2=IF(INT(G2)=INT(H2),H2-G2,F2-MOD(G2,1)+MOD(H2,1)-E2+MAX(0,NETWORKDAYS(INT(G2)+1,INT(H2)-1,holidays))*(F2-E2))
Named Ranges
NameRefers ToCells
holidays='Resolution TIme'!$K$2:$K$3I2:I48
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top