Financial
All versions
◉ 44 views
=ODDLYIELD()
Returns the yield of a security that has an odd (short or long) last period.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2021Excel 2021 for MacExcel 2019Excel 2019 for MacExcel 2016
=ODDLYIELD(settlement, maturity, last_interest, rate, pr, redemption, frequency, [basis])
Hover argument names in the table for details.
Output typeNumber
Popularity3 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =ODDLYIELD() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
settlement |
Date | 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 |
Date | Required | The security's maturity date. The maturity date is the date when the security expires. |
last_interest |
Date | Required | The security's last coupon date. |
rate |
Number | Required | The security's interest rate |
pr |
Number | Required | The security's price. |
redemption |
Number | Required | The security's redemption value per $100 face value. |
frequency |
Number | Required | The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4. |
basis |
Date | Optional | The type of day count basis to use. 0 or omitted = US (NASD) 30/360; 1 = Actual/actual; 2 = Actual/360; 3 = Actual/365; 4 = European 30/360. |
▣ Examples
▦ Data
| Cell | Value |
|---|---|
A2 |
4/20/2008 |
B2 |
Settlement date |
A3 |
6/15/2008 |
B3 |
Maturity date |
A4 |
12/24/2007 |
B4 |
Last interest date |
A5 |
3.75% |
B5 |
Percent coupon |
A6 |
$99.875 |
B6 |
Price |
A7 |
$100 |
B7 |
Redemption value |
A8 |
2 |
B8 |
Frequency is semiannual |
A9 |
0 |
B9 |
30/360 basis |
A10 |
4/20/2008 |
B10 |
Settlement date |
A11 |
6/15/2008 |
B11 |
Maturity date |
A12 |
12/24/2007 |
B12 |
Last interest date |
A13 |
3.75% |
B13 |
Percent coupon |
A14 |
$99.875 |
B14 |
Price |
A15 |
$100 |
B15 |
Redemption value |
A16 |
2 |
B16 |
Frequency is semiannual |
A17 |
0 |
B17 |
30/360 basis |
The yield of a security that has an odd (short or long) last period, for the bond using the terms in cells A2:A10 as function arguments. Result is 0.04519, or 4.52%.
=ODDLYIELD(A2, A3, A4, A5, A6, A7, A8, A9)
Result:
4.52%
§ Remarks
- Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
- The settlement date is the date a buyer purchases a coupon, such as a bond. The maturity date is the date when a coupon expires. For example, suppose a 30-year bond is issued on January 1, 2008, and is purchased by a buyer six months later. The issue date would be January 1, 2008, the settlement date would be July 1, 2008, and the maturity date would be January 1, 2038, which is 30 years after the January 1, 2008, issue date.
- Settlement, maturity, last_interest, and basis are truncated to integers.
- If settlement, maturity, or last_interest is not a valid date, ODDLYIELD returns the #VALUE! error value.
- If rate < 0 or if pr ≤ 0, ODDLYIELD returns the #NUM! error value.
- If basis < 0 or if basis > 4, ODDLYIELD returns the #NUM! error value.
- The following date condition must be satisfied; otherwise, ODDLYIELD returns the #NUM! error value: maturity > settlement > last_interest
- ODDLYIELD is calculated as follows: where: Ai = number of accrued days for the ith, or last, quasi-coupon period within odd period counting forward from last interest date before redemption. DCi = number of days counted in the ith, or last, quasi-coupon period as delimited by the length of the actual coupon period. NC = number of quasi-coupon periods that fit in odd period; if this number contains a fraction it will be raised to the next whole number. NLi = normal length in days of the ith, or last, quasi-coupon period within odd coupon period.
✦ Tips
- Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
- Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
- The settlement date is the date a buyer purchases a coupon, such as a bond. The maturity date is the date when a coupon expires. For example, suppose a 30-year bond is issued on January 1, 2008, and is purchased by a buyer six months later. The issue date would be January 1, 2008, the settlement date would be July 1, 2008, and the maturity date would be January 1, 2038, which is 30 years after the January 1, 2008, issue date.
- Settlement, maturity, last_interest, and basis are truncated to integers.
⚠ Common Errors
#VALUE!
If settlement, maturity, or last_interest is not a valid date, ODDLYIELD returns the #VALUE! error value.
Fix: تاریخها را با تابع DATE وارد کنید و از صحت آنها اطمینان حاصل کنید.
#NUM!
If rate < 0 or if pr ≤ 0, ODDLYIELD returns the #NUM! error value. If basis < 0 or if basis > 4, ODDLYIELD returns the #NUM! error value. The following date condition must be satisfied; otherwise, ODDLYIELD returns the #NUM! error value: maturity > settlement > last_interest
Fix: Check the order of the dates and the input values
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!