+ Reply to Thread
Results 1 to 3 of 3

XIRR For Multiple Dates. Need to Merge Cells.

  1. #1
    Registered User
    Join Date
    04-08-2017
    Location
    N/A
    MS-Off Ver
    2016
    Posts
    30

    XIRR For Multiple Dates. Need to Merge Cells.

    Hello,

    I would appreciate your help on the below case where I have to calculate XIRR for multiples dates considering that market values and flows are located under the same columns.

    Example:
    In cell F9 I need to merge dates from (1) C3 to C6 plus C9 and (2) Initial Market Value, D3, plus Flows, D4:D6, plus Market Value for the corresponding date, which is D9 in this case. So basically under dates I need to have "C3:C6 & C9" and under values "D3:D6 & D9".

    Is that possible to achieve with array type of formula?

    Thank you in advance!
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: XIRR For Multiple Dates. Need to Merge Cells.

    (Contrary to conventional wisdom, "a picture is __not__ worth 1000 words (or KB)". In the future, please follow the instructions in the bright yellow banner at the top of the page -- hard to miss, eh? -- and attach an actual Excel file, not an image, so that we do not have to re-enter your example.

    Array-enter (press ctrl+shift+Enter instead of just Enter) the following formula into F7, then copy-and-paste F7 into F8:F9.

    =XIRR(IF(ROW($D$3:$D$7)=ROW($D$7), D7, $D$3:$D$7), IF(ROW($D$3:$D$7)=ROW($D$7), C7, $C$3:$C$7))

    Excel will display the formula surrounded by curly braces to indicate that it was array-entered. Do not type the curly braces manually.

    See the attached Excel file.

    The formula effectively appends fictitious "row 7" to the data in rows 3:6. The source of the data for "row 7" can come from anywhere.

    (For F7, it comes from C7:D7 by coincidence. So technically, you could get away with =XIRR(D3:D7,C3:C7) in F7, and a formula like the above in F8:F9. But I presume your actual design is not so simple.)
    Attached Files Attached Files
    Last edited by joeu2004; 11-26-2020 at 07:04 PM.

  3. #3
    Registered User
    Join Date
    04-08-2017
    Location
    N/A
    MS-Off Ver
    2016
    Posts
    30

    Re: XIRR For Multiple Dates. Need to Merge Cells.

    Thank you joeu2004!

+ 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 function in VBA with dates in array
    By sch21c in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-08-2020, 11:56 AM
  2. flexible XIRR with different starting dates
    By mrp2018 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-25-2019, 12:36 PM
  3. Trying to merge cells, but dates become values
    By s4boost in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-08-2019, 02:01 PM
  4. Replies: 4
    Last Post: 08-12-2018, 04:58 AM
  5. XIRR and Dates
    By Liebschki in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-07-2015, 03:13 AM
  6. Capturing Data from multiple cells to multiple tables and cells on specific dates
    By zero_eclipse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-27-2012, 08:38 AM
  7. [SOLVED] Merge Multiple Cells
    By Carter68 in forum Excel General
    Replies: 2
    Last Post: 02-08-2006, 11:15 AM

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