I'm sure that I'm over complicating.
Essentially I need to calculate the amount per journey where the amount is $0.45 per mile for the first 10,000 and $0.25 thereafter. My formula works fine up to 10,000 and for the journey that crosses the threshold but not for amounts over 10,000
=IF(D6<$I$1,C6*$G$1,IFD6>=$I$1,SUM($I$2-D5)*$G$1+(D6-$I$2)$G2,1))
where G1 = 0.45 and G2 = 0.25 and I1 and I2 equal 10,000
D5 is the previous total number of miles travelled, D6 is the new total number of miles and C6 is the total for the individual journey
Help much appreciated as always!
Kevin
Essentially I need to calculate the amount per journey where the amount is $0.45 per mile for the first 10,000 and $0.25 thereafter. My formula works fine up to 10,000 and for the journey that crosses the threshold but not for amounts over 10,000
=IF(D6<$I$1,C6*$G$1,IFD6>=$I$1,SUM($I$2-D5)*$G$1+(D6-$I$2)$G2,1))
where G1 = 0.45 and G2 = 0.25 and I1 and I2 equal 10,000
D5 is the previous total number of miles travelled, D6 is the new total number of miles and C6 is the total for the individual journey
Help much appreciated as always!
Kevin