+ Reply to Thread
Results 1 to 6 of 6

XIRR Calculation error

  1. #1
    Registered User
    Join Date
    02-24-2019
    Location
    London
    MS-Off Ver
    office2013
    Posts
    15

    XIRR Calculation error

    Hello,

    I am trying to calculate XIRR but having 2 issues, will appreciate the help.

    1) if I have money added and withdrawn are in 2 separates column.
    2) if my dates are descending order.
    The image below shows dates in ascending order. and formula shows what i am trying to use but result is #NUM
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: XIRR Calculation error

    Quote Originally Posted by rsd007 View Post
    2) if my dates are descending order.
    The image below shows dates in ascending order
    [EDIT:ERRATA] In general, the order does not matter, except: the first row must be the earliest date and value.

    But first, let's get the correct XIRR formula with the ascending order.

    Then we can talk about modifying it, if you insist on entering the data in descending date order.

    The following image demonstrates the XIRR formula for each date. Refer to the attached Excel file for details.

    As proof of concept, the growth curve for the last date is demonstrated in column H.

    xirr multicol.jpg

    Enter the following formula into F23, then copy into F24:F30:

    =XIRR(IF(ROW($E$22:E23)=ROW(E23), -E23+B23+C23, $B$22:B23 + $C$22:C23), $A$22:A23)

    That must be array-entered (press ctrl+shift+Enter instead just Enter) in my version of Excel. YMMV.

    Note that the IRRs are very different from what you posted.

    If you are certain that your posted IRRs are expected, please explain their derivation.

    And please attach an example Excel file that demonstrates all calculation, per the instructions in the bright yellow banner at the top of the webpage.
    Attached Files Attached Files
    Last edited by curiouscat408; 10-29-2022 at 10:36 AM.

  3. #3
    Registered User
    Join Date
    02-24-2019
    Location
    London
    MS-Off Ver
    office2013
    Posts
    15

    Re: XIRR Calculation error

    Quote Originally Posted by curiouscat408 View Post
    [EDIT:ERRATA] In general, the order does not matter, except: the first row must be the earliest date and value.

    But first, let's get the correct XIRR formula with the ascending order.

    Then we can talk about modifying it, if you insist on entering the data in descending date order.

    The following image demonstrates the XIRR formula for each date. Refer to the attached Excel file for details.

    As proof of concept, the growth curve for the last date is demonstrated in column H.

    Attachment 802814

    Enter the following formula into F23, then copy into F24:F30:

    =XIRR(IF(ROW($E$22:E23)=ROW(E23), -E23+B23+C23, $B$22:B23 + $C$22:C23), $A$22:A23)

    That must be array-entered (press ctrl+shift+Enter instead just Enter) in my version of Excel. YMMV.

    Note that the IRRs are very different from what you posted.

    If you are certain that your posted IRRs are expected, please explain their derivation.

    And please attach an example Excel file that demonstrates all calculation, per the instructions in the bright yellow banner at the top of the webpage.
    Hello,

    Thank you for helping me out,
    The IRR calculated were not correct, I had error of looking into wrong cell.
    I do need to make the data in descending date order.
    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: XIRR Calculation error

    There might be features in Excel 2013 that make this easier.

    But in my version, I think the easiest implementation requires a number of "helper" cells.

    See the image below. See the "descend" worksheet in the attached Excel file for details.

    xirr multicol descend.jpg

    Formulas:
    F22: =INDEX($L$22:$L$30, ROWS($L$22:$L$30)-ROWS($A$22:A22)+1)
    H22: =INDEX(A$22:A$30, ROWS(A$22:A$30)-ROWS(A$22:A22)+1)
    L23: =XIRR(IF(ROW($K$22:K23)=ROW(K23), -K23+I23+J23, $I$22:I23 + $J$22:J23), $H$22:H23)
    Copy F22 into F23:F29
    Insert column before column K, copy H22 into H22:L30, then delete column K and format I22:K30 as Number
    Copy L23 into L24:L30

    Again, the formula in L23 must be array-entered (press ctrl+shift+Enter instead of just Enter) in my version of Excel. Perhaps not in your version.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-24-2019
    Location
    London
    MS-Off Ver
    office2013
    Posts
    15

    Re: XIRR Calculation error

    Once again Thankyou,
    I am updating to office 2019 / 365. If you can tell me which feature, you were referring to for Excel 2013. I can explore also.

    Thanks

  6. #6
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: XIRR Calculation error

    Quote Originally Posted by rsd007 View Post
    If you can tell me which feature, you were referring to for Excel 2013. I can explore also.
    I know nothing about any new features in Excel 2013, Excel 2019 or Office 365.

    And note: I said there "might be", not there "are", new features that might help.

+ 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. XIRR Num Error
    By jeduardomalo in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 11-02-2021, 01:01 PM
  2. Xirr - Calculation with Criteria
    By carlbrianhadi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-31-2018, 01:16 PM
  3. #value! error with XIRR function
    By juntjoo in forum Excel - New Users/Basics
    Replies: 14
    Last Post: 07-10-2017, 09:15 AM
  4. XIRR - Array Formula Error
    By Dtark513 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-31-2013, 04:50 PM
  5. [SOLVED] xirr value error
    By CC in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-18-2006, 07:15 PM
  6. [SOLVED] #VALUE error with XIRR
    By bdyer30 in forum Excel General
    Replies: 7
    Last Post: 01-24-2006, 12:35 PM
  7. [SOLVED] XIrr in VBA error
    By CyberBuzzard in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-22-2005, 04:25 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