HELP refer function to a specific range

riiiiiichhhhhhhhh

New Member
Joined
Feb 23, 2022
Messages
11
Office Version
  1. 2016
Platform
  1. Windows
Hi All,
Trying to refer an XIRR formula which requires values and dates for each ID series in, and could not find a way to do that but manually
in the following example i have 4 ID number but a lot more in reality




ID Number​
Date​
amount​
1020​
26/12/2017​
-30,000​
-0.244994607​
1020​
06/03/2018​
6,000​
1020​
26/03/2018​
8,210​
1020​
10/04/2018​
13,714​
3320​
25/08/2017​
-35,000​
xirr for 3320​
3320​
03/11/2017​
38,000​
3358​
28/01/2020​
-25,000​
xirr for 3358​
3358​
25/02/2020​
1,940​
3358​
05/03/2020​
960​
3358​
30/03/2020​
5,000​
3358​
20/04/2020​
5,000​
3358​
30/04/2020​
5,000​
3358​
15/05/2020​
5,000​
3358​
06/07/2020​
1,340​
3358​
27/07/2020​
1,841​
3358​
17/08/2020​
7,786​
3358​
04/09/2020​
1,043​
3358​
18/09/2020​
800​
3358​
21/10/2020​
800​
3358​
06/11/2020​
750​
2222​
03/11/2020​
-3,000​
xirr for 2222​
2222​
18/11/2020​
5,245​
2222​
29/03/2021​
575​
2222​
01/07/2021​
25,648​
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I am sure someone can come up with a better version but here is one option using MS 365

20220223 XIRR with dynamic range.xlsx
ABCDE
14ID NumberDateamountSampleFormula
15102026-Dec-17-30000-0.244994607-0.24499
1610206-Mar-186000 
17102026-Mar-188210 
18102010-Apr-1813714 
19332025-Aug-17-35000xirr for 33200.535434
2033203-Nov-1738000 
21335828-Jan-20-25000xirr for 33582.325108
22335825-Feb-201940 
2333585-Mar-20960 
24335830-Mar-205000 
25335820-Apr-205000 
26335830-Apr-205000 
27335815-May-205000 
2833586-Jul-201340 
29335827-Jul-201841 
30335817-Aug-207786 
3133584-Sep-201043 
32335818-Sep-20800 
33335821-Oct-20800 
3433586-Nov-20750 
3522223-Nov-20-3000xirr for 2222839503.6
36222218-Nov-205245 
37222229-Mar-21575 
3822221-Jul-2125648 
Sheet1
Cell Formulas
RangeFormula
E15:E38E15=IF(A15<>A14, XIRR(XLOOKUP(A15,$A$15:$A$38,$C$15:$C$38,"",0):XLOOKUP(A15,$A$15:$A$38,$C$15:$C$38,"",0,-1), XLOOKUP(A15,$A$15:$A$38,$B$15:$B$38,"",0):XLOOKUP(A15,$A$15:$A$38,$B$15:$B$38,"",0,-1), 0.1), "")
 
Upvote 0
Welcome to the MrExcel Message Board! :)

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Welcome to the MrExcel Message Board! :)

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
really sorry for that, apologies and thank you for your response
 
Upvote 0

Forum statistics

Threads
1,215,729
Messages
6,126,525
Members
449,316
Latest member
sravya

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