+ Reply to Thread
Results 1 to 3 of 3

Help with XIRR, Formula doesn't work

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    34

    Help with XIRR, Formula doesn't work

    Hello,

    I am trying to caculate some XIRR for some loans (negative cash flow is lent out, positive cash flow is money in). As you can see, row 3 works perfectly. but the other rows do not work. Please help! Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Help with XIRR, Formula doesn't work

    Quote Originally Posted by tonylyx View Post
    I am trying to caculate some XIRR for some loans (negative cash flow is lent out, positive cash flow is money in). As you can see, row 3 works perfectly. but the other rows do not work. Please help! Thanks!
    You have numerous errors, demonstrated by the table below.


    A B C D
    1

    2.98023E-09 =XIRR(B1:B3,A1:A3)
    2 1/1/2015 1200 #NUM! =XIRR(B2:B3,A2:A3)
    3 1/1/2014 -1100

    4



    5

    2.98023E-09 =XIRR(B5:B9,A5:A9)
    6 1/1/2014 -1000 19.9999994% =XIRR(B6:B9,A6:A9)
    7



    8 1/1/2015 1200

    9



    10

    #VALUE! =XIRR(B6:B10,A6:A10)
    11

    FALSE =ISBLANK(B10)
    12

    TRUE =ISTEXT(B10)

    The formulas in column C are shown in column D.


    1. Just because XIRR returns about 0.0% (actually about 2.98023E-09) does not mean it "works", meaning it returns a correct value. In fact, it appears that XIRR returns 2.98023E-09 when there is one or more empty rows at the beginning of the ranges, as demonstrated by C1 and C5.

    That is why XIRR returns about 0.0% in B3 and B4 of your example.


    2. Generally, XIRR does tolerate empty rows in the middle and the end of the ranges, as demonstrated by C6. By "empty", I mean: no formula and no constant; ISBLANK returns TRUE.


    3. However, XIRR returns the #VALUE error if any cells in the ranges contain text, as demonstrated by C10. Even though B10 looks empty, the formulas in C11 and C12 confirm that it contains text. B10 was created by copying the null string and pasting-special-value into B10, creating the null string constant.

    That is why XIRR returns the #VALUE error in B5:B29 of your example. At least some of the apparently empty cells in column O, namely O5 and O7:O29, actually contain the null string constant. P6 also contains the null string constant, causing the #VALUE error in B6. There might be more instances of the null string constant; I did not look.


    4. Although XIRR does not require dates to be in order, it does require the first date to be the earliest, as demonstrated by C2. If not, XIRR returns the #NUM error.

    Note that the dates are in reverse order in row 2 of your example. So even if you corrected the errors noted above, XIRR would return a #NUM error.


    5. I did not try to vet your XIRR usage with your example data if the errors noted above were corrected. So there might be other mistakes (TBD).

  3. #3
    Registered User
    Join Date
    06-19-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Help with XIRR, Formula doesn't work

    Thank you!

+ 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. Formula Doesn't Work
    By Gene Venzke in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-10-2013, 08:54 PM
  2. [SOLVED] Why Doesn't XIRR work?
    By Don Stowell in forum Excel General
    Replies: 2
    Last Post: 03-16-2006, 07:50 AM
  3. [SOLVED] formula doesn't work
    By JJ in forum Excel General
    Replies: 4
    Last Post: 08-02-2005, 06:05 PM
  4. Why doesn't this formula work
    By greengrass in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2005, 10:57 PM

Tags for this Thread

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