Nested IF statements with <> values

Ozzie-Bel

New Member
Joined
Aug 7, 2013
Messages
1
I'm trying to create a formula that will calculate staff entitlements based on years of service.
  1. If they have worked less than 5 years they get nothing.
  2. If they have worked between 5-7 years they get 50%
  3. If they have worked more than 7 yers they get the full 100%.

=+IF(K1<5,0,IF(K1>4.99<7,(G1*0.5),IF(K1>7,(G1))))

Where K1 = years of service &
G1 = entitlement

This works for arguements 1 and 3 but not 2.

Can someone help?
Thanks Ozzie-Bel
 

Excel Facts

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

You can also try this:

=+IF(K1<5,0,IF(AND(K1>=5,K1<7),(G1*0.5),IF(K1>=7,(G1))))

hsc
 
Upvote 0
I'm trying to create a formula that will calculate staff entitlements based on years of service.
  1. If they have worked less than 5 years they get nothing.
  2. If they have worked between 5-7 years they get 50%
  3. If they have worked more than 7 yers they get the full 100%.

=+IF(K1<5,0,IF(K1>4.99<7,(G1*0.5),IF(K1>7,(G1))))

Where K1 = years of service &
G1 = entitlement

This works for arguements 1 and 3 but not 2.

Can someone help?
Thanks Ozzie-Bel

Something like:

=LOOKUP(K1,{0,5,7},{0,0.5,1})*G1
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,646
Members
449,462
Latest member
Chislobog

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