The XNPV function is one of the financial functions. It is used to calculate the net present value for an investment based on a specified interest rate and a schedule of irregular payments.
The XNPV function syntax is:
XNPV(rate, values, dates)
rate is the discount rate for the investment.
values is an array that contains the income (positive values) or payment (negative values) amounts. At least one of the values must be negative and at least one positive.
dates is an array that contains the payment dates when the payments are made or received.
The values can be entered manually or included into the cell you make reference to.
To apply the XNPV function,
- select the cell where you wish to display the result,
- click the Insert Function icon situated at the top toolbar,
or right-click within a selected cell and select the Insert Function option from the menu,
or click the icon situated at the formula bar,
- select the Financial function group from the list,
- click the XNPV function,
- enter the required arguments separating them by commas,
- press the Enter button.
The result will be displayed in the selected cell.
Return to previous page