I have a worksheet that tells me where a truck was at a certain time:
DATA/HORA COD. REVENDA
24/1/17 0:50 1
24/1/17 0:51 1
24/1/17 0:53 1
24/1/17 0:54 1
24/1/17 0:56 1
24/1/17 0:57 1
24/1/17 0:59 2
24/1/17 1:00 2
24/1/17 1:04 2
24/1/17 1:07 2
24/1/17 3:00 1
24/1/17 3:00 1
24/1/17 3:15 1
24/1/17 3:25 1
Code 1 means that it was in transit and the others are factory codes. I need to calculate the time he got en route and how long he stayed at the factories but I have no idea how. Thanks for the help.