XIRR - 指令碼函數
XIRR() 會針對由
Syntax:
XIRR(pmt, date )
Return data type: 數值
Arguments:
引數 | 描述 |
---|---|
pmt |
包含對應於 date 中提供之付款排程的現金流量的運算式或欄位。 |
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,XIRR(Payments, Date) as XIRR2013 Resident Cashflow Group By Year; |
Year 2013 |
XIRR2013 0.5385 |