The Excel ODDLYIELD function calculates the yield of a security with an odd (short or long) last period.
Syntax:= ODDLYIELD (sd, md, ld, rate, pr, redem, freq, [basis])
The ODDLYIELD function syntax has the following arguments:
- Settlement Required. The security’s settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
- Maturity Required. The security’s maturity date. The maturity date is the date when the security expires.
- Last_interest Required. The security’s last coupon date.
- Rate Required. The security’s interest rate
- Pr Required. The security’s price.
- Redemption Required. The security’s redemption value per $100 face value.
- Frequency Required. The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
- Basis Optional. The type of day count basis to use.
|Basis||Day count basis|
|0 or omitted||US (NASD) 30/360|
Example: Let’s look at some Excel ODDLYIELD function examples and explore how to use the ODDLYIELD function as a worksheet function in Microsoft Excel:
Based on the Excel spreadsheet above, the following ODDLYIELD examples would return:
- #NUM! error – Occurs when:
- The last interest date is greater than or equal to the settlement date.
- The given settlement date is greater than or equal to the maturity date.
- We provided invalid numbers for the rate, pr, redemption, frequency or [basis] arguments. That is if either rate is less than 0; pr is less than 0; redemption is less than or equal to 0; frequency is any number other than 1, 2, or 4; or [basis] is any number other than 0, 1, 2, 3 or 4).
- #VALUE! error – Occurs when:
- The given settlement, maturity, or issue arguments are not valid Excel dates.
- Any of the given arguments is non-numeric.