MS Excel: PV Function (WS, VBA)
Learn how to use the Excel PV function with syntax and examples.
The Microsoft Excel PV function returns the present value of an investment based on an interest rate and a constant payment schedule.
The syntax for the Microsoft Excel PV function is:
PV( interest_rate, number_payments, payment, [FV], [Type] )
Parameters or Arguments
interest_rate is the interest rate for the investment.
number_payments is the number of payments for the annuity.
payment is the amount of the payment made each period. If this parameter is omitted, you must enter a FV value.
FV is optional. It is the future value of the payments. If this parameter is omitted, the PV function assumes FV to be 0.
Type is optional. It indicates when the payments are due. Type can be one of the following values:
||Payments are due at the end of the period. (default)
||Payments are due at the beginning of the period.
If the Type parameter is omitted, the PV function assumes a Type value of 0.
The PV function can be used in the following versions of Microsoft Excel:
- Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000
Type of Excel Function
The PV function can be used in Microsoft Excel as the following type of function:
- Worksheet function (WS)
- VBA function (VBA)
Example (as Worksheet Function)
Let's look at an example to how you would use the PV examples and explore how you would use the PV function as a worksheet function in Microsoft Excel:
This first example returns the present value of an investment that pays $250 at the end of every month for 2 years. The money paid out will earn 7.5% annually.
=PV(7.5%/12, 2*12, 250, , 0)
This next example returns the present value of an investment that pays $50 at the beginning of every week for 4 years. The money paid out will earn 6% annually.
=PV(6%/52, 4*52, 50, , 1)
This next example returns the present value of an investment that pays $100 at the end of every year for 10 years. The money paid out will earn 5.25% annually.
=PV(5.25%/1, 10*1, 100, , 0)
Example (as VBA Function)
The PV function can also be used in VBA code in Microsoft Excel.
Let's look at some Excel PV function examples and explore how you would use the PV function in Excel VBA code:
Dim LValue As Currency
LValue = PV(0.0525/1, 10*1, 100, , 0)
In this example, the variable called LValue would now contain the value of ($762.88)