Nested IF function

haj284

New Member
Joined
Jul 10, 2012
Messages
14
Someone please help me with these formulas! I am so upset I can not figure these out. PLEASE HELP :(

1. Enter a formula to calculate the number of gallons billed, based on the following rules: If a customer's bill is waived (Bill Waived column) or the number of gallons used is less than 25,000 (Gal Used column), display 0 in Gal Billed column; otherwise display the value from the gallon used column in the gal billed column

2. Enter a Formula to calculate the water bill based on the following rules: The billing rate varies based on the type pf customer (cust type column). The billing rate is $3, $2, or $1.50 per thousand gallons billed, depending on the customer type(see the lookup table in cells b2:c5 of the billing rate worksheet)

**billing rate COM-$3 NPROFIT-$2 Gov-$1.50**

heres what my worksheet looks like. please help me with what each of these formulas are.

Customer NameCust TypeBill WaivedTaxableBilling YearGal UsedGal BilledWater bill
Red Lake ChapterNPROFITNoYes2013108,300
Amity ChurchNPROFITYesNo201355,160
Church of ChristNPROFITYesNo201332,430
NM State HighwayGOVNoNo201395,660
Spot Free Power WashCOMNoYes2013281,200
CIT Apartment ComplexCOMNoYes2013257,000
Housing AgencyGOVNoNo201323,300
Pinon Pizza EdgeCOMNoYes201381,110
Department of AgricultureGOVNoNo20132,783,000
Chevron StationCOMNoYes20131,131,600

<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL><COL span=2></COLGROUP>
 
Great thanks ! I have a few more if you have time and don't mind.
4. add a column named tax (I1) to the table then enter a formula to calculate the tax based on the following rule: If a customer pays tax (taxable column), then multiply the waterbill by 3.5%;otherwise the tax is 0. the tax rate is stored in cell T1


Customer NameCust TypeBill WaivedTaxableBilling YearGal UsedGal BilledWater billTax
Red Lake ChapterNPROFITNoYes2013108,300108300216
Amity ChurchNPROFITYesNo201355,16000
Church of ChristNPROFITYesNo201332,43000
NM State HighwayGOVNoNo201395,66095660142.5
Spot Free Power WashCOMNoYes2013281,200281200843
CIT Apartment ComplexCOMNoYes2013257,000257000771
Housing AgencyGOVNoNo201323,30000
Pinon Pizza EdgeCOMNoYes201381,11081110243
Department of AgricultureGOVNoNo20132,783,00027830004174.5
Chevron StationCOMNoYes20131,131,60011316003393
O B Trailer ServiceCOMNoYes2013360,8003608001080
Red Mesa Express COMNoYes2013392,6003926001176
Inscription House IrrigationGOVNoNo2013895,3008953001342.5
Pure Lake BuildingCOMNoYes201359,24059240177
Assembly Of God ChurchNPROFITYesNo201341,69000

<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL><COL span=3></COLGROUP>
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,216,111
Messages
6,128,898
Members
449,477
Latest member
panjongshing

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