0
I have a spreadsheet 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 one means he was in transit and the rest are factory codes. I need to calculate the time he was en route and the time he was in the factories but I have no idea how to do it. I appreciate the help.
