OilEconomist
Active Member
- Joined
- Dec 26, 2016
- Messages
- 439
- Office Version
- 2019
- Platform
- Windows
I’ve done a search for solution to my XIRR issue within this board and the web and have not found anything that’s quite the same to help me solve this issue.
Thanks in advance for any suggestions, and I will provide feedback on any proposed solutions.
To get the answers I have, I modified the XIRR function manually, but the number of wells in some cases can 400+. How to calculate XIRR when not starting in the first month? I adjusted the formulas in my table, but how can I do a VBA code or write a function to avoid doing this.
In Column B, I have the reserve category and when this is PDP (Proved Developed Producing) or NEC (Not Economic), the XIRR is “N/A”.
XIRR function for each row:
2: "N/A" since "PDP"
3: "N/A" since "NEC"
4: =XIRR(E4:O4, E$1:O$1, 0.5)
5. =XIRR(G5:O5, G$1:O$1, 0.5)
6. =XIRR(I6:O6, I$1:O$1, 0.5)
7. =XIRR(F7:O7, F$1:O$1, 0.2)
8. =XIRR(F8:O8, F$1:O$1, 0.2)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Well Name[/TD]
[TD]Res Cat[/TD]
[TD]XIRR[/TD]
[TD]1/1/2019[/TD]
[TD]2/1/2019[/TD]
[TD]3/1/2019[/TD]
[TD]4/1/2019[/TD]
[TD]5/1/2019[/TD]
[TD]6/1/2019[/TD]
[TD]7/1/2019[/TD]
[TD]8/1/2019[/TD]
[TD]9/1/2019[/TD]
[TD]10/1/2019[/TD]
[TD]11/1/2019[/TD]
[TD]12/1/2019[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Well A[/TD]
[TD]PDP[/TD]
[TD]N/A[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]2[/TD]
[T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
[TD]55%[/TD]
[TD][/TD]
[TD][/TD]
[TD]-8[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]1.5[/TD]
[TD]1.25[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance for any suggestions, and I will provide feedback on any proposed solutions.
To get the answers I have, I modified the XIRR function manually, but the number of wells in some cases can 400+. How to calculate XIRR when not starting in the first month? I adjusted the formulas in my table, but how can I do a VBA code or write a function to avoid doing this.
In Column B, I have the reserve category and when this is PDP (Proved Developed Producing) or NEC (Not Economic), the XIRR is “N/A”.
XIRR function for each row:
2: "N/A" since "PDP"
3: "N/A" since "NEC"
4: =XIRR(E4:O4, E$1:O$1, 0.5)
5. =XIRR(G5:O5, G$1:O$1, 0.5)
6. =XIRR(I6:O6, I$1:O$1, 0.5)
7. =XIRR(F7:O7, F$1:O$1, 0.2)
8. =XIRR(F8:O8, F$1:O$1, 0.2)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Well Name[/TD]
[TD]Res Cat[/TD]
[TD]XIRR[/TD]
[TD]1/1/2019[/TD]
[TD]2/1/2019[/TD]
[TD]3/1/2019[/TD]
[TD]4/1/2019[/TD]
[TD]5/1/2019[/TD]
[TD]6/1/2019[/TD]
[TD]7/1/2019[/TD]
[TD]8/1/2019[/TD]
[TD]9/1/2019[/TD]
[TD]10/1/2019[/TD]
[TD]11/1/2019[/TD]
[TD]12/1/2019[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Well A[/TD]
[TD]PDP[/TD]
[TD]N/A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