A
agarwaldvk
Can someone help me with this :-
The formula below works fine and may in cases produce a value of 0. I
such cases, I would like to display value to read "Not Relevant".
Could too many levels of nesting be the problem here?
=IF(ISERROR(SUMIF(INDEX(JAndLPolicies_SA,,1),"New t
Fund",INDEX(JAndLPolicies_SA,,(MATCH(YEAR(EDATE($B$1,0)) & "/"
IF(MONTH(EDATE($B$1,0))<10,"0"
MONTH(EDATE($B$1,0)),MONTH(EDATE($B$1,0))),'JoinsAndLapses
Policies'!$A$5:$N$5,0)+1)))*12/($B$21-$C$21)),"No
Relevant",SUMIF(INDEX(JAndLPolicies_SA,,1),"New t
Fund",INDEX(JAndLPolicies_SA,,(MATCH(YEAR(EDATE($B$1,0)) & "/"
IF(MONTH(EDATE($B$1,0))<10,"0"
MONTH(EDATE($B$1,0)),MONTH(EDATE($B$1,0))),'JoinsAndLapses
Policies'!$A$5:$N$5,0)+1)))*12/($B$21-$C$21))
I tried to introduce an OR function after the IF and before the ISERRO
function as shown but it always came up with an error saying that th
formula contains an error when there was no error in the formula.
=IF(or (SUMIF(INDEX(JAndLPolicies_SA,,1),"New t
Fund",INDEX(JAndLPolicies_SA,,(MATCH(YEAR(EDATE($B$1,0)) & "/"
IF(MONTH(EDATE($B$1,0))<10,"0"
MONTH(EDATE($B$1,0)),MONTH(EDATE($B$1,0))),'JoinsAndLapses
Policies'!$A$5:$N$5,0)+1)))*12/($B$21-$C$21)=0,ISERROR(SUMIF(INDEX(JAndLPolicies_SA,,1),"Ne
to Fund",INDEX(JAndLPolicies_SA,,(MATCH(YEAR(EDATE($B$1,0)) & "/"
IF(MONTH(EDATE($B$1,0))<10,"0"
MONTH(EDATE($B$1,0)),MONTH(EDATE($B$1,0))),'JoinsAndLapses
Policies'!$A$5:$N$5,0)+1)))*12/($B$21-$C$21))),"No
Relevant",SUMIF(INDEX(JAndLPolicies_SA,,1),"New t
Fund",INDEX(JAndLPolicies_SA,,(MATCH(YEAR(EDATE($B$1,0)) & "/"
IF(MONTH(EDATE($B$1,0))<10,"0"
MONTH(EDATE($B$1,0)),MONTH(EDATE($B$1,0))),'JoinsAndLapses
Policies'!$A$5:$N$5,0)+1)))*12/($B$21-$C$21))
I also tried to remove some nesting by trying to get the month numbe
from a date in a double digit format viz "dd". The text functio
text(month(b1),"mm") also returned 1 instead of 07 when cell b
contains the date 01/07/2003.
Any suggestions?
Best regards and Thanks!
Deepak Agarwa
The formula below works fine and may in cases produce a value of 0. I
such cases, I would like to display value to read "Not Relevant".
Could too many levels of nesting be the problem here?
=IF(ISERROR(SUMIF(INDEX(JAndLPolicies_SA,,1),"New t
Fund",INDEX(JAndLPolicies_SA,,(MATCH(YEAR(EDATE($B$1,0)) & "/"
IF(MONTH(EDATE($B$1,0))<10,"0"
MONTH(EDATE($B$1,0)),MONTH(EDATE($B$1,0))),'JoinsAndLapses
Policies'!$A$5:$N$5,0)+1)))*12/($B$21-$C$21)),"No
Relevant",SUMIF(INDEX(JAndLPolicies_SA,,1),"New t
Fund",INDEX(JAndLPolicies_SA,,(MATCH(YEAR(EDATE($B$1,0)) & "/"
IF(MONTH(EDATE($B$1,0))<10,"0"
MONTH(EDATE($B$1,0)),MONTH(EDATE($B$1,0))),'JoinsAndLapses
Policies'!$A$5:$N$5,0)+1)))*12/($B$21-$C$21))
I tried to introduce an OR function after the IF and before the ISERRO
function as shown but it always came up with an error saying that th
formula contains an error when there was no error in the formula.
=IF(or (SUMIF(INDEX(JAndLPolicies_SA,,1),"New t
Fund",INDEX(JAndLPolicies_SA,,(MATCH(YEAR(EDATE($B$1,0)) & "/"
IF(MONTH(EDATE($B$1,0))<10,"0"
MONTH(EDATE($B$1,0)),MONTH(EDATE($B$1,0))),'JoinsAndLapses
Policies'!$A$5:$N$5,0)+1)))*12/($B$21-$C$21)=0,ISERROR(SUMIF(INDEX(JAndLPolicies_SA,,1),"Ne
to Fund",INDEX(JAndLPolicies_SA,,(MATCH(YEAR(EDATE($B$1,0)) & "/"
IF(MONTH(EDATE($B$1,0))<10,"0"
MONTH(EDATE($B$1,0)),MONTH(EDATE($B$1,0))),'JoinsAndLapses
Policies'!$A$5:$N$5,0)+1)))*12/($B$21-$C$21))),"No
Relevant",SUMIF(INDEX(JAndLPolicies_SA,,1),"New t
Fund",INDEX(JAndLPolicies_SA,,(MATCH(YEAR(EDATE($B$1,0)) & "/"
IF(MONTH(EDATE($B$1,0))<10,"0"
MONTH(EDATE($B$1,0)),MONTH(EDATE($B$1,0))),'JoinsAndLapses
Policies'!$A$5:$N$5,0)+1)))*12/($B$21-$C$21))
I also tried to remove some nesting by trying to get the month numbe
from a date in a double digit format viz "dd". The text functio
text(month(b1),"mm") also returned 1 instead of 07 when cell b
contains the date 01/07/2003.
Any suggestions?
Best regards and Thanks!
Deepak Agarwa