XNPV - 脚本函数
XNPV() 函数用于返回聚合净现值,以揭示迭代于
Syntax:
XNPV(discount_rate, pmt, date)
Return data type: 数字。结果默认采用货币数字格式。 .
Arguments:
参数 | 说明 |
---|---|
discount_rate | discount_rate 是在整个期间的折扣率。 |
pmt | 表达式或字段包含要度量的数据。 |
date | 表达式或字段包含与在 pmt 中指定的现金流支付对应的日期时间表。 |
Limitations:
数据对的任意部分或两部分内存在文本值、
Examples and results:
将示例脚本添加到应用程序并运行。然后,至少要将结果列中列出的字段添加到应用程序中的表格才能查看结果。
示例 | 结果 | ||||
---|---|---|---|---|---|
Cashflow: LOAD 2013 as Year, * inline [ Date|Discount|Payments 2013-01-01|0.1|-10000 2013-03-01|0.1|3000 2013-10-30|0.1|4200 2014-02-01|0.2|6800 ] (delimiter is '|');
Cashflow1: LOAD Year,XNPV(0.2, Payments, Date) as XNPV1_2013 Resident Cashflow Group By Year; |
Year 2013 |
XNPV1_2013 $2104.37 |
|||
前提是 LOAD Year,XNPV(Discount, Payments, Date) as XNPV2_2013 Resident Cashflow Group By Year, Discount; 注意, |
|