R
Ron Rosenfeld
I am trying to calculate a progressive rate for water use charges:
<8500=$40,
8501 up to [email protected]/1000
21000 up to [email protected]/1000
Col.A lists consumtion in gallons
is there a formula I can use for this?
You have some undefined amounts and inconsistencies.
For example, 8500-8501
20999-21000
But the following seems to do what you want. You can modify some of the
breakpoints if necessary.
Set up a 3 column table someplace on your sheet as follows and NAME it
RateTable:
0 $0.00000 $0.00475
8500 $40.37500 $0.00475
21000 $99.75000 $0.00525
50000 $252.00000 $0.00600
Then use this formula:
=IF(gals<=8500,40,VLOOKUP(gals,RateTbl,2)+
VLOOKUP(gals,RateTbl,3)*(gals-VLOOKUP(gals,RateTbl,1)))
--ron