XIRR with Non-Contiguous Entries (Single Column of Cash Flows, Multiple Entities)

jjobrien03

New Member
Joined
Sep 2, 2014
Messages
41
I have a stream of cash flows with with two different Categories by which I would like to generate IRRs. I know you can create TRUE/FALSE ranges to be referenced by formulas and I think this is probably the way I want to do this? Basically I want to calculate separate IRRs for apple/banana/pear and Unrealized/Realized using one column of cash flows similar to the below. Can someone help me with this?

Ideally this would be without helper columns and/or array formulas

XIRR Offset.xlsx
EFGH
2CategoryXIRR
3Apple?
4Pear?
5Banana?
6Realized?
7Unrealized?
8
9DateCategory1Category2$
101/1/2022appleRealized-1,000
114/1/2022appleRealized200
127/1/2022bananaUnrealized-2,500
1310/1/2022pearUnrealized-500
141/1/2023bananaUnrealized1,000
154/1/2023pearUnrealized500
167/1/2023bananaUnrealized1,000
1710/1/2023appleRealized300
181/1/2024appleRealized900
194/1/2024pearUnrealized150
207/1/2024bananaUnrealized1,000
Sheet1
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
What version of Excel are you using? Below seems to be working in MS 365:
Book1
EFGH
2CategoryXIRR
3Apple22.5%
4Pear45.6%
5Banana17.4%
6Realized22.5%
7Unrealized20.3%
8
9DateCategory1Category2$
101/1/2022appleRealized-1000
114/1/2022appleRealized200
127/1/2022bananaUnrealized-2500
1310/1/2022pearUnrealized-500
141/1/2023bananaUnrealized1000
154/1/2023pearUnrealized500
167/1/2023bananaUnrealized1000
1710/1/2023appleRealized300
181/1/2024appleRealized900
194/1/2024pearUnrealized150
207/1/2024bananaUnrealized1000
Sheet4
Cell Formulas
RangeFormula
F3:F5F3=XIRR(INDEX(FILTER($E$10:$H$20,$F$10:$F$20=$E3),0,4),INDEX(FILTER($E$10:$H$20,$F$10:$F$20=$E3),0,1))
F6:F7F6=XIRR(INDEX(FILTER($E$10:$H$20,$G$10:$G$20=$E6),0,4),INDEX(FILTER($E$10:$H$20,$G$10:$G$20=$E6),0,1))
 
Upvote 0
Solution
What version of Excel are you using? Below seems to be working in MS 365:
Book1
EFGH
2CategoryXIRR
3Apple22.5%
4Pear45.6%
5Banana17.4%
6Realized22.5%
7Unrealized20.3%
8
9DateCategory1Category2$
101/1/2022appleRealized-1000
114/1/2022appleRealized200
127/1/2022bananaUnrealized-2500
1310/1/2022pearUnrealized-500
141/1/2023bananaUnrealized1000
154/1/2023pearUnrealized500
167/1/2023bananaUnrealized1000
1710/1/2023appleRealized300
181/1/2024appleRealized900
194/1/2024pearUnrealized150
207/1/2024bananaUnrealized1000
Sheet4
Cell Formulas
RangeFormula
F3:F5F3=XIRR(INDEX(FILTER($E$10:$H$20,$F$10:$F$20=$E3),0,4),INDEX(FILTER($E$10:$H$20,$F$10:$F$20=$E3),0,1))
F6:F7F6=XIRR(INDEX(FILTER($E$10:$H$20,$G$10:$G$20=$E6),0,4),INDEX(FILTER($E$10:$H$20,$G$10:$G$20=$E6),0,1))
It does - thank you!
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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