## How to use the XNPV function

The XNPV function calculates the net present value for cash flows that may or may not be periodic. Net present value is used in investment planning and capital budgeting.

Formula in cell C12:

=XNPV(C2, B5:B10, C5:C10)

### Excel Function Syntax

XNPV(*rate, values, dates)*

### Arguments

rate |
Required. The discount rate. |

values |
Required. A number of values representing cash flow, the first value is optional and may be a cost or payment. Make sure the first value is a negative value if it is a cost or payment. At least one value must be negative and one value must be positive. |

dates |
Required. Dates that correspond to the cash flow values. |

### Comments

The XNPV function returns:

- #VALUE! error if arguments
*are*non-numeric. - #NUM! error if any number in dates precedes the starting date.
- #NUM! error if values and dates don't have the same number of values.
- #VALUE! error if any number in dates is not a valid date.

The formula looks like this:

d_{i} = the ith, or last, payment date.

d_{1} = the 0th payment date.

P_{i} = the ith, or last, payment.

### Functions in 'Financial' category

The XNPV function function is one of many functions in the 'Financial' category.

Calculates the accrued interest for a security that pays periodic interest.

Calculates the accrued interest for a security that pays interest at maturity.

Calculates the depreciation for each accounting period. This function is designed for the French accounting system.

Calculates the depreciation for each accounting period.

Calculates the accumulated interest based on a start and end period on a loan.

Calculates the accumulated principal based on a start and end period on a loan.

Calculates the depreciation of an asset for a given period using the fixed-declining balance method.

Calculates the depreciation of an asset for a given period using the double-declining balance method or based on user input.

Converts a decimal number to its equivalent in fractional numbers, used in securities denominated in dollars.

Calculates the effective annual interest rate, given the nominal annual interest rate and the number of compounding periods per year.

Returns the future value of an investment based on a constant interest rate.

Calculates the interest payment for a specific period for an investment based on repeated constant payments and a constant interest rate.

Calculates the interest paid during a specific period of an investment.

Calculates the nominal annual interest rate based on the effective rate and the number of compounding periods per year.

Calculates how many periods required by an investment to reach a given amount based on a rate in percentage.

Returns the payment needed for borrowing a fixed sum of money based on constant payments and interest rate.

Calculates the principal payment for a specific period for an investment based on repeated constant payments and a constant interest rate.

Calculates the price per $100 nominal value of a bond that pays interest at maturity.

Calculates the net present value for an investment or loan.

Returns the interest rate per period of an annuity.

Calculates the growth of an investment in percent per period.

Calculates the yearly asset depreciation of a given year.

Calculates the par amount (face value) for a Treasury bill.

Calculates the yield for a Treasury bill.

Calculates the depreciation of an asset for a given period using the double-declining balance method or based on user input, you may use partial periods in this function.

Calculates net present value for cash flows that may or may not be periodic

Calculates the yield for a security that pays interest. The YIELD function is designed to calculate the bond yield.

## How to comment

How to add a formula to your comment<code>Insert your formula here.</code>

Convert less than and larger than signsUse html character entities instead of less than and larger than signs.

< becomes < and > becomes >

How to add VBA code to your comment[vb 1="vbnet" language=","]

Put your VBA code here.

[/vb]

How to add a picture to your comment:Upload picture to postimage.org or imgur

Paste image link to your comment.

Contact OscarYou can contact me through this contact form