Hello,
I have some analysis i'm trying to complete and need some help with a formula.
I have 2 dates i'm comparing. Based on the exact difference between the date, i give my employee the appropriate increase. If they have been licensed for 1 year, they will get the higher of their base rate or what the increased rate would be. Same with the second through fifth year. Below is the formula i was using. I think my problem is the way i did the "between" because it wants to default to my base rate no matter what the difference in years is. I did this formula based on days because 5/1/2010 thru 4/1/2011 to me isn't 1 year. I need to have the exact number of years so that's why i'm using days.
K2 = base rate
M,N,O,P,Q = increases by year
=IF(NETWORKDAYS(J2,$V$1)=365,MAX(M2,K2),IF(NETWORKDAYS(J2,$V$1)=AND(NETWORKDAYS(J2,$V$1)>=366,NETWORKDAYS(J2,$V$1)<730),MAX(N2,K2),IF(NETWORKDAYS(J2,$V$1)=AND(NETWORKDAYS(J2,$V$1)>=731,NETWORKDAYS(J2,$V$1)<1095),MAX(O2,K2),IF(NETWORKDAYS(J2,$V$1)=AND(NETWORKDAYS(J2,$V$1)>=1096,NETWORKDAYS(J2,$V$1)<1460),MAX(P2,K2),IF(NETWORKDAYS(J2,$V$1)=AND(NETWORKDAYS(J2,$V$1)>=1461,NETWORKDAYS(J2,$V$1)<1825),MAX(Q2,K2),K2)))))
I have some analysis i'm trying to complete and need some help with a formula.
I have 2 dates i'm comparing. Based on the exact difference between the date, i give my employee the appropriate increase. If they have been licensed for 1 year, they will get the higher of their base rate or what the increased rate would be. Same with the second through fifth year. Below is the formula i was using. I think my problem is the way i did the "between" because it wants to default to my base rate no matter what the difference in years is. I did this formula based on days because 5/1/2010 thru 4/1/2011 to me isn't 1 year. I need to have the exact number of years so that's why i'm using days.
K2 = base rate
M,N,O,P,Q = increases by year
=IF(NETWORKDAYS(J2,$V$1)=365,MAX(M2,K2),IF(NETWORKDAYS(J2,$V$1)=AND(NETWORKDAYS(J2,$V$1)>=366,NETWORKDAYS(J2,$V$1)<730),MAX(N2,K2),IF(NETWORKDAYS(J2,$V$1)=AND(NETWORKDAYS(J2,$V$1)>=731,NETWORKDAYS(J2,$V$1)<1095),MAX(O2,K2),IF(NETWORKDAYS(J2,$V$1)=AND(NETWORKDAYS(J2,$V$1)>=1096,NETWORKDAYS(J2,$V$1)<1460),MAX(P2,K2),IF(NETWORKDAYS(J2,$V$1)=AND(NETWORKDAYS(J2,$V$1)>=1461,NETWORKDAYS(J2,$V$1)<1825),MAX(Q2,K2),K2)))))