OK, sorry to test your patience again.
So far I have come to this formula which is working:
=MAX(CEILING (((E3*$AG$2*$AD$2)+(F3*2))*$AF$2;5);50)
In this case:
E3 is the number of kms
$AG$2 is the return kms factor
$AD$2 is the cost per mile
F3 is the cost of tolls (x 2 for the return trip)
$AF$2 is the cost of VAT TAX
5 is the round up value.
50 is the minimum price
Now, I want to add the following condition: If a trip (considering the return) exceeds X number of kms, the cost of a driver's meal must be included.
In this case, if a one way trip (E3 cell) exceeds 275 kms, then the cost in the $AH$2 cell must be added to the calculation BEFORE VAT. If the one way trip is less than 275 kms, then no cost (or zero cost) should be added.
I assume this involves the use of the IF function, but, can you help with this?
Thank you.
Bookmarks