Use Excel to solve a complex algebraic equation?

Mr. Snrub

Board Regular
Joined
May 22, 2005
Messages
147
Office Version
  1. 365
Platform
  1. Windows
I am working on calculating money-weighted rate of return for my portfolio. I have to solve the following equation for r:

$298,082 = ($250,000 * (1 + r)) + ($25,000 * (1 + r)^((365 - 258)/365)))

...which simplifies to:

$298,082 = ($250,000 * (1 + r)) + ($25,000 * (1 + r)^(0.293150685))

Is there an easy way to do this in Excel? I am using Excel 2016.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I am working on calculating money-weighted rate of return for my portfolio. I have to solve the following equation for r:

$298,082 = ($250,000 * (1 + r)) + ($25,000 * (1 + r)^((365 - 258)/365)))

...which simplifies to:

$298,082 = ($250,000 * (1 + r)) + ($25,000 * (1 + r)^(0.293150685))

Is there an easy way to do this in Excel? I am using Excel 2016.

One easy way is to use Goal Seek.
 
Upvote 0
r=1$298,082 = ($250,000 * (1 + r)) + ($25,000 * (1 + r)^(0.293150685))
looking for 0 in this column
r plus0232550.8
1482550.8
51482551
102732551
205232551
5012732551
10025232551
5001.25E+08
10002.5E+08
50001.25E+09
200005E+09
500001.25E+10
this first guess shows r is less than 0
so plug in a guess into B1

<colgroup><col span="14"></colgroup><tbody>
</tbody>
 
Upvote 0
r=-50000$298,082 = ($250,000 * (1 + r)) + ($25,000 * (1 + r)^(0.293150685))
looking for 0 in this column
r plus0#NUM!
1#NUM!
5#NUM!
10#NUM!
20#NUM!
50#NUM!
100#NUM!
500#NUM!
1000#NUM!
5000#NUM!
20000#NUM!
50000#NUM!
so plug in a guess into B1
ooops maybe the formula logic is wrong

<colgroup><col span="15"></colgroup><tbody>
</tbody>
 
Upvote 0
What did you try?
Make A5 to 298020 by changing A2

See result in adjacent column


Excel 2010
ABCD
1250,000.00250,000.00
25.00%8.98%
325,000.0025,000.00
40.2931506850.293150685
5287,860.14298,082.00
6
2a
Cell Formulas
RangeFormula
A5=A1*(1+A2)+A3*(1+A2)^A4
D5=D1*(1+D2)+D3*(1+D2)^D4
 
Upvote 0
Another way, without Goal Seek:

A​
B​
C​
D​
E​
1​
1/1/2017​
($250,000)
A1: InputB1: Input
2​
9/16/2017​
($25,000)
A2: =A1 + 258B2: Input
3​
1/1/2018​
$298,082​
A3: =A1 + 365B3: Input
4​
rate​
8.98%
A4: InputB4: =XIRR(B1:B3, A1:A3)
 
Last edited:
Upvote 0
Maybe more clearly,

A​
B​
C​
1​
0​
($250,000)
2​
258​
($25,000)
3​
365​
$298,082​
4​
rate​
8.98%
B4: =XIRR(B1:B3, A1:A3)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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