HELP I CAN WRITE THIS IF FUNCTION

Copper Contributor

Hello,

 

I am trying to write a function that does this. if salary grade falls between 10 - 20 then number of years then the allocations. HELP

 

Salary LevelMin Sev after 1 full year of service5 years - 10 years10 or more years**
10 - 204 weeks8 weeks12 weeks
22 - 358 weeks12 weeks16 weeks
40 - 5512 weeks18 weeks26 weeks
6026 weeks34 weeks39 weeks
1 Reply

@hurshie 

If your table is in A1:D5, the salary level is in F2, and the years of service are in G2, then:

=INDEX($A$1:$D$5,IF($F$2<=20,1,IF($F$2<=35,2,IF($F$2<=55,3,IF($F$2=60,4,"")))),IF($G$2<5,1,IF($G$2<10,2,IF($G$2>=10,3,""))))