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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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,215,404
Messages
6,124,715
Members
449,184
Latest member
COrmerod

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