+ Reply to Thread
Results 1 to 5 of 5

XIRR strange behaviour

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    2

    XIRR strange behaviour

    When using XIRR to calculate the internal rate of return for an investment of $10.000 that after 2 year has become $12.100. I'm expecting this to be 10%

    If I use XIRR to calculate this for the 2 years period 2010-2012 it return 10% as expected but if I change to 2011-2013 it returns 9,98566%:

    A1:=DATE(2010;1;1) B1: -10.000
    A2:=DATE(2012;1;1) B2: 12.100

    XIRR(B1:B2;A1:A2)=10%

    BUT

    A1:=DATE(2011;1;1) B1: -10.000
    A2:=DATE(2013;1;1) B2: 12.100

    XIRR(B1:B2;A1:A2)=9,98566%

    Why?

    Peter

  2. #2
    Registered User
    Join Date
    09-05-2013
    Location
    ------------------
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    14

    Re: XIRR strange behaviour

    2012 was a leap year thus it had 366 days that is cause of the minor difference in your XIRR results

    XIRR uses a Actual/365 day count convention when discounting the cash flows in it's XNPV equation

  3. #3
    Registered User
    Join Date
    09-05-2013
    Location
    ------------------
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    14

    Re: XIRR strange behaviour

    A1:=DATE(2010;1;1) B1: -10.000
    A2:=DATE(2012;1;1) B2: 12.100
    A3:=(A2-A1)/365
    A3: 2

    -10.000 + 12.100 (1+i)^(-2) = 0
    12.100 (1+i)^(-2) = 10.000
    (1+i)^(-2) = 10.000 / 12.100
    (1+i)^(2) = 12.100 / 10.000
    (1+i) = (12.100 / 10.000)^(1/2)
    i = [ (12.100 / 10.000)^(0,5) ] - 1
    i = [ (1,21)^(0,5) ] - 1
    i = 1,1 - 1
    i = 0,1
    i = 10%

    A1:=DATE(2011;1;1) B1: -10.000
    A2:=DATE(2013;1;1) B2: 12.100
    A3:=(A2-A1)/365
    A3: 2,00273973

    -10.000 + 12.100 (1+i)^(-2,00273973) = 0
    12.100 (1+i)^(-2,00273973) = 10.000
    (1+i)^(-2,00273973) = 10.000 / 12.100
    (1+i)^(2,00273973) = 12.100 / 10.000
    (1+i) = (12.100 / 10.000)^(1/2,00273973)
    i = [ (12.100 / 10.000)^(0,4993160054719562) ] - 1
    i = [ (1,21)^(0,4993160054719562) ] - 1
    i = 1,099856587738287252054960812161 - 1
    i = 0,099856587738287252054960812161
    i = 9,98566%

  4. #4
    Registered User
    Join Date
    09-05-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: XIRR strange behaviour

    Thanks a lot for your answer.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: XIRR strange behaviour

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Strange Behaviour
    By Mark@Work in forum Excel General
    Replies: 2
    Last Post: 09-30-2008, 12:22 PM
  2. [SOLVED] Strange if(***) behaviour?
    By Excel 2003 - SPB in forum Excel General
    Replies: 6
    Last Post: 08-06-2006, 12:35 PM
  3. [SOLVED] Strange VBA Behaviour
    By Ricko in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-28-2005, 03:05 AM
  4. [SOLVED] Strange behaviour
    By Edgar Thoemmes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2005, 12:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1