B
barnabas
I've studied other nested IF posts and can't figure out how to use Vlookup or
a named range on sheet2 to solve my problem. I've accomplished the task but
very clumsily. There are 8 nested IFs so have to use two cells because of the
7 limit.
The spreadsheet is to determine the vacation factor for each employee based
on full time or part time status and years of service.
A3= "N" or "Y" (Full time? yes or no)
E3= years of service
F3: IF(L3,L3,M3) (this is the factor column)
L3:
=IF(AND(A3="N",E3>0,E3<2),0.0196,
IF(AND(A3="N",E3>1.9999,E3<10),0.04,
IF(AND(A3="N",E3>9.9999,E3<20),0.0612,
IF(AND(A3="N",E3>20),0.0833,M3))))
M3:
=IF(AND(A3="Y",E3>0,E3<1),0.0196,
IF(AND(A3="Y",E3>0.9999,E3<2),0.0273,
IF(AND(A3="Y",E3>1.9999,E3<10),0.0554,
IF(AND(A3="Y",E3>9.9999,E3<20),0.0766,0.0987))))
a named range on sheet2 to solve my problem. I've accomplished the task but
very clumsily. There are 8 nested IFs so have to use two cells because of the
7 limit.
The spreadsheet is to determine the vacation factor for each employee based
on full time or part time status and years of service.
A3= "N" or "Y" (Full time? yes or no)
E3= years of service
F3: IF(L3,L3,M3) (this is the factor column)
L3:
=IF(AND(A3="N",E3>0,E3<2),0.0196,
IF(AND(A3="N",E3>1.9999,E3<10),0.04,
IF(AND(A3="N",E3>9.9999,E3<20),0.0612,
IF(AND(A3="N",E3>20),0.0833,M3))))
M3:
=IF(AND(A3="Y",E3>0,E3<1),0.0196,
IF(AND(A3="Y",E3>0.9999,E3<2),0.0273,
IF(AND(A3="Y",E3>1.9999,E3<10),0.0554,
IF(AND(A3="Y",E3>9.9999,E3<20),0.0766,0.0987))))