Hi Guys,
I need to identify pairs and calculate the time difference between two date-times provided:
1) It belongs to the same customer
2) The two date-time's difference is not beyond +/- 10 seconds
The pairing is done as following:
I1-T1 or T1-I1
I2-T2 or T2-I2
I3-T3 or T3-I3
I4-T4 or T4-I4
I5-T5 or T5-I5
I6-T6 or T6-I6
Where ever these conditions don't meet, it should be blank.
Example INPUT data:
Cust Date Category Expected O/P
A 8/30/2014 8:46:04 I2
A 8/30/2014 8:46:05 I1 -1.0001042
A 8/30/2014 8:46:07 I4
A 8/30/2014 8:46:14 T1 1.0001042
A 9/1/2014 9:00:01 T2
B 8/16/2014 16:25:15 T3 -0.0000116
B 8/16/2014 16:25:16 I3 0.0000116
B 8/16/2014 16:24:34 T4
C 10/1/2014 14:20:14 I4
C 10/1/2014 14:20:18 I5
C 10/2/2014 12:12:16 T5
C 10/2/2014 17:30:02 T6
Please help me out guys
Thanks,
Chippi
Bookmarks