XIRR with potentially blank cells in the range

Nixhex11

Board Regular
Joined
Nov 26, 2015
Messages
116
Guys,
I've built a financial model for projects that range in length and thus have had to build in the flexibility to handle this. In the dates portion of my cash flow within the model, I have formulas dragged over for 16 years max but the cells will only populate if the project is ongoing and will be blank if it is over (depending on user inputs).
I'd like to have an XIRR calculation built in but I get an #NUM! error due to my blank cells. I will need to cover the entire range since it's impossible to predict how long each project will be. Is there a formula that detects the range of <>"" cells and then a way to do an xirr calculation on just those? Any help would be appreciated!

Thanks!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Figured it out - named both ranges (cash flows and dates) using =offset(origin cell, 0,0, 1, count(range)). Then the formula was =xirr(cashflows, dates).
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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