calculating difference between date/time fields
This looks great.. Is there any way to display the negative numbers?
"Mike H" wrote:
Try
=(NETWORKDAYS(G3,I3)-1)*(TIME(17,0,0)-TIME(8,0,0))+IF(NETWORKDAYS(I3,I3),MEDIAN(MOD(I3,1 ),TIME(17,0,0),TIME(8,0,0)),TIME(17,0,0))-MEDIAN(NETWORKDAYS(G3,G3)*MOD(G3,1),TIME(17,0,0),T IME(8,0,0))
This wouldn't work if a deal closed early so post back if that's an issue.
Mike
"drew" wrote:
I am trying to count the difference between two fields which are date/time to
show if we met our service level agreements. However, I don't want to count
non business hours.
Business Hours are 8-5.
For example
Cell G3 is the date customer wants to close the deal - 6/23/2008 9:00 AM
Cell I3 is actual closing date 6/23/2008 10:45 AM
I would expect to see (1:45)
Can anyone help? Thanks!
|