# XMIRR Help

#### mayday1028

##### New Member
Attention Finance gurus - XMIRR Struggles

I need some help with the XMIRR function. Jay Petrulis has referenced the link below several times as a way to combine the best of the MIRR and the XIRR functions. However, when I apply it to a list of about 120 cash flows (several positive and several negative), I get a #VALUE error. BUT, when I do the F2 and F9 to see the result, the interest rate is right in the neighborhood of what I was expecting. Any ideas why I might be getting this error? I have posted the formula below where the dates are in cells b6:b128 and the values are in cells e6:e128. Thanks!
=POWER((SUM(IF(E6:E128>0,E6:E128*(POWER(1+0.05,(MAX(B6:B128)-B6:B128)/365)),0)))/(SUM(IF(E6:E128<0,E6:E128/(POWER(1+0.05,(MAX(B6:B128)-B6:B128)/365)),0)))*-1,1/((MAX(B6:B128)-MIN(B6:B128))/365))-1

BELOW is one of the posts from Jay Petrulis that I referred to above:
If you can assign dates to the flows, you can get a better option: XMIRR, a
custom function created by David Hager, found here...

http://j-walk.com/ss/excel/eee/eee017.txt

It may give an annualized result, as XIRR does, which can easily be adjusted.

### Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Replies
2
Views
374
Replies
1
Views
221
Replies
14
Views
186
Replies
15
Views
458
Replies
0
Views
577

1,181,439
Messages
5,929,918
Members
436,705
Latest member
Priti19

### 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.

### Which adblocker are you using?

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

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