Description
Use this function to return the net present value for a schedule of cash flows that isn't necessarily periodic.
To calculate the net present value for a periodic series of cash flows, use the NPV function.
語法
XNPV(rate, values, dates)
Inputs
This function has the following arguments:
名稱 | 必要 | Valid input |
---|---|---|
評分 |
是 |
The discount rate to apply to the cash flows. |
values |
是 | A series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive value and one negative value. |
dates |
是 | A schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order. |
範例
範例資料
A | B |
---|---|
-$10,000 | 1/1/2008 |
$2,750 | 3/1/2008 |
$4,250 | 10/30/2008 |
$3,250 | 2/15/2009 |
$2,750 | 4/1/2009 |
Sample formulas
公式 | 說明 | 結果 |
---|---|---|
=XNPV(.09,A1:A5,B1:B5) |
Applies a discount rate of 9% against the values in the range A1:A5, for the dates in the range B1:B5. | $2,086.65 |
附註
- Like Excel, the Workiva platform stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
- Numbers in dates are truncated to integers.
- If any argument is not numeric, XNPV returns the
#VALUE!
error value. - If any number in dates is not a valid date, XNPV returns the
#VALUE!
error value. - If any number in dates precedes the starting date, XNPV returns the
#NUM!
error value. - If values and dates contain a different number of values, XNPV returns the
#NUM!
error value. - XNPV is calculated as follows:
where:-
di
= the ith, or last, payment date. -
d1
= the 0th payment date. -
Pi
= the ith, or last, payment.
-