XL: Computing Periodic Annual Interest Rate in Microsoft ExcelLast reviewed: February 2, 1998Article ID: Q110854 |
The information in this article applies to:
SUMMARYThe RATE() function in Microsoft Excel, and the @RATE function in Lotus 1- 2-3, both return the periodic interest rate necessary for an investment to grow to a specific value over a specified number of compounding periods. However, in Microsoft Excel, RATE() assumes a known stream of payments. If the payment amount per period is not known, you can still use the RATE() function, but you must modify it slightly. A manually entered formula must be used to determine the annualized interest rate for an investment with more than one compounding period per year. You can also use a custom function to make this calculation easier.
MORE INFORMATIONTo use the RATE() function in Microsoft Excel when the payment per period is not known, you must enter the number of compounding periods, the present value as a negative number, and the future value. For example, an initial investment of $1,000, that has grown to $2,000 when compounded quarterly over six years would return 2.93% per quarter when entered as follows:
=RATE(24,,-1000,2000)To determine the annualized interest rate for an investment, use the following formula
=((FV/PV)^(1/N)^M)-1where FV is the future value of an investment, PV is the initial investment, N is the total number of compounding periods, and M is the number of compounding periods per year. The following formula, when used with the numbers from the previous example, will return 12.2462% per year:
=((2000/1000)^(1/24)^4)-1 Creating a Function Macro in Excel 5.0 or LaterTo create this function using Visual Basic for Applications, enter the following in a new Visual Basic module:
Function Yearly_Rate(FV, PV, N, M) As Double 'Defines variables Yearly_Rate = ((FV / PV) ^ (1 / N)^M) - 1 'Performs computation End Function 'Ends functionTo use the custom function, follow these steps:
Creating a Function Macro for Excel 2.0, 3.0 or 4.0Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/supportnet/refguide/You can use a custom function in Microsoft Excel to compute the annual interest rate. To create this function enter the following in a Microsoft Excel macro sheet:
B1: Yearly_Rate B2: =RESULT(1) B3: =ARGUMENT("FV",1) B4: =ARGUMENT("PV",1) B5: =ARGUMENT("N",1) B6: =ARGUMENT("M",1) B7: =RETURN((((FV/PV)^(1/N)^M))-1)After entering the above formulas on a Microsoft Excel macro sheet, define it as a function macro. For information on defining function macros, see the Microsoft Excel User's Guide 2, pages 203-213.
ExampleTo compute the periodic interest rate for a $10,000 investment that matures in six years, compounded monthly, with a maturity value of $20,000, follow these steps:
=RATE.XLM!Yearly_Rate(FV,PV,N,M) The annual interest rate, 12.2462%, is returned by the formula.
REFERENCES"Visual Basic User's Guide," version 5.0, pages 41-48 "User's Guide 2," version 4.0, pages 203-213 "Function Reference," version 4.0 pages 347-348 "Lotus 1-2-3 for DOS 2.3, @Functions and Macro Guide," Pages 69-70
|
Additional query words: 2.0 3.0 4.0 4.0a 5.0 7.00 8.00 97 98 XL98 XL97 XL7
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |