+ Reply to Thread
Results 1 to 4 of 4

Using the RESULT from one formula as a reference in a different formula

Hybrid View

  1. #1
    Registered User
    Join Date
    08-25-2016
    Location
    Chicago, USA
    MS-Off Ver
    2016
    Posts
    5

    Using the RESULT from one formula as a reference in a different formula

    Ok, so I have a sheet of cash flows by customer and I need to determine the IRR for each customer. The XIRR formula calls for the following inputs:
    XIRR(values, dates, guess).

    The challenge is that the 'values' and 'dates' are not relative and are completely random per each customer. I cannot simply copy the formula and paste it down for every customer because the ranges are random and different for every customer.

    What I did is create 2 new formulas (columns) that identify each cell/row range for the 'values' and 'dates' needed for the above XIRR formula. The results of these new columns give me the correct 'values' and 'dates'. However, if I simply plug in the working formulas into my IRR 'values' and IRR 'dates', the result is #value!.

    Here are the formulas I created that result in the correct 'value' and 'dates':

    Value Formula: =CONCATENATE(VLOOKUP(B42,'Disb Date Table'!$A$2:$E$54,3,0),ROW()+9,":",VLOOKUP($B42,'Disb Date Table'!$A$2:$E$54,5,0),ROW()+9) this returns 'J51:AX51'

    Date Formula: CONCATENATE(VLOOKUP(B42,'Disb Date Table'!$A$2:$E$54,3,0),,ROW()-1,":",VLOOKUP($B42,'Disb Date Table'!$A$2:$E$54,5,0),ROW()-1)
    this returns 'J41:AX41'

    So what I'm trying to accomplish in my XIRR formula is the following: = XIRR(J51:AX51,J41:AX41,1%) << this applies to one specific customer, obviously a different customer will have different values and dates, hence the need for a solution

    Hopefully this post is clear To summarize, I need to reference my 'value' and 'dates' formula within the XIRR formula. I know I've done this before with simpler formulas. There has to be a way, right?

    TIA

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using the RESULT from one formula as a reference in a different formula

    Maybe you have to wrap a indirect formula, I am not sure, but you could give it a try.

    = XIRR(indirect(formula1),indirect(formula2),1%)
    Last edited by oeldere; 08-30-2016 at 10:41 AM. Reason: formula changed
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-25-2016
    Location
    Chicago, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: Using the RESULT from one formula as a reference in a different formula

    Quote Originally Posted by oeldere View Post
    Maybe you have to wrap a indirect formula, I am not sure, but you could give it a try.

    = XIRR(indirect(formula1),indirect(formula2),1%)
    YES! This absolutely worked. Thanks!!

    Final formula - =XIRR(INDIRECT(BA42),INDIRECT(BB42),1%)

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using the RESULT from one formula as a reference in a different formula

    Thanks for the rep.

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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 Result as Cell Reference
    By The Mint in forum Excel General
    Replies: 4
    Last Post: 10-01-2009, 03:36 PM
  2. Cell reference displays formula not result !?
    By feastino in forum Excel General
    Replies: 7
    Last Post: 04-01-2008, 09:59 AM
  3. [SOLVED] Advanced formula - Return result & Show Cell Reference of result
    By Irv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-05-2006, 10:40 PM
  4. Replies: 5
    Last Post: 10-13-2005, 08:05 AM
  5. How to replace a function with its result or resulting reference in a formula?
    By Dmitry Kopnichev in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-13-2005, 08:05 AM
  6. How to replace a function with its result or resulting reference in a formula?
    By Dmitry Kopnichev in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-13-2005, 08:05 AM
  7. Using a formula result to reference a row
    By f1capsicum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2005, 06:05 AM
  8. Replies: 1
    Last Post: 01-11-2005, 10:06 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