for loop vba- I am unable to get the total of payments and interest using for loop

DIANAmp

New Member
Joined
Aug 9, 2021
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
sing VBA Build a loan calculator subroutine that will display the total interest paid over the life of a loan. Make this interactive so that the user will be prompted for:

· The loan Amount
· The number of Years
· The frequency (number of payments per year)
· The interest Rate (APR)

You will need to determine how much of each payment goes toward interest and then sum the interest up.

Set your default loan amount to $100,000
Set the default term to 15 years
Set the default frequency to 12 payments per year
Set your default interest rate to 5% APR


Hints:
You will need 4 input boxes
You can solve mathematically or utilize the Excel function IPMT to solve for the interest portion of the payment each period.
Then total the interest payments up using a loop.
In a message box, output two things:
· the total amount of all the payments
· the total interest paid over the life of the loan
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
@Michael M

Can you say that twice...

 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top