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.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

kevatarvind

Well-known Member
Joined
Mar 3, 2013
Messages
1,047
Office Version
  1. 365
Platform
  1. Windows
remove all $ Sign in formulas and use it in Cell Formats
 

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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,943
Messages
5,856,430
Members
431,813
Latest member
seconduser

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