FV 函数 [VBA]

返回基于定期、不变付款和不变利率的投资的未来价值 (未来价值)。

警告图标

该功能或常量可通过以下语句启用: Option VBASupport 1,该语句需要放置在模块的每个可执行程序代码的前面。


语法:

FV(Rate as Double, NPer as Double, Pmt as Double, [PV as Variant], [Due as Variant])

返回值:

Double

参数:

Rate is the periodic interest rate.

NPer is the total number of periods (payment period).

Pmt is the annuity paid regularly per period.

PV (optional) is the (present) cash value of an investment.

Due (optional) defines whether the payment is due at the beginning or the end of a period.

0 - 付款应在期间结束时支付;

1 - the payment is due at the beginning of the period.

错误代码:

5 无效的过程调用

示例:

Sub ExampleFV

 Dim myFV As Double

 myFV = =FV(0.04, 2, 750, 2500)

 Print myFV ' returns 4234.00 currency units. The value at the end of the investment is 4234.00 currency units.

End Sub