Hello,
I’m having an issue using the FormatNumber function. I’m trying to include some error handling in a formula so if one value is 0 then the formula displays “NA”. To do this I have been trying to use the FormatNumber function. After many attempts to try to incorporate it into my original variable I have gone to the two variable approach. These are the formulas for my two variables.
Lift for Sub Loan # 30 days
=If ((<# of Sub Loans Prior 30 Days> Where (<Cell Type>="N")) = 0 Or (<# of Sub Loans Prior 30 Days> Where (<Cell Type>="Y"))= 0) Then 0 Else (((<# of Sub Loans Post 30 Days> Where (<Cell Type>="N"))- (<# of Sub Loans Prior 30 Days> Where (<Cell Type>="N")))/(<# of Sub Loans Prior 30 Days> Where (<Cell Type>="N")) - ((<# of Sub Loans Post 30 Days> Where (<Cell Type>="Y"))- (<# of Sub Loans Prior 30 Days> Where (<Cell Type>="Y")))/(<# of Sub Loans Prior 30 Days> Where (<Cell Type>="Y")))
and
Formatted Lift for Sub Loan # 30 Days
= FormatNumber(<Lift for Sub Loan # 30 days> , "###.0%")
I have tried incorporating the FormatNumber function in to the original variable and it still returned 0.0%.
Once I have this working I planned to add “If Where ( = “Y”) = 0 Then “NA” Else”
Why isn’t the FormatNumber Function giving me my number? Any help is appreciated.
Thanks,
mlydecker (BOB member since 2004-03-18)