XIRR with Dynamic Ranges

coldcanuck

New Member
Joined
Aug 3, 2011
Messages
4
I have managed to hack my way most of my issues myself but I have an outstanding issue that I’m in need of assisance.

This issue deals with using XIRR with dynamic ranges. Each investment is listed in the rows and in my sample spreadsheet I have quarterly investment cash flows in columns K to AM. However, the initial cash flow does not always occur in the first column, K as some of the investments are made in future quarters ( 1Q12, 2Q12, etc.). The problem is that whenever the first value in the XIRR function begins with a zero cash flow, XIRR returns either 0% or -100%. So I need a formula to begin the XIRR calculation on the first column with a cash flow. The argument to the XIRR function has to be dynamic as I cannot predict which quarter the cash flow will begin for each investment (other than one investment will not be any earlier than a previous investment).

Any ideas?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I have managed to hack my way most of my issues myself but I have an outstanding issue that I’m in need of assisance.

This issue deals with using XIRR with dynamic ranges. Each investment is listed in the rows and in my sample spreadsheet I have quarterly investment cash flows in columns K to AM. However, the initial cash flow does not always occur in the first column, K as some of the investments are made in future quarters ( 1Q12, 2Q12, etc.). The problem is that whenever the first value in the XIRR function begins with a zero cash flow, XIRR returns either 0% or -100%. So I need a formula to begin the XIRR calculation on the first column with a cash flow. The argument to the XIRR function has to be dynamic as I cannot predict which quarter the cash flow will begin for each investment (other than one investment will not be any earlier than a previous investment).

Any ideas?

Solved it myself. I needed to use OFFSET to create a range to use in my formula.

=IFERROR(XIRR(OFFSET($K$38,ROW()-38,MATCH($D39,$I$3:$I$31,0)-1,1,F39+1),OFFSET(K$37,0,MATCH($D39,$I$3:$I$31,0)-1,1,F39+1)),-1)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top