Water Billing Rates Formula

EvanBerrett

New Member
Joined
Mar 25, 2020
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a formula that allows me to evaluate scenarios for water billing rates. These rates use a progressive tier system and I'm trying to calculate the monthly bill based on total water consumption. So for example:

Consumption: 200 Kgal

Tiers:

A: 0 - 6 Kgal

B: 6 - 12 Kgal

C: 12 - 18 Kgal

D: 18+ Kgal



Rates:

A: $0.80/Kgal

B: $0.85/Kgal

C: $0.90/Kgal

D: $0.95/Kgal



So assuming 200 Kgals used, the first 6 Kgal will be at $0.80/Kgal, the second 6 Kgal will be billed at $0.85/Kgal, the third 6 Kgal will be billed at $0.90/Kgal, and anything over 18 Kgal will be billed at $0.95/Kgal.

Any help with a formula that can help me accomplish this would be great. Thanks in Advance.
 
Thanks for feedback.
I cleaned up the post.
T202003a.xlsm
BCDEF
1Number Kgal100.00
2Amount93.20 93.20 93.20 93.20
3
4UnitsRatesRate Diff
5blank row
600.800.80
760.850.05
8120.900.05
9180.950.05
7a
Cell Formulas
RangeFormula
C2C2=SUMPRODUCT(--(C1>=B6:B9),--(C1-B6:B9),D6:D9)
D2D2=SUMPRODUCT(--(C1>B6:B9),--(C1-B6:B9),(C6:C9-C5:C8))
E2E2=SUMPRODUCT(--(C1>{0;6;12;18}),--(C1-{0;6;12;18}),{0.8;0.05;0.05;0.05})
F2F2=(C1>0)*C1*0.8+(C1>6)*(C1-6)*0.05+(C1>12)*(C1-12)*0.05+(C1>18)*(C1-18)*0.05
D6D6=C6-N(C4)
D7:D9D7=C7-N(C6)
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Thanks for feedback.
I cleaned up the post.
T202003a.xlsm
BCDEF
1Number Kgal100.00
2Amount93.20 93.20 93.20 93.20
3
4UnitsRatesRate Diff
5blank row
600.800.80
760.850.05
8120.900.05
9180.950.05
7a
Cell Formulas
RangeFormula
C2C2=SUMPRODUCT(--(C1>=B6:B9),--(C1-B6:B9),D6:D9)
D2D2=SUMPRODUCT(--(C1>B6:B9),--(C1-B6:B9),(C6:C9-C5:C8))
E2E2=SUMPRODUCT(--(C1>{0;6;12;18}),--(C1-{0;6;12;18}),{0.8;0.05;0.05;0.05})
F2F2=(C1>0)*C1*0.8+(C1>6)*(C1-6)*0.05+(C1>12)*(C1-12)*0.05+(C1>18)*(C1-18)*0.05
D6D6=C6-N(C4)
D7:D9D7=C7-N(C6)

EDIT, I figured it out. Thanks!
 
Upvote 0
Many thanks. In future please supply the links in the op.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,193
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top