+ Reply to Thread
Results 1 to 3 of 3

Fixed Rate Loan Amortization Table (Alternatives to PMT Function)

Hybrid View

Tugboat00 Fixed Rate Loan Amortization... 04-19-2016, 10:13 PM
Leith Ross Re: Fixed Rate Loan... 04-20-2016, 01:06 PM
Tugboat00 Re: Fixed Rate Loan... 04-20-2016, 06:12 PM
  1. #1
    Registered User
    Join Date
    04-14-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    5

    Arrow Fixed Rate Loan Amortization Table (Alternatives to PMT Function)

    Hello all,

    I am new to VBA so perhaps this is a foolish question. I have created a fixed amortization table using the pmt function with input boxes in vba to return the values. It seems to work well.

    I am wondering what some of the alternative methods are for doing the same thing without using the PMT function. I am looking for some of the easier ways to do this. THe fixed amortization table I created has equal annual installments and the payment begins in the first year. If anyone has a link to a detailed guide that would be even better.

    Appreciate any help.
    Last edited by Tugboat00; 04-19-2016 at 10:35 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Fixed Rate Loan Amortization Table (Alternatives to PMT Function)

    Hello Tugboat00,

    The attached workbook will provide you with a fixed rate amortization schedule. You only need to input the loan amount, the annual interest rate and the loan period in years. Click the button and you will create a schedule of payments showing the principal, interest, and balance for each payment.

    Here is the VBA macro to generate the amortization schedule. The attached workbook is a working example.

    Sub Amortize()
    
      ' Written:    April 20, 2016
      ' Author:     Leith Ross
      
        Dim Amount      As Double
        Dim Balance     As Double
        Dim Cell        As Range
        Dim Interest    As Double
        Dim n           As Long
        Dim Payment     As Double
        Dim Payments    As Integer
        Dim Period      As Integer
        Dim Principal   As Double
        Dim Rate        As Double
        Dim Rng         As Range
        Dim Wks         As Worksheet
        
            Set Wks = ActiveSheet
            
            Set Cell = Wks.Range("A2")
            
            Set Rng = Cell.CurrentRegion
            Set Rng = Intersect(Rng, Rng.Offset(1, 0))
            
            If Not Rng Is Nothing Then Rng.ClearContents
            
            Application.ScreenUpdating = False
                
                Amount = Wks.Range("J3")
                Rate = Wks.Range("J4") / 12
                Period = Wks.Range("J5")
                
                Payments = Period * 12
                Payment = (Amount * (Rate * ((1 + Rate) ^ Payments))) / (((1 + Rate) ^ Payments) - 1)
            
                Balance = Amount
                
                For n = 1 To Payments
                    Interest = Balance * Rate
                    Principal = Payment - Interest
                    Balance = Balance - Principal
                    Cell.Resize(1, 5).Value = Array(n, Payment, Principal, Interest, Balance)
                    Set Cell = Cell.Offset(1, 0)
                Next n
                
            Application.ScreenUpdating = True
            
    End Sub
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-14-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    5

    Re: Fixed Rate Loan Amortization Table (Alternatives to PMT Function)

    Hi Leith,

    Thanks for the response. I have already created something like this though.

    At the moment I am trying to construct a fixed loan amortization table with formulas and which uses the goal seek function. I have found a textbook example but I am running into some problems.

    I get 1004 runtime error for the goal seek part of the code. I have tried fixing this but I am stuck.

    If anyone would be willing to take a look, would you mind if I pm'd the code? I do not want to post it on the forum as I may use it as a template for an assignment later on. Want to avoid those plagiarism checks.

    Any help appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. using if function in an amortization table (part 2)
    By trentminner in forum Excel General
    Replies: 4
    Last Post: 02-01-2015, 12:15 PM
  2. using if function in an amortization table
    By rdcall in forum Excel General
    Replies: 12
    Last Post: 02-01-2015, 10:57 AM
  3. Does anyone have a good amortization table?
    By TomRet in forum Excel General
    Replies: 3
    Last Post: 04-02-2014, 04:42 PM
  4. Question about VBA amortization table
    By rollintide89 in forum Excel General
    Replies: 1
    Last Post: 11-08-2011, 01:59 AM
  5. IRR without amortization table?
    By excelnewbie10 in forum Excel General
    Replies: 0
    Last Post: 03-22-2010, 01:13 PM
  6. Amortization Table help
    By ptpair in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2009, 09:38 PM
  7. unorthadox Amortization table
    By stewlevin in forum ExcelTip.com Feedback / Comments / Suggestions
    Replies: 1
    Last Post: 10-29-2007, 06:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1