← All functions

ODDLYIELD

Quirk found

Category: Financial · Last tested 2026-09-01

Real compatibility results for the ODDLYIELD function: executed in Excel for the web, Google Sheets and LibreOffice Calc, with desktop Excel behavior from Microsoft’s official documentation (we do not run desktop Excel — Excel for the web is a different application and is executed separately). Syntax and links to that documentation are below.

Support matrix

EngineDocumentedLive-testedVerdict
Excel (desktop)Yes No — documented only n/a
Excel for the web— Yes (recalc, 2026-09-01) Supported, behaves as documented
Google SheetsNo Yes (Drive import, 2026-08-31) Unsupported (not recognized)
LibreOffice CalcYes Yes (25.8.7.3, 2026-08-31) Quirk found

LibreOffice version history

We executed the same test cases under each LibreOffice release to show exactly when ODDLYIELD’s support changed — not documentation claims, real results.

LibreOffice versionVerdictTested
24.2.0.3 Quirk found 2026-08-31
24.8.7.2 Quirk found 2026-08-31
25.2.0.3 Quirk found 2026-08-31
25.8.7.3 Quirk found 2026-08-31

Why isn't ODDLYIELD working in LibreOffice?

ODDLYIELD exists in LibreOffice 25.8.7.3, but it is not a drop-in match for Excel — our executed tests found real behavioral differences (detailed in the test results on this page). If a formula that works in Excel or Google Sheets misbehaves in LibreOffice, compare your usage against the failing cases above before assuming your data is wrong.

Why isn’t ODDLYIELD working in Google Sheets?

Google Sheets does not implement ODDLYIELD: we imported the formula into Sheets on 2026-08-31 and every case came back #NAME? (unrecognized function). Sheets is a rolling service with no version to pin, so this is a statement about the service on that date, and Google’s own function list does not document it either. Rewrite the formula with a documented Sheets equivalent — see the Excel ↔ Sheets equivalents table.

Discovered quirks

Executed test cases

Excel for the web (executed 2026-09-01 via OneDrive recalculation)

These values come from Excel for the web, not from desktop Excel. They are two different implementations of the calculation engine, and this run measured only the web one: the corpus was uploaded to OneDrive as .xlsx, recalculated by Excel for the web on open, and downloaded again for readback. Excel for the web is a rolling service with no pinnable version, so the run is identified by its date. Where a value here disagrees with the Expected column — which is Microsoft’s documentation of the desktop product — we cannot tell you whether the web engine diverges from the desktop one or the documentation is wrong about both, because we do not run desktop Excel.

FormulaDescriptionResultExpectedVerdict
=ROUND(ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,A9),5) Microsoft's documented worked example, at the precision Microsoft publishes 0.04519 0.04519
Provenance

Microsoft publishes =ODDLYIELD(A2, A3, A4, A5, A6, A7, A8, A9) = 4.52% for a bond settled 2008-04-20, maturing 2008-06-15, last interest 2007-12-24, 3.75% coupon, price 99.875, redemption 100, semiannual, 30/360 basis, and the page's description gives the same figure at five places as "0.04519". DERIVATION, clean-room, from the closed form Microsoft prints as an image on the page: yield = ((redemption + (sum DCi/NLi)*100*rate/f) - (pr + (sum Ai/NLi)*100*rate/f)) / (pr + (sum Ai/NLi)*100*rate/f) * f / (sum DSCi/NLi), where Ai is the accrued days in the ith quasi-coupon period counting forward from the last interest date, DCi the days counted in that period, and NLi its normal length. (Two symbols in Microsoft's artwork are never defined in the page's own symbol list: 'par', which the algebra forces to be the pr price argument under a third name, and DSCi, which must be the settlement-to-maturity day counts per quasi-period. Both readings are confirmed by the fact that they reproduce Microsoft's own published figure below.) For this bond the odd last period runs 2007-12-24 to 2008-06-15 and fits inside a single semiannual quasi-period, so on basis 0 the ratios are DC/NL = 171/180, A/NL = 116/180 and DSC/NL = 55/180; with a coupon of 1.875 that gives ((100 + 1.78125) - (99.875 + 1.20833...))/(99.875 + 1.20833...) * 2/(55/180) = 0.045192235629168917... The day counts come from a clean-room implementation of OpenFormula 1.3 section 4.11.7 -- Procedure A for US (NASD) 30/360 with its four order-dependent endpoint adjustments, Procedure B for actual days, Procedure C for European 30/360, and Procedures D/E/F for days-in-year -- written for this batch and used by no engine; the arithmetic is mpmath at 50 digits over exact rational day-count ratios. At five places that is 0.04519 -- the published figure, reproduced from the formula. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/oddlyield-function (the /en-us/office/<name>-function-<guid> path was returning Microsoft's 'Sorry, the page you're looking for can't be found' body throughout this batch, and the working path serves an 87 KB stub about half the time, so pages were fetched with retries until the payload exceeded 150 KB).

Matched
=ROUND(ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,A9),10) The same example carried to ten decimal places 0.0451922356 0.0451922356
Provenance

Five published decimals are asserted again at ten: 0.0451922356. Unlike ODDFYIELD, this function has a closed form and no iteration, so there is no convergence tolerance to excuse a difference -- two conforming engines should agree to the last bit.

Matched
=ROUND(ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,A9),6) LibreOffice's own documented example, which uses a different last-interest date 0.044873 0.044873
Provenance

A SECOND VENDOR'S PUBLISHED FIGURE ON A GENUINELY DIFFERENT BOND. LibreOffice's help prints '=ODDLYIELD("1999-04-20";"1999-06-15"; "1998-10-15"; 0.0375; 99.875; 100;2;0) returns 0.044873 or 4.4873%'. This is NOT Microsoft's example shifted nine years: the last interest date is 1998-10-15, where Microsoft's is 2007-12-24, so the odd last period spans TWO quasi-coupon periods instead of one and the answer is a different number. That makes it a second, independent test vector -- and the more demanding one, because the multi-period sums are exactly where a hand-rolled odd-period implementation goes wrong. The clean-room derivation on these dates gives 0.04487316633024..., which is 0.044873 at six places, matching LibreOffice's published figure exactly.

Matched
=ROUND(ODDLYIELD(A2,A3,A4,A5,ODDLPRICE(A2,A3,A4,A5,0.0405,A7,A8,A9),A7,A8,A9),10) ODDLYIELD fed the price ODDLPRICE computes for a known yield must return that yield 0.0405 0.0405
Provenance

The two functions are algebraic inverses of one another -- ODDLPRICE has no published formula precisely because it IS the ODDLYIELD equation solved for price -- so composing them on one bond must return the yield it started from, 0.0405. No derived constant appears in this assertion at all, so it holds for any engine whose two odd-last-period routines agree with each other, whatever day-count reading they share. The bond is ODDLPRICE's documented example.

Matched
=ODDLYIELD(A2,A3,A4,A5,0,A7,A8,A9) A price of zero, which the page excludes #NUM! #NUM!
Provenance

Microsoft documents: "If rate < 0 or if pr <= 0, ODDLYIELD returns the #NUM! error value." Zero is the boundary the <= includes.

Matched
=ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,5) A basis of 5, one past the documented range #NUM! #NUM!
Provenance

Microsoft documents: "If basis < 0 or if basis > 4, ODDLYIELD returns the #NUM! error value."

Matched
=ODDLYIELD(A4,A3,A2,A5,A6,A7,A8,A9) Settlement and last_interest swapped #NUM! #NUM!
Provenance

Microsoft documents: "The following date condition must be satisfied; otherwise, ODDLYIELD returns the #NUM! error value: maturity > settlement > last_interest."

Matched
=ODDLYIELD("not a date",A3,A4,A5,A6,A7,A8,A9) A settlement date that is not a date #VALUE! #VALUE!
Provenance

Microsoft documents: "If settlement, maturity, or last_interest is not a valid date, ODDLYIELD returns the #VALUE! error value."

Matched

Google Sheets (executed 2026-08-31 via Drive import)

Google Sheets is a rolling service with no pinnable version, so this run is identified by its date. The corpus was imported to Drive as .xlsx, recalculated by Sheets, and exported back for readback.

FormulaDescriptionResultExpectedVerdict
=ROUND(ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,A9),5) Microsoft's documented worked example, at the precision Microsoft publishes #NAME? 0.04519
Provenance

Microsoft publishes =ODDLYIELD(A2, A3, A4, A5, A6, A7, A8, A9) = 4.52% for a bond settled 2008-04-20, maturing 2008-06-15, last interest 2007-12-24, 3.75% coupon, price 99.875, redemption 100, semiannual, 30/360 basis, and the page's description gives the same figure at five places as "0.04519". DERIVATION, clean-room, from the closed form Microsoft prints as an image on the page: yield = ((redemption + (sum DCi/NLi)*100*rate/f) - (pr + (sum Ai/NLi)*100*rate/f)) / (pr + (sum Ai/NLi)*100*rate/f) * f / (sum DSCi/NLi), where Ai is the accrued days in the ith quasi-coupon period counting forward from the last interest date, DCi the days counted in that period, and NLi its normal length. (Two symbols in Microsoft's artwork are never defined in the page's own symbol list: 'par', which the algebra forces to be the pr price argument under a third name, and DSCi, which must be the settlement-to-maturity day counts per quasi-period. Both readings are confirmed by the fact that they reproduce Microsoft's own published figure below.) For this bond the odd last period runs 2007-12-24 to 2008-06-15 and fits inside a single semiannual quasi-period, so on basis 0 the ratios are DC/NL = 171/180, A/NL = 116/180 and DSC/NL = 55/180; with a coupon of 1.875 that gives ((100 + 1.78125) - (99.875 + 1.20833...))/(99.875 + 1.20833...) * 2/(55/180) = 0.045192235629168917... The day counts come from a clean-room implementation of OpenFormula 1.3 section 4.11.7 -- Procedure A for US (NASD) 30/360 with its four order-dependent endpoint adjustments, Procedure B for actual days, Procedure C for European 30/360, and Procedures D/E/F for days-in-year -- written for this batch and used by no engine; the arithmetic is mpmath at 50 digits over exact rational day-count ratios. At five places that is 0.04519 -- the published figure, reproduced from the formula. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/oddlyield-function (the /en-us/office/<name>-function-<guid> path was returning Microsoft's 'Sorry, the page you're looking for can't be found' body throughout this batch, and the working path serves an 87 KB stub about half the time, so pages were fetched with retries until the payload exceeded 150 KB).

Mismatch
=ROUND(ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,A9),10) The same example carried to ten decimal places #NAME? 0.0451922356
Provenance

Five published decimals are asserted again at ten: 0.0451922356. Unlike ODDFYIELD, this function has a closed form and no iteration, so there is no convergence tolerance to excuse a difference -- two conforming engines should agree to the last bit.

Mismatch
=ROUND(ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,A9),6) LibreOffice's own documented example, which uses a different last-interest date #NAME? 0.044873
Provenance

A SECOND VENDOR'S PUBLISHED FIGURE ON A GENUINELY DIFFERENT BOND. LibreOffice's help prints '=ODDLYIELD("1999-04-20";"1999-06-15"; "1998-10-15"; 0.0375; 99.875; 100;2;0) returns 0.044873 or 4.4873%'. This is NOT Microsoft's example shifted nine years: the last interest date is 1998-10-15, where Microsoft's is 2007-12-24, so the odd last period spans TWO quasi-coupon periods instead of one and the answer is a different number. That makes it a second, independent test vector -- and the more demanding one, because the multi-period sums are exactly where a hand-rolled odd-period implementation goes wrong. The clean-room derivation on these dates gives 0.04487316633024..., which is 0.044873 at six places, matching LibreOffice's published figure exactly.

Mismatch
=ROUND(ODDLYIELD(A2,A3,A4,A5,ODDLPRICE(A2,A3,A4,A5,0.0405,A7,A8,A9),A7,A8,A9),10) ODDLYIELD fed the price ODDLPRICE computes for a known yield must return that yield #NAME? 0.0405
Provenance

The two functions are algebraic inverses of one another -- ODDLPRICE has no published formula precisely because it IS the ODDLYIELD equation solved for price -- so composing them on one bond must return the yield it started from, 0.0405. No derived constant appears in this assertion at all, so it holds for any engine whose two odd-last-period routines agree with each other, whatever day-count reading they share. The bond is ODDLPRICE's documented example.

Mismatch
=ODDLYIELD(A2,A3,A4,A5,0,A7,A8,A9) A price of zero, which the page excludes #NAME? #NUM!
Provenance

Microsoft documents: "If rate < 0 or if pr <= 0, ODDLYIELD returns the #NUM! error value." Zero is the boundary the <= includes.

Mismatch
=ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,5) A basis of 5, one past the documented range #NAME? #NUM!
Provenance

Microsoft documents: "If basis < 0 or if basis > 4, ODDLYIELD returns the #NUM! error value."

Mismatch
=ODDLYIELD(A4,A3,A2,A5,A6,A7,A8,A9) Settlement and last_interest swapped #NAME? #NUM!
Provenance

Microsoft documents: "The following date condition must be satisfied; otherwise, ODDLYIELD returns the #NUM! error value: maturity > settlement > last_interest."

Mismatch
=ODDLYIELD("not a date",A3,A4,A5,A6,A7,A8,A9) A settlement date that is not a date #NAME? #VALUE!
Provenance

Microsoft documents: "If settlement, maturity, or last_interest is not a valid date, ODDLYIELD returns the #VALUE! error value."

Mismatch

LibreOffice Calc 25.8.7.3 (tested 2026-08-31)

FormulaDescriptionResultExpectedVerdict
=ROUND(ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,A9),5) Microsoft's documented worked example, at the precision Microsoft publishes 0.04519 0.04519
Provenance

Microsoft publishes =ODDLYIELD(A2, A3, A4, A5, A6, A7, A8, A9) = 4.52% for a bond settled 2008-04-20, maturing 2008-06-15, last interest 2007-12-24, 3.75% coupon, price 99.875, redemption 100, semiannual, 30/360 basis, and the page's description gives the same figure at five places as "0.04519". DERIVATION, clean-room, from the closed form Microsoft prints as an image on the page: yield = ((redemption + (sum DCi/NLi)*100*rate/f) - (pr + (sum Ai/NLi)*100*rate/f)) / (pr + (sum Ai/NLi)*100*rate/f) * f / (sum DSCi/NLi), where Ai is the accrued days in the ith quasi-coupon period counting forward from the last interest date, DCi the days counted in that period, and NLi its normal length. (Two symbols in Microsoft's artwork are never defined in the page's own symbol list: 'par', which the algebra forces to be the pr price argument under a third name, and DSCi, which must be the settlement-to-maturity day counts per quasi-period. Both readings are confirmed by the fact that they reproduce Microsoft's own published figure below.) For this bond the odd last period runs 2007-12-24 to 2008-06-15 and fits inside a single semiannual quasi-period, so on basis 0 the ratios are DC/NL = 171/180, A/NL = 116/180 and DSC/NL = 55/180; with a coupon of 1.875 that gives ((100 + 1.78125) - (99.875 + 1.20833...))/(99.875 + 1.20833...) * 2/(55/180) = 0.045192235629168917... The day counts come from a clean-room implementation of OpenFormula 1.3 section 4.11.7 -- Procedure A for US (NASD) 30/360 with its four order-dependent endpoint adjustments, Procedure B for actual days, Procedure C for European 30/360, and Procedures D/E/F for days-in-year -- written for this batch and used by no engine; the arithmetic is mpmath at 50 digits over exact rational day-count ratios. At five places that is 0.04519 -- the published figure, reproduced from the formula. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/oddlyield-function (the /en-us/office/<name>-function-<guid> path was returning Microsoft's 'Sorry, the page you're looking for can't be found' body throughout this batch, and the working path serves an 87 KB stub about half the time, so pages were fetched with retries until the payload exceeded 150 KB).

Matched
=ROUND(ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,A9),10) The same example carried to ten decimal places 0.0451922356 0.0451922356
Provenance

Five published decimals are asserted again at ten: 0.0451922356. Unlike ODDFYIELD, this function has a closed form and no iteration, so there is no convergence tolerance to excuse a difference -- two conforming engines should agree to the last bit.

Matched
=ROUND(ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,A9),6) LibreOffice's own documented example, which uses a different last-interest date 0.044873 0.044873
Provenance

A SECOND VENDOR'S PUBLISHED FIGURE ON A GENUINELY DIFFERENT BOND. LibreOffice's help prints '=ODDLYIELD("1999-04-20";"1999-06-15"; "1998-10-15"; 0.0375; 99.875; 100;2;0) returns 0.044873 or 4.4873%'. This is NOT Microsoft's example shifted nine years: the last interest date is 1998-10-15, where Microsoft's is 2007-12-24, so the odd last period spans TWO quasi-coupon periods instead of one and the answer is a different number. That makes it a second, independent test vector -- and the more demanding one, because the multi-period sums are exactly where a hand-rolled odd-period implementation goes wrong. The clean-room derivation on these dates gives 0.04487316633024..., which is 0.044873 at six places, matching LibreOffice's published figure exactly.

Matched
=ROUND(ODDLYIELD(A2,A3,A4,A5,ODDLPRICE(A2,A3,A4,A5,0.0405,A7,A8,A9),A7,A8,A9),10) ODDLYIELD fed the price ODDLPRICE computes for a known yield must return that yield 0.0405 0.0405
Provenance

The two functions are algebraic inverses of one another -- ODDLPRICE has no published formula precisely because it IS the ODDLYIELD equation solved for price -- so composing them on one bond must return the yield it started from, 0.0405. No derived constant appears in this assertion at all, so it holds for any engine whose two odd-last-period routines agree with each other, whatever day-count reading they share. The bond is ODDLPRICE's documented example.

Matched
=ODDLYIELD(A2,A3,A4,A5,0,A7,A8,A9) A price of zero, which the page excludes #VALUE! #NUM!
Provenance

Microsoft documents: "If rate < 0 or if pr <= 0, ODDLYIELD returns the #NUM! error value." Zero is the boundary the <= includes.

Mismatch
=ODDLYIELD(A2,A3,A4,A5,A6,A7,A8,5) A basis of 5, one past the documented range #VALUE! #NUM!
Provenance

Microsoft documents: "If basis < 0 or if basis > 4, ODDLYIELD returns the #NUM! error value."

Mismatch
=ODDLYIELD(A4,A3,A2,A5,A6,A7,A8,A9) Settlement and last_interest swapped #VALUE! #NUM!
Provenance

Microsoft documents: "The following date condition must be satisfied; otherwise, ODDLYIELD returns the #NUM! error value: maturity > settlement > last_interest."

Mismatch
=ODDLYIELD("not a date",A3,A4,A5,A6,A7,A8,A9) A settlement date that is not a date #VALUE! #VALUE!
Provenance

Microsoft documents: "If settlement, maturity, or last_interest is not a valid date, ODDLYIELD returns the #VALUE! error value."

Matched

Docs & syntax

Where ODDLYIELD behaves differently