I have a simple formula that uses the Nper function to calc the remaining term (in months) on a database of several hundred commercial loans. The intent is to compare the results of the Nper formula to the actual source system data values and isolate loans with improper interest rates, payment amounts etc.
Example:
NPer ({MORTGAGE.INTRATE}/12,-{MORTGAGE.P&IPMTAMT},{MORTGAGE.CURPRINBAL})
The problem: on some loan records, the Nper function is causing a 'numeric overflow' error. This occurs on records where the loan rate, principal, and payment return an infinite number for Nper. In other words, they won't ever amortize. I need the formula to somehow evaluate to 999 or something to identify these records, instead of returning the error.
Solution? I've been trying to find a way to do a On Error Goto type of branching formula, but it doesn't appear Crystal supports that syntax, even using Basic Syntax in the Formula Editor.
Am I missing a simple solution here? Any other ideas on error trapping in Crystal formulas?
Example:
NPer ({MORTGAGE.INTRATE}/12,-{MORTGAGE.P&IPMTAMT},{MORTGAGE.CURPRINBAL})
The problem: on some loan records, the Nper function is causing a 'numeric overflow' error. This occurs on records where the loan rate, principal, and payment return an infinite number for Nper. In other words, they won't ever amortize. I need the formula to somehow evaluate to 999 or something to identify these records, instead of returning the error.
Solution? I've been trying to find a way to do a On Error Goto type of branching formula, but it doesn't appear Crystal supports that syntax, even using Basic Syntax in the Formula Editor.
Am I missing a simple solution here? Any other ideas on error trapping in Crystal formulas?