Forum Discussion

Scott Miller's avatar
Scott Miller
Copper Contributor
Dec 19, 2017
Solved

Change the years to calculate a loan

I am trying to complete this formula so by changing the years (in L22) the formula will calculate the correct loan repayment.   =if(e22="",""),PMT(H22/52,$L$22*52,-E22,0)   E22 = Loan size ...
  • Deleted's avatar
    Deleted
    Dec 19, 2017

     

    The If Statement goes like this

     

    If(condition, value if true, value if false)

     

     Your formula syntax needs to be fixed

    =if(e22="","" ,PMT(H22/52,$L$22*52,-E22,0), 0)

     

    -You have a premature closing bracket for the if statement (removed)

    -You don't have a value if the condition is false. I assumed you want a zero, but you might want something else.

    -I don't know if your condition works since you haven't told us anything about e22.