Hi, I'm having a little trouble with the logic in writing a nested IF/AND statement.
I want to make a calculator to determine the cost of mileage at the following rates
Distance Boundaries Rate/km
0 100 $2.00
101 500 $1.75
501 2000 $1.50
2001 6000 $1.25
6001 infinity $1.00
That is, if I travel 1500 miles, the first 100 will be at $2, the next 400 will be at $1.75, etc
0 - 100 is easy, but the next lines have me puzzled
the best I have come up with for 101 to 500 so far is
=IF(AND(E$12>=$B16,E12<=$C16),$D16*(E$12-C15))
Is it OK to attach the file?
Cheers
Roy Price
Alice Springs
Australia
Bookmarks