My Excel Jeanie is broken, so I apologize for the crudeness here.
First, here's my sample data in A1:C10
Code:
28-Jan-09 -7812 X
16-Jul-09 1342 X
1-Jan-10 -2677
19-Jun-10 4197
5-Dec-10 4877
23-May-11 -749
8-Nov-11 4887 X
25-Apr-12 1320 X
11-Oct-12 -1660 X
29-Mar-13 4176
In E1, I have the following formula:
=XIRR(IF(C1:C10="X",B1:B10,0),A1:A10)
It's array-entered; Ctrl+Shift+Enter.
Next I have a control set of values, in E5:F9
Code:
28-Jan-09 -7812
16-Jul-09 1342
8-Nov-11 4887
25-Apr-12 1320
11-Oct-12 -1660
Then I use this formula:
=XIRR(F5:F9,E5:E9)
Both return the same result (-12.45%).
Note also, that if I change a cashflow, such as the Nov 8, 2011, to negative (-4887) I'll get a #NUM error in either formula, because now NPV is always <0, therefore there is no IRR.