View Single Post
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SM_NCSW SM_NCSW is offline
external usenet poster
 
Posts: 11
Default Formula Function

John
I'm sorry please let me clarify. If a account uses up to 8500 it is an
automatic min. charge of $40, if they use 0-20999 they would be billed
@4.75/1000, /1000,50000@6/1000. The problem is the adding
the differnces together. Example if they used 52000 they would be billed 4.75
the first 21K plus plus 2K@6

"John C" wrote:

Are you sure you are accurate?
You gave us information saying <8500 = 40
8501-21000 = 4.75/1000. I think this is where the error lies. Are you saying
that if they are between 8500 and 21000, then it is 4.75/1000 from gallon 0
to 15000(ex?). Or is it a flat 40 for the first 8500, and then 4.75/1000
between 8500 and 21000. Your other response states that it is 4.75/1000 for
21000 gallons = 99.75, but this would cover the first 8500 as well. Assuming
that is what you are wanting, and then overages over 21000 are at 5.25/1000
and overages over 50000 are 6/1000, then perhaps this formula will work.
=CHOOSE(LOOKUP(A1,{0,1;8501,2;21000,3;50001,4}),40 ,INT(A1/1000)*4.75+40,INT((A1-21000)/1000)*5.25+99.75,INT((A1-50000)/1000)*6+99.75+152.25)
And this also only bills if full 1000 gallon increments.
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"SM_NCSW" wrote:

The formula does function but it is not adding the differnce of the rates
Example:
if a consumption is 22000
per = 99.75
additonal
total of 105.00

formula is producing 115.50


"John C" wrote:

I just posted this formula for a similar type question. With a similar
formula, how about this?

=CHOOSE(LOOKUP(A1,{0,1;8501,2;21000,3;50001,4}),40 ,A1*4.75/1000,A1*5.25/1000,A1*5.25/1000)

I think these are the calculations you want. If not, I think you can follow
the pattern, otherwise, post back, and give sample expectations.
--
** John C **


"SM_NCSW" wrote:

I am trying to calculate a progressive rate for water use charges:
<8500=$40,
8501 up to /1000
21000 up to /1000
50000 @6.00/1000

Col.A lists consumtion in gallons
is there a formula I can use for this?