=ODDLYIELD(sd, md, ld, rate, pr, redem, freq, [basis], [na])
=ODDLYIELD(DATE(2018,2,5),DATE(2018,6,15),DATE(2017,10,15),0.05,99.5,100,2,0)
For example, to calculate the yield of a bond that was purchased on February 5, 2018, matures on June 15, 2018, was issued on October 15, 2017, has an interest rate of 5%, a price of 99.5, a redemption value of 100, pays interest twice a year, and uses a day count basis of 0, the formula would be the same as above. This example returns an answer of 6.32%.
The ODDLYIELD function is used to calculate the yield of a security with an odd last period. It requires settlement, maturity, last_interest, rate, pr, redemption, frequency, and basis arguments. It is an easy and reliable way to get the yield of a security with an odd last period.
ODDLYIELD(settlement, maturity, issue, first_interest, rate, pr, basis).
settlement
- the security's settlement datematurity
- the security's maturity dateissue
- the security's issue datefirst_interest
- the security's first interest daterate
- the security's coupon ratepr
- the security's pricebasis
- the security's day count basis