Calculating business hours spent on a ticket

sydches

New Member
Joined
Apr 22, 2010
Messages
1
Hi,

I've attached a file here which has the relevant info.

Basically, I'm trying to understand the time spent within my queue (MyTime), and also calculating the time spent in the customer's queue (CustTime). As you can see, my formulae in the columns D and E are positional, and not dynamically looking through unsorted data.

1. This is dependent on correctly sorted data (sorted by ticketno and by time columns)
2. "CustQueue" is a hardcoded value and is not from a range of values, which would be ideal


What's the best way to solve this problem?
Appreciate the suggestions in advance. Thanks for the help!

Unable to attach a file to the post...so here's the data (I can mail example file on request)
TicketNo Assignment Time MyTime CustTime
MyTicket1 CustQueue 17/03/2004 20:19:22 0 0
MyTicket1 MyQueue 17/03/2004 20:20:01 0 0.000451389

The formulas in D2 and E2 read
=IF(A2=A1,IF(OR(AND(B2="CustQueue",B2<>B1),AND(B2<>"CustQueue",B1<>"CustQueue")),MOD(C2,1)-MOD(C1,1)+(NETWORKDAYS(C1,C2,Hols)-1)*1/3,0),0)
=IF(A2=A1,IF(OR(AND(B2="CustQueue",B2<>B1),AND(B2<>"CustQueue",B1<>"CustQueue")),0,MOD(C2,1)-MOD(C1,1)+(NETWORKDAYS(C1,C2,Hols)-1)*1/3),0)
respectively

Syd
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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