You can use VLOOKUP to pull the data from the sheets with the beginning mileage, ending mileage etc. to the "refueling" sheet.
Does each vehicle have its own sheet? I'll assume that it does, for the sake of simplicity (if that's not the case, let us know).
In order to pull data from your first sheet to your second sheet (refueling sheet), you will need to find the specific trip. If you don't have a trip identifier, then maybe time and date will work.
Let's say the begining mileage, e.g., is in column B of Sheet 1. You'd have this formula on Sheet 2 (refueling sheet):
=VLOOKUP(A1, 'Sheet 1'!$A$1:$F$100, 2, FALSE)
- A1 is the trip identifier (again, could be time-date)
- 'Sheet 1'!$A$1:$F$100 is the range on your first sheet which has the general mileage data.
- 2 is a column offset
- FALSE means it will look for an exact match
This will take the trip identifier that is in A1 of Sheet 2, and look for it in column A of Sheet 1. When it finds it, it will go to the second column in the range (col. B of Sheet 1) and show what's there.
To get the value from col. C (ending mileage?), you'd change the 2 in the formula to a 3.
I hope this helps, but please add detail, or e-mail, if you need more info.
Best of luck.
.