J
John C
Um, not to be a stickler, but that is coming up with the security's annual
yield, not the security's annual rate.
yield, not the security's annual rate.
John C said:The formula for PRICE is actually in the Excel Help. However, I'd like to
see you do the reverse algebra on it . . .
Harlan Grove said:John C said:The formula for PRICE is actually in the Excel Help. However, I'd like to
see you do the reverse algebra on it . . .
It's easy. It's essentially
Price = x + Rate * y - Rate * z
so
Rate = (Price - x) / (y - z)
where Price is a given,
x = redemption / (1 + yld / frequency) ^ (N - 1 + DSC / E)
y = Sum[k=1..N, 100 / frequency / (1 + yld / frequency) ^ (k - 1 +
DSC / E)]
= 100 / frequency / (1 + yld / frequency) ^ (DSC / E - 1)
* Sum[1..N, (1 + yld / frequency) ^ -k]
z = 100 * A / frequency / E
x and z are straightforward. The latter Sum[] for y can be derived
simply as PV(yld / frequency, N, -1).
John C said:I see no excel portion of it. I was referring to the algebra in excel
format, but I don't see that.
...."Harlan Grove" wrote: ....
John C said:Good for the example, but you start falling off if you have other data. And
this from the person who claims to want to account for all scenarios. What
happens if I change my frequency? Your formula goes to heck. Yes, you said
you hardcoded it, but why would you hardcode it? Why wouldn't you give it the
flexibility?
....Dana DeLouis said:Function Price_Rate(Price, dteSett, dteMat, Yld, Redem, F, Basis)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.