XIRR formula for several Loans

xunda_gunda

New Member
Joined
Aug 17, 2012
Messages
22
Hello,
I am trying to write one XIRR formula that will calculate IRR for several loans (with different start dates).

Loans/Dates15.01.201415.02.201415.03.201415.04.201415.05.201415.06.201415.07.201415.08.201415.09.201415.10.201415.11.201415.12.2014XIRR
Correct
XIRR
Incorrect
XIRR
Correct Formula
XIRR
Incorrect Formula
Loan 1-50,00025,00030,00018.58%0.00%=XIRR(D2:M2,D1:M1)=XIRR(B2:M2,$B$1:$M$1)
Loan 2-150,00050,00080,00040,00029.32%29.32%=XIRR(B3:M3,B1:M1)=XIRR(B3:M3,$B$1:$M$1)
Loan 3-90,00020,00080,00021.01%0.00%=XIRR(F4:M4,F1:M1)=XIRR(B4:M4,$B$1:$M$1)
Loan 4-18,0008,00011,00011.06%0.00%=XIRR(F5:M5,F1:M1)=XIRR(B5:M5,$B$1:$M$1)
Loan 5-15,00010,0007,00047.95%0.00%=XIRR(H6:M6,H1:M1)=XIRR(B6:M6,$B$1:$M$1)

<tbody>
</tbody>

XIRR Correct formula is calculated separately for each loan (first date should be the date when first cash flow (negative) is done)

XIRR Incorrect formula is what I want to use (one formula that will work in every loan).

But problem is - in this case first date for each loan would be 15.01.2014 and IRR will be calculated incorrectly.
I want that for each loan dates range should start from the first cash flow date.

Am I clear? If not, please tell me and I will try to explain more accurately.

Thanks in advance.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi

Assuming the following spreadsheet setup:
ABCDEFGHIJKLMN
1Loans/Dates15/1/1415/2/1415/3/1415/4/1415/5/1415/6/1415/7/1415/8/1415/9/1415/10/1415/11/1415/12/14XIRR
2Loan 1-50000<strike></strike>250003000018.58%
3Loan 2-150000<strike></strike>50000800004000029.32%
4Loan 3-90000<strike></strike>200008000021.01%
5Loan 4-1800080001100011.06%
6Loan 5-1500010000700047,95%

<tbody>
</tbody>

in N2:
Code:
=XIRR(INDIRECT(ADDRESS(ROW(),MATCH(TRUE,ISNUMBER($B2:$M2),0)+1,4)&":M"&ROW()),
INDIRECT(ADDRESS(1,MATCH(TRUE,ISNUMBER($B2:$M2),0)+1,4)&":M1"))
validate with Ctrl+Shift+Enter (array formula) and copy down as necessary

Regards
XLearner
 
Upvote 0
Hi

Assuming the following spreadsheet setup:
ABCDEFGHIJKLMN
1Loans/Dates15/1/1415/2/1415/3/1415/4/1415/5/1415/6/1415/7/1415/8/1415/9/1415/10/1415/11/1415/12/14XIRR
2Loan 1-50000<strike></strike>250003000018.58%
3Loan 2-150000<strike></strike>50000800004000029.32%
4Loan 3-90000<strike></strike>200008000021.01%
5Loan 4-1800080001100011.06%
6Loan 5-1500010000700047,95%

<tbody>
</tbody>

in N2:
Code:
=XIRR(INDIRECT(ADDRESS(ROW(),MATCH(TRUE,ISNUMBER($B2:$M2),0)+1,4)&":M"&ROW()),
INDIRECT(ADDRESS(1,MATCH(TRUE,ISNUMBER($B2:$M2),0)+1,4)&":M1"))
validate with Ctrl+Shift+Enter (array formula) and copy down as necessary

Regards
XLearner


Thank you very very very much :)
 
Upvote 0
You're welcome & Thanks for posting back. Hopefully this will help someone else sooner or later...
 
Upvote 0

Forum statistics

Threads
1,215,633
Messages
6,125,929
Members
449,274
Latest member
mrcsbenson

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