# XNPV Function

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)

where

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,

1. select the cell where you wish to display the result,
2. 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,
3. select the Financial function group from the list,
4. click the XNPV function,
5. enter the required arguments separating them by commas,
6. press the Enter button.

The result will be displayed in the selected cell.