+ Reply to Thread
Results 1 to 3 of 3

XIRR - Keeping First Cell Blank in Some Columns

  1. #1
    Registered User
    Join Date
    12-10-2020
    Location
    GMT
    MS-Off Ver
    2019
    Posts
    2

    XIRR - Keeping First Cell Blank in Some Columns

    I have an Excel 2019 file with two worksheets.
    - 1st worksheet contains raw transaction data (purchases in mutual funds)
    - 2nd worksheet contains a PIVOT TABLE that creates a fund-wise column of the transaction data against various dates

    I'm now trying to calculate XIRR for each fund, at the bottom of the pivot table.
    The XIRR function expects non-blank data in the first cell of each column. Due to this, the XIRR function is working where the 1st cell contains data, but doesn't work where the 1st cell is blank.

    Since I'm using a pivot table, it is not possible that each fund will have a transaction in the first cell itself.
    What can I do with the XIRR formula so that it ignores the blank cells at the beginning of each column, and starts calculating when it encounters a non-blank value.

    I have attached the sample excel file, and a screenshot too.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by ba3uoqtcp947t5; 12-10-2020 at 04:14 AM. Reason: Solved

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: XIRR - Keeping First Cell Blank in Some Columns

    Please try at B38


    =XIRR(INDEX(B3:B36,MATCH(TRUE,INDEX(B3:B36<>0,),)):B36,INDEX($A$3:$A$36,MATCH(TRUE,INDEX(B$3:B$36<>0,),)):$A$36)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-10-2020
    Location
    GMT
    MS-Off Ver
    2019
    Posts
    2

    Re: XIRR - Keeping First Cell Blank in Some Columns

    Thank you, Bo_Ry, that seems to work exactly how I wanted!

    Although I don't know how the INDEX function works, so I'll read more about it. 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. keeping cell blank until certain criteria is meet
    By steddas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2018, 04:41 PM
  2. [SOLVED] Keeping a cell blank if the related cells shows
    By Anuru in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-24-2014, 05:27 AM
  3. [SOLVED] Keeping two blank cell after the text “Expire Date:”
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-24-2014, 02:55 PM
  4. Keeping a cell blank if the formulae is adding a 0 but keep consistant through out row
    By DAVIDALLENCHAPMAN in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-07-2013, 11:11 PM
  5. [SOLVED] Need Help Keeping Cells Blank Until Data is placed in Input Cell
    By areidel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2012, 05:45 PM
  6. Keeping formula based cell blank
    By veddeshpande in forum Excel General
    Replies: 2
    Last Post: 06-07-2007, 07:57 AM
  7. Keeping the cell blank...
    By JP in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 05-05-2005, 05:06 AM

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