Solving for IRR without using a column

Davidns

Board Regular
Joined
May 20, 2011
Messages
159
Office Version
  1. 365
Platform
  1. MacOS
Is there a way to use a formula, rather than a column of data, to solve IRR wherein the variables are something like:

Payment Amount, # of occurrences
Payment Amount, # of occurrences
ie:
$200 for 5 months
$300 for 7 months
225 for 4 months

Thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
IRR requires at least 1 negative and 1 positive value. The negative usually is first, with the following values being the income. So you could do something like this:

Book1
ABCD
1CostIncome# of monthsIRR
2$ (500.00)$ 200.00529%
3$(1,000.00)$ 300.00723%
4$ (750.00)$ 225.0048%
Sheet6
Cell Formulas
RangeFormula
D2:D4D2=IRR(IF(SEQUENCE(C2+1)=1,A2,B2))
 
Upvote 0
IRR requires at least 1 negative and 1 positive value. The negative usually is first, with the following values being the income. So you could do something like this:

Book1
ABCD
1CostIncome# of monthsIRR
2$ (500.00)$ 200.00529%
3$(1,000.00)$ 300.00723%
4$ (750.00)$ 225.0048%
Sheet6
Cell Formulas
RangeFormula
D2:D4D2=IRR(IF(SEQUENCE(C2+1)=1,A2,B2))
Thanks but not sure I am following you. In my use case, the sequence will always be an initial negative number (my loan amount), followed by a series of payments, such as:

-3000 loan amount
200 7 times
300. 5 times
250. 4 times

How would your formula work in this case?
Thanks!
 
Upvote 0
Like this perhaps?

ABC
1AmountNo
2Principal-3,0001
3Repayments2007
43005
52504
6
7IRR3.1%per month
Sheet1
Cell Formulas
RangeFormula
B7B7=IRR(TOCOL(IFS(SEQUENCE(,MAX(C2:C5))<=C2:C5,B2:B5),2))
 
Upvote 0
I came up with the formula below, but Stephen's is much better! Go with that one.

Book1
ABC
1AmountCountIRR
2$(3,000.00)13.06%
3$ 200.007
4$ 300.005
5$ 250.004
6
Sheet6
Cell Formulas
RangeFormula
C2C2=LET(r,COUNT(A2:A20),s,SUM(B2:B20),sq,SEQUENCE(r,,0),lu,SUBTOTAL(9,OFFSET(B1,0,0,sq+1)),sl,SEQUENCE(s,,0),si,XLOOKUP(sl,lu,OFFSET(A2,0,0,r),,-1),IRR(si))
 
Upvote 0
wow, you guys are really good. Could never have done this on my own (and even Perplexity said it is not possible). Will play around with it later today. Thank you very much. Truly appreciated!
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,790
Members
451,589
Latest member
Harold14

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