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!
[TABLE="width: 542"]
<colgroup><col><col span="2"><col span="2"></colgroup><tbody>[TR]
[TD]base rate[/TD]
[TD="align: right"]14.61[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]0-2ccf[/TD]
[TD="align: right"]3.76[/TD]
[TD][/TD]
[TD="colspan: 2"]0-1496 gal[/TD]
[/TR]
[TR]
[TD]2-5 ccf[/TD]
[TD="align: right"]8.49[/TD]
[TD][/TD]
[TD="colspan: 2"]1496-3740 gal[/TD]
[/TR]
[TR]
[TD]5-8ccf[/TD]
[TD="align: right"]9.3[/TD]
[TD][/TD]
[TD="colspan: 2"]3740-5984 gal[/TD]
[/TR]
[TR]
[TD]8-15ccf[/TD]
[TD="align: right"]28.42[/TD]
[TD][/TD]
[TD="colspan: 2"]5984-11220 gal[/TD]
[/TR]
[TR]
[TD]>15ccf [/TD]
[TD="align: right"]71.24[/TD]
[TD][/TD]
[TD="colspan: 2"]>11220 gal[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 542"]
<colgroup><col><col span="2"><col span="2"></colgroup><tbody>[TR]
[TD]base rate[/TD]
[TD="align: right"]14.61[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]0-2ccf[/TD]
[TD="align: right"]3.76[/TD]
[TD][/TD]
[TD="colspan: 2"]0-1496 gal[/TD]
[/TR]
[TR]
[TD]2-5 ccf[/TD]
[TD="align: right"]8.49[/TD]
[TD][/TD]
[TD="colspan: 2"]1496-3740 gal[/TD]
[/TR]
[TR]
[TD]5-8ccf[/TD]
[TD="align: right"]9.3[/TD]
[TD][/TD]
[TD="colspan: 2"]3740-5984 gal[/TD]
[/TR]
[TR]
[TD]8-15ccf[/TD]
[TD="align: right"]28.42[/TD]
[TD][/TD]
[TD="colspan: 2"]5984-11220 gal[/TD]
[/TR]
[TR]
[TD]>15ccf [/TD]
[TD="align: right"]71.24[/TD]
[TD][/TD]
[TD="colspan: 2"]>11220 gal[/TD]
[/TR]
</tbody>[/TABLE]