Nesting If Functions

nelsonjos

New Member
Joined
Mar 25, 2013
Messages
5
Hello,

I am working on creating a payroll. I am attempting to add a line to how much medical insurance will be taken out each paycheck. The parameters that I need to follow are: $30 automatically is taken out, with dependents more than 2 but less than 3 pay additional 6.50/dependent over 2, dependents over 2 but less than 6 pay additional 5.50/dependent, and over 6 dependents pay the rate for 6 dependents.

I have been working on this for hours and the formula that I have right now is:
If(MedicalInsurance="NO",0,If(dependents>6,($5.50*6)+$30,If(dependents>3,(dependents*$5.50)+$30,if(dependents<3,(dependents*$6.50)+$30,0))))

I have a feeling that I am making one little mistake but cannot figure it out.

Any help is much appreciated.
 

Some videos you may like

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

nelsonjos

New Member
Joined
Mar 25, 2013
Messages
5
Most of those are just there to explain what I am trying to do. I have most of those numbers on a different sheet, I just didn't want to make it more confusing than it already is.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,371
Messages
5,595,784
Members
414,020
Latest member
Meghdad

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
Top