E
ExcelMonkey
I often use the ISERROR function to wrap around a formual that may hav
a an error in it. I use if nested in an If stmt to say if the formua
generates an error, then produce a zero value otherwise, do I want
want it to. For example:
IF(ISERROR(A1/B1),0,A1/B1)
Problem is that you have to type in the fist part of the formual A1/B
again at the end of the IF stmt. This is really a pain if the conditio
is ver large:
=IF(ISERROR(IF(Inputs!$G$550
"Denominator",(Statements!H101+Statements!H102)/(Statements!H101+Statements!H102+Statements!H106),1)),0,IF(Inputs!$G$55
"Denominator",(Statements!H101+Statements!H102)/(Statements!H101+Statements!H102+Statements!H106),1))
Is there a formual or userdefined function that acts like an iserro
wrapped in an If stm that will allow me to not repeat the formula? I
would look like this:
Iserror2(condition,result if condition is false)
or
Iserror2(A1/B1,0)
or
Iserror2(IF(Inputs!$G$550
"Denominator",(Statements!H101+Statements!H102)/(Statements!H101+Statements!H102+Statements!H106),1)),0)
Does anybody know if this exists or hoe to build this in VBA?
thn
a an error in it. I use if nested in an If stmt to say if the formua
generates an error, then produce a zero value otherwise, do I want
want it to. For example:
IF(ISERROR(A1/B1),0,A1/B1)
Problem is that you have to type in the fist part of the formual A1/B
again at the end of the IF stmt. This is really a pain if the conditio
is ver large:
=IF(ISERROR(IF(Inputs!$G$550
"Denominator",(Statements!H101+Statements!H102)/(Statements!H101+Statements!H102+Statements!H106),1)),0,IF(Inputs!$G$55
"Denominator",(Statements!H101+Statements!H102)/(Statements!H101+Statements!H102+Statements!H106),1))
Is there a formual or userdefined function that acts like an iserro
wrapped in an If stm that will allow me to not repeat the formula? I
would look like this:
Iserror2(condition,result if condition is false)
or
Iserror2(A1/B1,0)
or
Iserror2(IF(Inputs!$G$550
"Denominator",(Statements!H101+Statements!H102)/(Statements!H101+Statements!H102+Statements!H106),1)),0)
Does anybody know if this exists or hoe to build this in VBA?
thn