ODDFYIELD Function in ONLYOFFICE Spreadsheet Editor: Syntax and Examples
Estimate annual yield from an odd-first-coupon clean price, with a known-root example and an independent repricing check.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer
For the short-first schedule below, a price of 99.99993559863269 per 100 has an independently known annual yield of 6%. ODDFYIELD is expected to recover approximately 0.06; format the result as a percentage.
This function uses a numerical solver. A returned number does not by itself establish convergence, accuracy or economic suitability. Reprice the cash flows independently and compare the residual with a tolerance appropriate to the price precision.
Syntax and the price being solved
=ODDFYIELD(settlement, maturity, issue, first_coupon, rate, pr, redemption, frequency, [basis])
There are eight required arguments and one optional basis. The strict date order is issue < settlement < first_coupon < maturity. rate is the annual coupon rate; pr is clean purchase price per 100 face value, not the total amount paid; redemption is likewise per 100. Frequency accepts 1, 2 or 4. Basis defaults to 0, with codes 0 US30/360, 1 actual/actual, 2 actual/360, 3 actual/365 and 4 European 30/360.
There is no user-supplied guess argument. Coupon and yield are different quantities: the coupon determines promised payments, while the yield is the discount rate that matches the supplied price under the model.
Step-by-step: recover a known short-first yield
- Put
=DATE(2026,5,15)in B2 for settlement. - Put
=DATE(2027,7,15)in B3 for maturity. - Put
=DATE(2026,3,15)in B4 for issue. - Put
=DATE(2026,7,15)in B5 for first coupon. - Put
0.06in B6,99.99993559863269in B7,100in B8,2in B9 and0in B10. - Enter
=ODDFYIELD(B2,B3,B4,B5,B6,B7,B8,B9,B10)in B12.
Expected mathematical root: 0.06, or 6%. The yield prediction is based on an ordinary well-conditioned source path and independent arithmetic, not an executed solver observation.
For these dates, the first coupon is 2 per 100, the next coupon is 3 and the final payment is 103. Accrued interest at settlement is 1. In half-year periods the payment times are 1/3, 4/3 and 7/3. At a candidate yield y, independently compute:
P(y) = 2/(1+y/2)^(1/3)
+ 3/(1+y/2)^(4/3)
+ 103/(1+y/2)^(7/3) - 1
residual = P(y) - supplied_price
At y=0.06, the residual against the unrounded input price is zero to floating-point rounding. Do not replace the input price with a heavily rounded display and still demand the identical yield.
Advanced case: a price-to-yield sensitivity table
Keep the schedule unchanged. Price 102.25771508127653 corresponds to the known root 4%; price 97.81357755547488 corresponds to 8%. Check all three results by substituting each yield into the cash-flow expression. The direction is useful: higher prices correspond to lower yields for these positive future cash flows.
Use a residual column in addition to a yield column. A small change between two successive solver estimates is not the same as a small pricing residual. Set the acceptable residual in price-per-100 units, based on input precision; a tolerance is a modeling decision, not a guaranteed property of this function.
Solver limits and errors
The inspected source uses finite-difference Newton-like updates, up to 500 iterations, stopping when the change in yield is at most 1e-7. A finite result can be returned after the iteration cap without a final price-residual guarantee. A nonfinite result triggers a bounded fallback. In that fallback, endpoint shortcuts return a residual rather than the endpoint yield, so difficult cases need particular care. Do not claim universal convergence or use the function as an unattended certification of a quote.
Negative price, coupon or redemption, invalid date order, invalid frequency and invalid basis produce #NUM! at the wrapper. Zero price and zero redemption pass those particular guards, but can lead to ill-conditioned or economically inappropriate problems; the worked examples use positive values. Dates, frequency and basis are floored. Conversion errors propagate.
The pricing helper has distinct short-first and long-first branches. These numerical examples validate only the stated short-first schedule with aligned 15th-of-month dates. Long first coupons, month-end schedules and other bases need their own cash-flow reconstruction and compatibility checks. The function is not an investment recommendation, and a calculated yield does not predict realized return.
Availability and verification scope
Checked October 18, 2026 against the official ODDFYIELD help and official SDKJS source tagged v10.0.0.169. Desktop Editors 10.0 was released October 13, 2026. The original introduction version for this individual function is not established; current help does not mark it retired or deprecated.
All results in this guide are expected values from documentation, source inspection and independent arithmetic, not application observations. Neither the application nor its calculation engine was used to test these examples. The tag matches the installed version/build designation but does not establish identical behavior in every older release, mobile client, server deployment or imported workbook. Examples use English names and comma argument separators; adapt separators to editor settings. These fictional calculations explain a function, not an investment or borrowing recommendation.