katryte623
New Member
- Joined
- May 30, 2018
- Messages
- 5
I'm going to explain this as easy as I possibly can. Cell Z4 has a fuel amount. Let's say $2.50. If that amount falls within this range, then it will multiply by that percentage. So if somebody where to change the number in Z4, the result would update. The result is going in cell Z10.
Now once the fuel surcharge is calculated, I also need the fuel calculated which is a simple Y10*1.65.
So my original calculation was:
=IF(AND(Z4>=A42,Z4<B42),Z4*D42,IF(AND(Z4>=A43,Z4<B43),Z4*D43,IF(AND(Z4>=A44,Z4<B44),Z4*D44,IF(AND(Z4>=A45,Z4<B45),Z4*D45,IF(AND(Z4>=A46,Z4<B46),Z4*D46)*IF(AND(Z4>=A47,Z4<B47),Z4*D47,IF(AND(Z4>=A48,Z4<B48),Z4*D48,IF(AND(Z4>=A49,Z4<B49),Z4*D49,IF(AND(Z4>=A50,Z4<B50),Z4*D50,IF(AND(Z4>=A51,Z4<B51),Z4*D51,IF(AND(Z4>=A52,Z4<B52),Z4*D52,IF(AND(Z4>=A53,Z4<B53),Z4*D53,IF(AND(Z4>=A54,Z4<B54),Z4*D54,IF(AND(Z4>=A55,Z4<B55),Z4*D55)))))))))))))+(X10*1.65)
but that did not work
column A column B column D
row 42 $2.60 $2.69 1%
row 43 $2.70 $2.79 2%
row 44 $2.80 $2.89 3%
row 45 $2.90 $2.99 4%
row 46 $3.00 $3.09 5%
row 47 $3.10 $3.19 6%
row 48 $3.20 $3.29 7%
row 49 $3.30 $3.39 8%
row 50 $3.40 $3.49 9%
row 51 $3.50 $3.59 10%
row 52 $3.60 $3.69 11%
row 53 $3.70 $3.79 12%
row 54 $3.80 $3.89 13%
row 55 $3.90 $3.99 14%
Thank you!
Now once the fuel surcharge is calculated, I also need the fuel calculated which is a simple Y10*1.65.
So my original calculation was:
=IF(AND(Z4>=A42,Z4<B42),Z4*D42,IF(AND(Z4>=A43,Z4<B43),Z4*D43,IF(AND(Z4>=A44,Z4<B44),Z4*D44,IF(AND(Z4>=A45,Z4<B45),Z4*D45,IF(AND(Z4>=A46,Z4<B46),Z4*D46)*IF(AND(Z4>=A47,Z4<B47),Z4*D47,IF(AND(Z4>=A48,Z4<B48),Z4*D48,IF(AND(Z4>=A49,Z4<B49),Z4*D49,IF(AND(Z4>=A50,Z4<B50),Z4*D50,IF(AND(Z4>=A51,Z4<B51),Z4*D51,IF(AND(Z4>=A52,Z4<B52),Z4*D52,IF(AND(Z4>=A53,Z4<B53),Z4*D53,IF(AND(Z4>=A54,Z4<B54),Z4*D54,IF(AND(Z4>=A55,Z4<B55),Z4*D55)))))))))))))+(X10*1.65)
but that did not work
column A column B column D
row 42 $2.60 $2.69 1%
row 43 $2.70 $2.79 2%
row 44 $2.80 $2.89 3%
row 45 $2.90 $2.99 4%
row 46 $3.00 $3.09 5%
row 47 $3.10 $3.19 6%
row 48 $3.20 $3.29 7%
row 49 $3.30 $3.39 8%
row 50 $3.40 $3.49 9%
row 51 $3.50 $3.59 10%
row 52 $3.60 $3.69 11%
row 53 $3.70 $3.79 12%
row 54 $3.80 $3.89 13%
row 55 $3.90 $3.99 14%
Thank you!