YIELDDISC Function in ONLYOFFICE Spreadsheet Editor: Syntax and Examples
Calculate the investment-based annualized yield of a discounted security from per 100 purchase and redemption prices.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer
=YIELDDISC(DATE(2026,1,15),DATE(2026,7,15),95,100,0) is expected to return approximately 0.105263157895, or 10.5263157895%. The price 95 and redemption 100 are both quoted per 100 face value. The gain is annualized relative to the purchase price.
This is a simple yield calculation for a discounted security. It differs from a discount rate based on redemption and does not solve a periodic coupon-bond cash-flow equation.
Syntax and inputs
=YIELDDISC(settlement, maturity, pr, redemption, [basis])
pr and redemption must be positive and expressed on the same per 100 basis. The output is an annual decimal rate. There is no coupon or frequency parameter.
Basis defaults to 0 when omitted. The documented codes are 0 US (NASD) 30/360, 1 actual/actual, 2 actual/360, 3 actual/365 and 4 European 30/360. Use DATE for unambiguous numeric dates, settlement strictly before maturity, and consistent monetary units. Brackets mark optional syntax and are not typed.
The source expression is (redemption/pr − 1) / year_fraction. It is numerically the same investment-return ratio used by INTRATE, but YIELDDISC’s documented inputs are quoted purchase/redemption prices per 100, rather than absolute investment amounts. Keep the unit convention with the worksheet.
Step-by-step: check a half-year quote
- Enter settlement
=DATE(2026,1,15)in A2 and maturity=DATE(2026,7,15)in B2. - Enter quoted price
95in C2, redemption100in D2 and basis0in E2. - Put
=YIELDDISC(A2,B2,C2,D2,E2)in F2. - Format F2 as a percentage; keep its stored rate for subsequent calculations.
The independent calculation is (100−95)/95=1/19 holding-period return, divided by 0.5 years, giving 2/19≈0.105263157895.
| Formula | Expected annual yield |
|---|---|
=YIELDDISC(A2,B2,95,100,0) |
0.105263157895 approximately |
=YIELDDISC(A2,B2,95,100) |
Same, default basis 0 |
=YIELDDISC(A2,B2,95,100,1) |
0.106135504507 approximately |
=YIELDDISC(A2,B2,95,100,2) |
0.104681593486 approximately |
=YIELDDISC(A2,B2,95,100,3) |
0.106135504507 approximately |
=YIELDDISC(A2,B2,95,100,4) |
0.105263157895 approximately |
The actual calendar interval is 181 days. Basis 2 uses 181/360; bases 1 and 3 use 181/365 in this same-year non-leap example. A multi-year actual/actual calculation needs the source’s relevant year-length treatment and must not be inferred from this one table.
Advanced case: translate between yield and discount rate
For the same half-year quote, DISC’s redemption-based rate is (100−95)/100/0.5=10%. YIELDDISC gives 10.5263157895% because the denominator is 95 rather than 100. Neither value should be substituted into a formula expecting the other convention.
For a simple yield y and year fraction t, the corresponding price relation is price=redemption/(1+y×t). Using y=2/19 and t=0.5 gives 100/(1+1/19)=95. A discount-rate relation instead uses price=redemption×(1−discount×t). Showing both identities is a useful audit when a rate was imported without a clear label.
A hypothetical compounded annual growth rate would be another measure again. This function does not assume reinvestment of a short-period return and does not turn a quoted yield into a realized future performance guarantee.
Errors and boundary behavior
The inspected wrapper returns #NUM! for nonpositive price or redemption, settlement at/after maturity, invalid basis or unsupported date serials after conversion. Dates and basis are floored, so use whole-day DATE values and integer basis codes deliberately.
A premium price above redemption is allowed: =YIELDDISC(A2,B2,105,100,0) is expected to return approximately −0.0952380952381. Equal positive price and redemption gives zero. Negative output is therefore not automatically an input error; it can describe a loss under the supplied convention.
Do not enter the price as 95% when the intended per 100 quote is 95: the stored number 0.95 would be interpreted as a very different purchase price. Rate output should be formatted as a percentage; price inputs should remain numbers on their documented scale.
Availability and verification scope
Checked October 18, 2026 against the official YIELDDISC 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.