Mis-placed brackets in formula?

horseguards

New Member
Joined
Feb 21, 2019
Messages
3
Office Version
  1. 2007
  2. 2003 or older
Platform
  1. Windows
My first post. Nice to be here.

This is a formula in a cell (part of the financial derivatives formula, Black-76): which returns the value, 0.81:
=stk*EXP(-rt*(C6))*NORMSDIST(-C19)-C3*NORMSDIST(-(LN(C3/stk)+(rt+(C11^2)/2)*(C6))/(C11*SQRT(C6)))

The reference to cell C19 above is the concern.

This is the formula in cell C19 (it returns the valeue, 0.63):


=(LN(ug/stk)+(rt+(C11^2)/2)*(C6))/(C11*SQRT(C6))-C11*(C6)^0.5

If I insert the formula from C19 into the first line , this is the result:

=stk*EXP(-rt*(C6))*NORMSDIST(-(LN(ug/stk)+(rt+(C11^2)/2)*(C6))/(C11*SQRT(C6))-C11*(C6)^0.5)-C3*NORMSDIST(-(LN(C3/stk)+(rt+(C11^2)/2)*(C6))/(C11*SQRT(C6)))

It returns the value, 2.4 rather than 0.18 (the desired answer).

If I enter the numeric value from C19 (0.63) into the first formula, the result is correct (0.81).

I suspect - though I may be wrong - the problem is with brackets. I am using Excel 97. Any suggestions greatly appreciated.

Thank you.




 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
If I'm not mistaken, you need one extra set of parentheses here (in red):
=stk*EXP(-rt*(C6))*NORMSDIST(- ( (LN(ug/stk)+(rt+(C11^2)/2)*(C6))/(C11*SQRT(C6))-C11*(C6)^0.5 ) )-C3*NORMSDIST(-(LN(C3/stk)+(rt+(C11^2)/2)*(C6))/(C11*SQRT(C6)))
 
Upvote 0
Solution
Well Kirk, you've done it. I hope I can repay in kind in due course.

Excel's syntax/order of precedence has always been a pain.

Thank you so much.

(I couldn't install XL2BB. Will try again.)

Grant.
 
Upvote 0
You're welcome...I'm happy to help. If you are interested in eliminating some of the parentheses and tightening up the formula, give this a try:
Excel Formula:
=stk/EXP(rt*C6)*NORMSDIST(SQRT(C6)/C11*(C11^2/2-rt-LN(ug/stk)/C6))-C3*NORMSDIST(-SQRT(C6)/C11*(C11^2/2+rt+LN(C3/stk)/C6))
 
Upvote 0

Forum statistics

Threads
1,223,995
Messages
6,175,850
Members
452,675
Latest member
duongtruc1610

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