Contact

ODDFYIELD Function (Gnumeric)

Financial Intermediate Gnumeric

Calculate an odd-first-period yield in Gnumeric with explicit coupon dates, price-per-100 units, day-count basis and solver limitations.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

ODDFYIELD solves for the annual yield of a periodically paying security whose first coupon period is irregular. The coupon rate and the solved yield are different inputs and outputs. This guide uses synthetic cashflows to explain the spreadsheet calculation, not to recommend a security.

The first four arguments are settlement, maturity, issue and first coupon dates, in that order. Rate is an annual decimal fraction; price and redemption are amounts on the same per-100-face basis used by the coupon calculation. Frequency accepts 1, 2 or 4 payments per year. Basis is required in the 1.12.57 registration: supply 0 explicitly for US 30/360. The callback contains a default, but its nine-required-argument registration does not make omission supported. Other documented basis codes are 1 actual/actual, 2 actual/360, 3 actual/365 and 4 European 30/360; only basis 0 is exercised here.

Syntax

ODDFYIELD(settlement, maturity, issue, first_coupon, rate, price, redemption, frequency, basis)

Worked example and independent check

Set B2 to DATE(2025,3,1), B3 to DATE(2027,1,1), B4 to DATE(2025,2,1) and B5 to DATE(2025,7,1). Put 0.06 in B6, 96.6511820334587 in B7, 100 in B8, 2 in B9 and 0 in B10. Enter =ODDFYIELD(B2,B3,B4,B5,B6,B7,B8,B9,B10) in B12. The expected result is approximately 0.08, displayed as 8% with percentage formatting.

The issue-to-first-coupon interval is five months, shorter than the regular six-month period. Under the chosen 30/360 basis, issue-to-settlement is 30 days, settlement-to-first-coupon 120, issue-to-first-coupon 150, and a normal half-year 180 days. There are four future coupon dates through maturity.

An independent discounted-cashflow calculation at yield 0.08 produces the supplied clean price 96.6511820334587. The regular coupon is 3 per 100 face; the first coupon is scaled by 150/180, and accrued coupon 3*(30/180) is subtracted. This checks the yield against a price derived outside the native solver.

Native-test formula Independently expected output
=ODDFYIELD(DATE(2025,3,1),DATE(2027,1,1),DATE(2025,2,1),DATE(2025,7,1),0.06,96.6511820334587,100,2,0) 0.08
=ODDFYIELD(DATE(2025,3,1),DATE(2027,1,1),DATE(2025,2,1),DATE(2025,7,1),0.06,0,100,2,0) #NUM!
=ODDFYIELD(DATE(2025,3,1),DATE(2027,1,1),DATE(2025,2,1),DATE(2025,7,1),0.06,96.6511820334587,100,3,0) #NUM!

Advanced use

Reconcile an odd-period calculation by recording the coupon schedule and day-count fractions explicitly, then solving and repricing on the same convention. A close numerical result under a different basis is not evidence that the schedule matches.

The implementation solves its own odd-first-price equation using a numerical root search. Its search is constrained to nonnegative yields, with an upper search bound 1000. It therefore does not establish support for negative-yield solutions. Keep the original dates, clean price and basis with the reported yield so a later reviewer can reproduce the calculation.

Errors and limitations

The selected zero-price and frequency 3 cases return #NUM!. Source validation also rejects negative rate, nonpositive redemption, invalid basis/frequency and date order outside issue<=settlement<=first_coupon<=maturity. Invalid date conversion is a separate error path.

Use ordinary, ordered schedules and positive price/redemption. These checks do not certify every long first period, boundary-equal date, historical date convention or extreme solver input. A solver error can indicate an unsupported solution or inconsistent data rather than a need to suppress the error. Official NEWS 1.1.20 explicitly records implementing ODDFYIELD; that is separate from the detailed 1.12.57 behavior tested here.

Version and verification

First introduction: Gnumeric 1.1.20, explicitly recorded in official NEWS. The guide is scoped to official Gnumeric 1.12.57 implementation and selected native checks. The selected formulas were evaluated in isolated, time-bounded Gnumeric 1.12.57 native engine runs under C.UTF-8 on 17 October 2026. Observed results agree with the independent calculations within numerical tolerance; original input workbooks, outputs and execution logs are retained. No GUI screenshot or newer-version equivalence is claimed. A retirement date and last functioning release are not established.

YIELD · DATE

Official references