Help with IF Statement for Billing Tiered Water Rates

rsisk3365

New Member
Joined
Mar 1, 2018
Messages
2
I have a problem I cannot work out. I need to show billing numbers according to the following table but cannot get my IF statement right. It is beyond my comprehension and I need help! Thanks!

base rate14.61
0-2ccf3.760-1496 gal
2-5 ccf8.491496-3740 gal
5-8ccf9.33740-5984 gal
8-15ccf28.425984-11220 gal
>15ccf 71.24>11220 gal

<colgroup><col><col span="2"><col span="2"></colgroup><tbody>
</tbody>
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I am converting ccf to gallons, on the right, and am billing per gallon. All customers get charged the $14.61 base fee, then less than 2 ccf, or 1496 gallons would be 3.76 per 100 gallons.
 
Upvote 0
See if this does what you want...

Excel Workbook
ABCDEFGH
1base rate (ccf)$14.61
2gallonsPrice/100 galccf used100s of gallons
31.511.22078
40-20-1496 gal3.76$ 42.19
52-51496-3740 gal8.49
65-83740-5984 gal9.3
78-155984-11220 gal28.42
8>15>11220 gal71.24
9
10Total =$ 56.80
Sheet1



Formulae:
H4 =IF(E3<=2,C4*F3,C4*2*7.48052)
H5=IF(AND(E3>2,E3<=5),(F3-14.48052)*C5,IF(E3>5,C5*3*7.48052,""))
H6=IF(AND(E3>5,E3<=8),(F3-37.4026)*C6,IF(E3>8,C6*3*7.48052,""))
H7=IF(AND(E3>8,E3<=15),(F3-59.84416)*C7,IF(E3>8,C7*7*7.48052,""))
H8=IF((E3>15),(F3-112.2078)*C8,"")
 
Last edited:
Upvote 0
See if this does what you want...

Sheet1

A
B
C
D
E
F
G
H
1
base rate (ccf)
$14.61
2
gallons
Price/100 gal
ccf used
100s of gallons
3
1.5
11.22078
4
0-2
0-1496 gal
3.76
$ 42.19
5
2-5
1496-3740 gal
8.49
6
5-8
3740-5984 gal
9.3
7
8-15
5984-11220 gal
28.42
8
>15
>11220 gal
71.24
9
10
Total =
$ 56.80

<tbody>
</tbody>


Excel tables to the web >> <a target="_blank" index.php?f='1"' www.excel-jeanie-html.de="" *******="_gaq.push(['_trackEvent', 'Outgoing', '', '<a href=">http://www.excel-jeanie-html.de/index.php?f=1</a>']);" style ="font-family:Arial; font-size:9pt; color:#fcf507; background-color:#800040; font-weight:bold;" href="http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4


Formulae:
H4 =IF(E3<=2,C4*F3,C4*2*7.48052)
H5=IF(AND(E3>2,E3<=5),(F3-14.48052)*C5,IF(E3>5,C5*3*7.48052,""))
H6=IF(AND(E3>5,E3<=8),(F3-37.4026)*C6,IF(E3>8,C6*3*7.48052,""))
H7=IF(AND(E3>8,E3<=15),(F3-59.84416)*C7,IF(E3>8,C7*7*7.48052,""))
H8=IF((E3>15),(F3-112.2078)*C8,"")

Ooops! Small correction to the formula in cell H7:

H7=IF(AND(E3>8,E3<=15),(F3-59.84416)*C7,IF(E3>15,C7*7*7.48052,""))

Also...the formula in cell F3 is:

F3=E3*748.052/100
 
Last edited:
Upvote 0
Hi,

To clarify, are you billing Per Gallon, or Per 100 Gallons?
So if 1500 Gallons were used, what is the correct result?
The 4 Gallons that exceeds Tier 1 of 1496, is that charged as 4 Gallons, or rounded up to 100 Gallons?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,160
Messages
6,129,215
Members
449,493
Latest member
JablesFTW

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