ODDLYIELD Function in Microsoft Excel: Syntax, Examples & Troubleshooting
Compute Excel yield for an odd last coupon with ODDLYIELD. Use full-precision short and long final-period price controls, strict date order and accrued-interest reconciliation.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: ODDLYIELD returns the annual yield implied by a security’s price when its last coupon period is irregular. It uses the last coupon date, settlement and maturity to distinguish accrued interest from the cash flow still due.
Syntax and arguments
=ODDLYIELD(settlement, maturity, last_interest, rate, pr, redemption, frequency, [basis])
All arguments except basis are required. Pr is the quoted price on the per-100 scale, rate is the annual coupon rate, and last_interest is the preceding coupon date. The solved yield is separate from the coupon rate.
Use a positive redemption amount per 100 face value and frequency 1, 2 or 4 for the normal annual, semiannual or quarterly schedule. Rate is annual. An odd last period does not introduce a new frequency value.
Basis is 0 or omitted = US (NASD) 30/360; 1 = actual/actual; 2 = actual/360; 3 = actual/365; 4 = European 30/360. Dates and basis are truncated to integers. Create dates with DATE and maintain the strict ordering maturity > settlement > last_interest.
Worked example: a short final coupon period
- Put
=DATE(2026,2,15)in B2 for settlement,=DATE(2026,4,15)in B3 for maturity and=DATE(2026,1,15)in B4 for last interest. - Put 6% in B5, 100 in B7, 2 in B8 and 0 in B9.
- Put the full-precision price formula
=101.5/(1+8%*60/360)-0.5in B6, expected approximately 99.66447368421052. - Enter
=ODDLYIELD(B2,B3,B4,B5,B6,B7,B8,B9)in D2.
Expected yield: approximately 8%. The final 90-day convention period pays 1.5 interest. At settlement 0.5 has accrued, leaving 60 convention days to the 101.5 payment. The inverse arithmetic is (101.5/(price+0.5)−1)×360/60.
Second example: reduce the required yield
In B6, change the 8% in the price construction to 6%. Expected price becomes approximately 99.99504950. The same ODDLYIELD formula is then expected to return approximately 6%.
A displayed quote rounded to 100.00 is not the same as the full-precision value. Entering exactly 100 instead of the computed price changes the implied yield, so retain the formula when testing the inverse relationship.
Advanced application: a long final interval
Use last interest October 15, 2025; settlement February 15, 2026; maturity July 15, 2026; rate 6%; redemption 100; frequency 2; basis 0. The full final coupon is 4.5, accrued interest is 2, and the remaining year fraction is 5/12.
Construct price as =104.5/(1+8%*5/12)-2, approximately 99.12903225806451. Supplying that price to the matching ODDLYIELD formula is expected to return approximately 8%. Independently, (104.5/(price+2)−1)/(5/12) recovers that rate.
Microsoft’s equation expresses the odd period as sums of quasi-coupon day fractions. For these mid-month 30/360 examples the fractions simplify neatly; do not replace every actual/actual long-period case with a fixed-month assumption. The price term in the published equation is labeled “par,” while the function’s actual price argument is pr; no extra argument is intended.
Troubleshooting and boundaries
Microsoft documents #VALUE! for invalid dates; #NUM! for negative rate, price zero or negative, basis outside 0–4, or violation of maturity > settlement > last_interest. The last-interest date cannot simply be set equal to settlement in these documented strict-order examples.
Check price scale before interpreting a yield. A total holding cost of 9966.45 is not a per-100 quote of 99.6645. Keep the original coupon terms, full price precision and selected basis visible beside the result. The function has no arbitrary cash-flow list or fee argument, and the numerical controls here do not claim native application execution.
Compatibility and verification
Microsoft’s reference checked on October 17, 2026 lists: Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel 2024 Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016. This current support list does not establish the first release. The introduction version and last functioning version have not been established from the reviewed documentation. No retirement is asserted.
Example verification: Expected numerical results are independently calculated; text and shape expectations follow the documented contract. These examples have not been tested in Microsoft Excel. No screenshot or native execution is claimed.
Related guides and source
DATE in Excel | DAYS in Excel | RATE in Excel | ROUND in Excel
- Microsoft ODDLYIELD reference, retrieved October 17, 2026.