I'm trying to create a formula where if each column is more than 0%, then add a prefix for either "LIBOR+" or "PRIME+" in front of the column in the new column. the below formula keeps giving me the error malformed if statement - can someone please help? also attached an example data below:
IF [Loan Libor Spread2] >0 THEN "LIBOR+" + [Loan Libor Spread2] else if [Loan Prime Spread2] >0 then "PRIME+" + [Loan Prime Spread2] elseif [Loan Fixed Spread2] >0 then [Loan Fixed Spread2] else "" endif
starting:
| Loan Libor Spread2 | Loan Prime Spread2 | Loan Fixed Spread2 |
| 0.1% | | |
| | 1% | |
| | | 2% |
Goal:
| Interest Rate |
| LIBOR + 0.1% |
| PRIME+1% |
| 2% |