Aug 15 2021 01:33 AM
Dear all,
I have attached a spreadsheet containing raw data set for a fuel control spreadsheet.
We have 4 types of vehicles:
- Trucks, we dispense the exact amount of fuel according to the destination. The file works out the usage for those vehicles, therefore doesn't require attention
- Earthmoving, Buses & Other vehicles, we give fuel by completely filling up the tank. We are only able to know the usage the next time they refill.
In the case of the Earthmoving, Buses & Other vehicles, I would like to automatically populate column M ("Actual Volume Used") with the next entry for the same vehicle. Therefore we need a criteria match in column E ("Vehicle Fleet Number") and populate the cell with the next volume reading (column L) IF cells in column Q are "Earthmoving", "Buses" or "Other Vehicles". If there's no criteria match, we can keep the same formula currently present.
I hope this makes sense, any help would be hugely appreciated. @mtarler
Many Thanks, Vito
Aug 15 2021 01:39 AM
Aug 15 2021 03:32 AM
Solution@vitoaiaco That formula breaks because you are trying to look up the 8th column in a range that contains only 5 columns (E through I).
Aug 15 2021 04:19 AM
Aug 15 2021 04:28 AM
@vitoaiaco Sorry, don't follow. Cell M9 will return 119.00 with the adjusted formula. This is the number found in L19 for vehivle number "LD 02". Correct? What volume (e.g. in which column/cell) doesn't change the value in M?
Aug 15 2021 04:42 AM
@Riny_van_Eekelen Yes, that's correct... As it stands, Cell M9 will CORRECTLY return 119.00 with the adjusted formula. Let's say you change the value in L19 to 200 instead of 119. The value in M9 will still be 119.00 UNLESS I manually refresh the formula in M9. Is there a way to automatically refresh the formula to populate according to the latest entry?
Many Thanks
Vito
Aug 15 2021 04:45 AM
Aug 15 2021 04:48 AM
@vitoaiaco Was just writing a response along those lines. You're welcome!