XIRR Excel Function

XIRR Excel Function

XIRR function is also known as Extended Internal rate of return function in excel and this function is used to calculate based on multiple investments done on the same period of time, this is also a financial function in excel and is an inbuilt function which takes values dates and guesses value as inputs to it.


XIRR Formula
  • Value*: The transaction amounts. It refers to a series of cash flows corresponding to a schedule of payments
  • Dates* The transaction dates. It refers to a series of dates corresponding to its respective transaction
  • estimated_irr: Optional. The approximate return. Default=10%

How to Use The XIRR Function in Excel

Let’s take a few XIRR calculations in Excel examples before using the XIRR excel function workbook:

You can download this XIRR Function Excel Template here – XIRR Function Excel Template

Example #1

Suppose you invest Rs. 8000 in Mar 2012, and you receive an amount of Rs. 2000 at different time intervals from March to December 2017. In this case, your input in the excel sheet would contain the time and corresponding amount, as shown below.

XIRR Excel Example - 1

The XIRR excel can thus be calculated as XIRR(values, dates), as shown below.

XIRR Excel Example - 1-1

Example #2

Suppose you invest Rs. 2000 multiple times from 1 April 2017 to 10 Dec 2017. In the end, you receive an amount of Rs. 20,000 on 5 March 2018. In this case, your input in the excel sheet should like this

Example - 2

To calculate the rate of return on this investment, you will provide the input as XIRR(values, dates), as shown below.

XIRR Excel Example - 2-2

You will find that the XIRR in the above case is 0.78.

Example #3

Let us assume that you started to invest an amount of Rs 8000 in March 2011 in mutual funds. After seeing good returns on your amount, you invested every year with a 10% increase each time, and in the 8th year, you received an amount of Rs. 100,000. The input, in this case, will be as shown below:

Example - 3

The XIRR will be calculated as XIRR(values, dates) à XIRR(B3: B10, A3: A10)

XIRR Excel Example - 3-1

The above example can also be considered in a different way. On your first investment, you receive a total amount of Rs. 8800 (10% on your investment) in a year. You decide to invest this amount, which gives you a return of 10% again, and this cycle goes on for consecutive 7 years, and you receive an amount of Rs. 1,00,000 in the 8th year.

Example #4

Suppose you invest Rs. 8,000 in three consecutive years and receive a total of Rs. 28,000 in the next five years. In this case, both the investments and the redemptions are made over a period of time. The input in the excel will be as shown below:

Example - 4

To calculate the rate of return on this transaction, the XIRR function will be given by XIRR(values, dates) as shown below:

rate of return

The XIRR here is 0.037.


The XIRR in excel is applicable in any investment portfolioInvestment PortfolioPortfolio investments are investments made in a group of assets (equity, debt, mutual funds, derivatives or even bitcoins) instead of a single asset with the objective of earning returns that are proportional to the investor's risk profile.read more having multiple cash flows over a period of time. Some of them include Mutual fundMutual FundA mutual fund is a professionally managed investment product in which a pool of money from a group of investors is invested across assets such as equities, bonds, etcread more SIP, money back plans, PPF, EPF, etc. Sometimes you may want to see your returns on the investments you made in the share marketShare MarketThe share market is a public exchange where one can buy and sell company shares based on the demand and supply of shares. read more over the last 10 years. The XIRR Excel can also be used in a combination of several investments made at different places to calculate the overall rate of return.

Things to Remember

  • The amount invested (outflow) should be counted as negative and the amount received (inflow) as positive
  • The cash flow values can be listed in any order.
  • There should be cash outflow and inflow. If either one is missing, the XIRR function will return the #NUM! error.
  • The dates should be valid. Providing an invalid date in the date parameter will result in #NUM! error in the XIRR function.
  • The number of values and dates should be equal. Unequal numbers will result in an error.

Recommended Articles

This has been a guide to XIRR Excel Function. Here we discuss the XIRR Formula in excel and how to use XIRR on Excel along with practical examples and downloadable excel templates.

  • 35+ Courses
  • 120+ Hours
  • Full Lifetime Access
  • Certificate of Completion

Reader Interactions

Leave a Reply

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