+ Reply to Thread
Results 1 to 5 of 5

IRR with dynamic range

  1. #1
    Registered User
    Join Date
    12-17-2010
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    14

    IRR with dynamic range

    I am trying to create an IRR function with a dynamic range, such that the range of values to be included in the IRR calculation will adjust automatically depending on the my model. I am trying to work with the following function, but continue to get an error. The following is the relevant information:

    Cell AI26 contains a reference to the cell containing the first cash flow I want to include
    Cell AI27 contains a reference to the cell containing the last cash flow I want to include

    I am trying to use the following formula: =IRR((INDIRECT("AI26"))&":"&INDIRECT("AI27"))

    I cannot figure out whether I am missing something in the formula, or if excel just wont recognize this kind of range reference. I appreciate any help you can provide.
    Last edited by NBVC; 05-26-2011 at 12:49 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IRR with dynamic range

    Exactly what reference is in AI26 and AI27?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-17-2010
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: IRR with dynamic range

    Cell AI26 contains the address of cell AE24, or "$AE$24". Cell AE24 contains the first in a string of cash flows I want to include in my IRR calculation.

    Cell AI27 contains the address of cell AE543, or "$AE$543". Cell AE543 contains the last in a string of cash flows I want to include in my IRR calculation.

    The reason I set it up this way is that these cells will change depending on model case I am working with. For example, if I changed up the cash flows a bit, the last cash flow I would want to include in the IRR calc might be cell AE900. Cell AI27 is set up to adjust to that and return the address of the last cell I want to include under all model settings. I hope this makes sense.

    Thanks for your help!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IRR with dynamic range

    Try:

    =IRR((INDIRECT(AI26&":"&AI27)))

  5. #5
    Registered User
    Join Date
    12-17-2010
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: IRR with dynamic range

    Yes, that works. Thanks a lot for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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