I am trying to calculate the mileage of a vehicle that has a number of meter entries in a table. What I need to do is pull out the first and last entry in that table and calculate the mileage driven of the unit by subtracting the first mileage from the last.
My data looks like this:
UNIT MILEAGE DATE
KN5644 34,560 3/4/2008 1:20:56 PM
KN5644 36,345 5/2/2008 3:50:34 PM
KN5644 40,345 8/9/2008 5:23:44 PM
KN5644 55,345 7/3/2009 2:34:56 PM
KN5644 70,555 2/2/2010 7:34:33 PM
I want to be able to calculate the mileage driven between the first period and the last period on a single line. (70,555 - 34,560 = 35,995)
Any help would be appreciated!
My data looks like this:
UNIT MILEAGE DATE
KN5644 34,560 3/4/2008 1:20:56 PM
KN5644 36,345 5/2/2008 3:50:34 PM
KN5644 40,345 8/9/2008 5:23:44 PM
KN5644 55,345 7/3/2009 2:34:56 PM
KN5644 70,555 2/2/2010 7:34:33 PM
I want to be able to calculate the mileage driven between the first period and the last period on a single line. (70,555 - 34,560 = 35,995)
Any help would be appreciated!