Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Conditional Formatting Color Scales Examples in Excel
  • Randomize/ Shuffle List in Excel
  • Excel Bar Chart
  • How To Insert and Customize Sparklines in Excel
  • How to Create One and Two Variable Data Tables in Excel

References

  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to use Excel ROW Function
  • Convert text string to valid reference in Excel using Indirect function
  • How to get last column number in range in Excel
  • Vlookup Examples in Excel

Data Validations

  • Excel Data validation number multiple 100
  • Excel Data validation date in next 30 days
  • Excel Data validation allow weekday only
  • Excel Data validation allow uppercase only
  • How To Create Drop-down List in Excel

XNPV function: Description, Usage, Syntax, Examples and Explanation

by

What is XNPV function in Excel?

XNPV function is one of Financial functions in Microsoft Excel that returns the net present value for a schedule of cash flows that is not necessarily periodic. To calculate the net present value for a series of cash flows that is periodic, use the NPV function.

Syntax of XNPV function

XNPV(rate, values, dates)

The XNPV function syntax has the following arguments:

  • Rate: 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.

XNPV formula explanation

  • Microsoft Excel 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 nonnumeric, 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.

Example of XNPV function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Values Dates
-$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
Formula Description Result
=XNPV(.09, A2:A6, B2:B6) The net present value for an investment with the above cost and returns. The cash flows are discounted at 9 percent. $2,086.65

Post navigation

Previous Post:

How to generate random date between two dates in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel AND Function
  • How to use Excel OR Function
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Logical Functions, References and Examples

Date Time

  • Get month name from date in Excel
  • Get work hours between dates in Excel
  • WORKDAY function: Description, Usage, Syntax, Examples and Explanation
  • SECOND function: Description, Usage, Syntax, Examples and Explanation
  • Convert Excel time to decimal seconds

Grouping

  • Group numbers with VLOOKUP in Excel
  • Group times into 3 hour buckets in Excel
  • Categorize text with keywords in Excel
  • Group times into unequal buckets in Excel
  • How to randomly assign people to groups in Excel

General

  • 44 Practical Excel IF function Examples
  • Using Existing Templates in Excel
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • How to get original number from percent change in Excel
  • AutoFit Column Width, AutoFit Row Height in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning