Im trying to write a formula that does one thing if the number is below a low test value, does a second thing if the number is between a low and high test values and a third if the number is above the high test value. It's for an electrical billing formula
Needs to be a single formula that gives cost1, cost2, cost3 plus total at all levels of usage.
I can use an IF(AND(>50,<200), TRUE,FALSE) will give me the "between" # but not the correct low and high in the same equation.
Thanks in advance
$/kWh | cost@Usage | |||
40 kWh | 80 kWh | 319 kWh | ||
Rate first 50 kWh | $0.33 | cost1 40@.33=13.2 | 50@.33=16.5 | 50@.33=16.5 |
Rate 51-200 kWh | $0.38 | cost2 0@.38=0 | 80-50=30@.38=11.4 | 200-50@.38=57 |
Rate above 200 kWh | $0.43 | cost3 0@.43=0 | 0@.43=0 | 319-200@.43=51.17 |
Total | Total=$@rate1+$@rate2+$@rate3 | $13.20 | $27.90 | $124.67 |
I can use an IF(AND(>50,<200), TRUE,FALSE) will give me the "between" # but not the correct low and high in the same equation.
Thanks in advance