Calculating time taken

silentbob30

New Member
Joined
Jun 9, 2009
Messages
35
Hello,

I am putting together a spreadsheet to report on how long it takes someone to close a ticket from the time it is opened.

in column A I have a list of ticket numbers, in F I have whether the call was created or closed. The format of these is CALL CREATED and CLOSED. In column GI have a date and time in the format of 05/11/2010 15:49.

The data is column A is in no order so call 1 could be opened on row 2 but not closed until row 10 and in the middle several other tickets could of been opened and closed. -- Hope that makes sense

If I have a list of all the ticket numbers in sheet 2 column A is there a formula I can use to work out the length of time taken from the call creation to when it was closed in days, hours and minutes.

THanks for all help offered
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
You could do it with a pivottable. Sample source data:

Excel Workbook
ABCDEFG
1Ticket idBlah1Blah2Blah3Blah4StatusStamp
2T123AAsfsddfsfsddfsfsddfsfsddfCALL CREATED10/01/2011 13:32
3T2FFFsfsddfsfsddfsfsddfsfsddfCALL CREATED12/02/2011 09:45
4T2FFFsfsddfsfsddfsfsddfsfsddfCLOSED14/02/2011 08:32
5T3HGTsfsddfsfsddfsfsddfsfsddfCALL CREATED16/02/2011 16:34
6T4LKIsfsddfsfsddfsfsddfsfsddfCALL CREATED18/02/2011 11:11
7T123AAsfsddfsfsddfsfsddfsfsddfCLOSED21/02/2011 12:45
8T5DDEsfsddfsfsddfsfsddfsfsddfCALL CREATED22/02/2011 14:33
9T4LKIsfsddfsfsddfsfsddfsfsddfCLOSED23/02/2011 17:32
10T3HGTsfsddfsfsddfsfsddfsfsddfCLOSED24/02/2011 12:12
11T5DDEsfsddfsfsddfsfsddfsfsddfCLOSED25/02/2011 13:14
Sheet1


Example PivotTable:

Excel Workbook
HIJKLM
1Sum of StampStatus
2Ticket idCALL CREATEDCLOSEDFormula1
3T123AA10/01/2011 13:3221/02/2011 12:4510 days 23:13
4T2FFF12/02/2011 09:4514/02/2011 08:321 days 22:47
5T3HGT16/02/2011 16:3424/02/2011 12:127 days 19:38
6T4LKI18/02/2011 11:1123/02/2011 17:325 days 06:21
7T5DDE22/02/2011 14:3325/02/2011 13:142 days 22:41
8
Sheet1


Using Sum for the data items, and a calculated Item to get the difference between CLOSED and CALL CREATED. Custom format of the calculated item gives days and hh:mm ... but this is limited to a max of 31 days. You could still use a pivottable to align the CLOSED and CALL CREATED times and do a calculation for the difference outside of the PivotTable, of course.
 
Upvote 0
Thanks for that and I can see how it would work I am just having trouble implementing it.

It seems beyond my skill level. Any extra details would be appreciated.

I am not sure what you mean by 'Using Sum for the data items'
 
Last edited:
Upvote 0
Hi

I am getting somewhere but when I add the details field the pivot table shows the call created and closed fields as blank.
 
Upvote 0
It's a bit hard to imagine what's going on without some data, and an idea of what your pivottable looks like. Can you post something?
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,480
Members
452,915
Latest member
hannnahheileen

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