+ Reply to Thread
Results 1 to 8 of 8

Naming a range inside a formula using "Address"

Hybrid View

  1. #1
    Registered User
    Join Date
    02-13-2007
    Posts
    4

    Naming a range inside a formula using "Address"

    Hi...I'm trying to use the address formula inside of an IRR function. Is this possible? Here is exactly what is happening:

    -There is a table with a list of dates going back a few years and related cash flows
    -I want to be able to calculate the IRR for specific date ranges (ie: i would input from 1-jan-06 to 31-dec-06.
    -I first use MATCH to find the row that corresponds to the start and end dates
    -I then use ADDRESS to get those rows into proper notation
    -I then use IRR
    =IRR("L" & VALUE(H590) & ":" & "L" & VALUE(H594),H596 & ":" & H597,"")

    In this case H590 and H594 hold the row numbers while H596 and H597 hold addresses (eg: $A$456)

    Can I do this?
    THanks!

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by mcke1610
    Hi...I'm trying to use the address formula inside of an IRR function. Is this possible? Here is exactly what is happening:

    -There is a table with a list of dates going back a few years and related cash flows
    -I want to be able to calculate the IRR for specific date ranges (ie: i would input from 1-jan-06 to 31-dec-06.
    -I first use MATCH to find the row that corresponds to the start and end dates
    -I then use ADDRESS to get those rows into proper notation
    -I then use IRR
    =IRR("L" & VALUE(H590) & ":" & "L" & VALUE(H594),H596 & ":" & H597,"")

    In this case H590 and H594 hold the row numbers while H596 and H597 hold addresses (eg: $A$456)

    Can I do this?
    THanks!
    you can use INDIRECT function to get the results.
    see help on using this function

  3. #3
    Registered User
    Join Date
    02-13-2007
    Posts
    4
    Can you provide an example of how indirect would work?

    I'm just not clear on how the INDIRECT function will help me get this range into the IRR function.

    Regards.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703
    Rather than using ADDRESS, MATCH and INDIRECT a better way, normally, is to use a combination of INDEX and MATCH, INDEX can return a cell reference which can be used within another formula. You can probably even do all that within one formula.

    What are the MATCH and ADDRESS formulas you are using?

  5. #5
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by mcke1610
    Can you provide an example of how indirect would work?

    I'm just not clear on how the INDIRECT function will help me get this range into the IRR function.

    Regards.
    put here a sample file with formula you use.

  6. #6
    Registered User
    Join Date
    02-13-2007
    Posts
    4
    I've attached an example file.

    Basically there are cash flows over the past 5 years. What I want to be able to calculate is the IRR over specified periods. So in the blue highlighted cells I input start and end dates.

    I can determine where the start/end dates are in the range...it's taking that data and getting it to work in the IRR function that is proving difficult.

    Thanks for all of your help.
    Attached Files Attached Files

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703
    It's a little long but this formula in F580 should do what you want....

    =XIRR(INDEX(G8:G572,MATCH(F579-1,A8:A572)+1):INDEX(G8:G572,MATCH(F580,A8:A572)), INDEX(A8:A572,MATCH(F579-1,A8:A572)+1): INDEX(A8:A572,MATCH(F580,A8:A572)),0.03)

    format as %

+ 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