+ Reply to Thread
Results 1 to 8 of 8

XIRR function with relative references

  1. #1
    Registered User
    Join Date
    02-09-2022
    Location
    USA
    MS-Off Ver
    365 for enterprise
    Posts
    21

    XIRR function with relative references

    Hello,

    i am seeking some helping building a formula using XIRR to calculate the IRR over a certain range that could be a subset of the entire cash flow strip. my thought was to use relative references to offset from a starting point and use the CELL address formula to build the cell references. I am not married to this approach if anyone has a better way i would really appreciate it. please see attached example and please let me know if i can further explain anything, thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: XIRR function with relative references

    Using an array formula (you may have to enter with Ctrl+Shift+Enter if normal enter does not work), E13=XIRR(OFFSET(J10,0,$C$14,1,$C$15-$C$14+1),OFFSET(J6,0,$C$14,1,$C$15-$C$14+1))

  3. #3
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: XIRR function with relative references

    Why not avoid OFFSET?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    My personal mania: eliminate all unnecessary volatile function calls.

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: XIRR function with relative references

    hrlngrv, correcting your formula: E13=XIRR(INDEX(K10:CL10,C14):INDEX(K10:CL10,C15),INDEX(K6:CL6,C14):INDEX(K6:CL6,C15))

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: XIRR function with relative references

    OFFSET is much more convenient to use because you don't need to specify the range and makes no significant difference unless you use OFFSET extensively throughout your workbook.

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

    Re: XIRR function with relative references

    @exceltrainee314.... GIGO? I question the correctness of varying the subrange of cash flows arbitrarily. If you share my doubts, explain the cash flows.

    Usually, a valid cash flow model for calculating an IRR has an initial balance (or investment) and final balance, with external cash flows in between.

    So, for each subrange, the initial balance and corresponding date might be the same. And we need to know the final balance for the date of each possible subrange.

    In models of business operations, where the "external" cash flows are net profit, the "initial investment" would be the initial net working capital (NWC); and the "final balance" would be the net profit minus the original NWC.

  7. #7
    Registered User
    Join Date
    02-09-2022
    Location
    USA
    MS-Off Ver
    365 for enterprise
    Posts
    21

    Re: XIRR function with relative references

    Thank you! this worked great, nice and simple

  8. #8
    Registered User
    Join Date
    02-09-2022
    Location
    USA
    MS-Off Ver
    365 for enterprise
    Posts
    21

    Re: XIRR function with relative references

    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. Replies: 3
    Last Post: 02-02-2020, 04:08 PM
  2. Creating a function which uses relative references
    By twaccess in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-07-2019, 08:30 AM
  3. relative references to absolute references
    By marian.dicicco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2019, 08:09 PM
  4. How to for converting absolute references to relative references in formulas
    By edspyhill01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2014, 02:09 AM
  5. IF, Relative and Absolute references and Financial Function! Help Please
    By marius717 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2013, 07:24 AM
  6. [SOLVED] Problem with SUM function and absolute & relative references
    By jjin082693 in forum Excel General
    Replies: 4
    Last Post: 06-25-2012, 11:41 PM
  7. [SOLVED] XIRR non contiguous references
    By tloano in forum Excel General
    Replies: 2
    Last Post: 05-07-2006, 12:40 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