YIELD
Quirk foundCategory: Financial · Last tested 2026-09-01
Real compatibility results for the YIELD 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
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel (desktop) | Yes | No — documented only | n/a |
| Excel for the web | — | Yes (recalc, 2026-09-01) | Supported, behaves as documented |
| Google Sheets | Yes | Yes (Drive import, 2026-08-31) | Supported, behaves as documented |
| LibreOffice Calc | Yes | 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 YIELD’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 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 YIELD working in LibreOffice?
YIELD 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.
Discovered quirks
-
=YIELD(A3,A2,A4,A5,A6,A7,A8) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
The Remarks publish: "If settlement >= maturity, YIELD returns the #NUM! error value."; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
-
=YIELD(A2,A3,A4,A5,A6,3,A8) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
The Remarks publish: "If frequency is any number other than 1, 2, or 4, YIELD returns the #NUM! error value."; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
-
=YIELD(A2,A3,A4,A5,A6,A7,5) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
The Remarks publish: "If basis < 0 or if basis > 4, YIELD returns the #NUM! error value." The basis table runs 0 = US (NASD) 30/360, 1 = Actual/actual, 2 = Actual/360, 3 = Actual/365, 4 = European 30/360.; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
-
=YIELD(A2,A3,A4,0,A6,A7,A8) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
The Remarks publish: "If pr <= 0 or if redemption <= 0, YIELD returns the #NUM! error value."; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
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.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(YIELD(A2,A3,A4,A5,A6,A7,A8),6) | Microsoft's documented worked example, at six decimals | 0.065 | 0.065ProvenanceMicrosoft publishes =YIELD(A2,A3,A4,A5,A6,A7,A8) with the description "The yield, for the bond with the terms above (0.065 or 6.5%)" and a Result cell formatted as "6.5%". Settlement 2008-02-15 (serial 39493), maturity 2016-11-15 (serial 42689), 5.75% coupon, price 95.04287, redemption 100, semiannual, 30/360 basis. DERIVATION: the page documents the >1-period case as "calculated through a hundred iterations... the Newton method, based on the formula used for the function PRICE", so the yield was obtained by ROOT-FINDING the batch-F clean-room PRICE implementation -- price = redemption/(1+y/f)^(N-1+DSC/E) + sum over k of 100*(rate/f)/(1+y/f)^(k-1+DSC/E) - 100*(rate/f)*(A/E), evaluated cash flow by cash flow, with N = 18 semiannual coupons, A = DSC = 90 and E = 180 on basis 0. Day counts come from a clean-room implementation of OpenFormula 1.3 section 4.11.7 (Procedure A for US 30/360, Procedure B for actual days, Procedure C for European 30/360, D/E/F for days-in-year) written for this batch and used by no engine; the bond arithmetic is evaluated over exact rational day-count ratios at 50 digits with mpmath. The root is 0.06500000688075461063326 -- NOT exactly 0.065, because the published price 95.04287 is itself a five-decimal rounding of the true 95.04287439939201656339. |
Matched |
| =ROUND(YIELD(A2,A3,A4,A5,A6,A7,A8),8) | The same example at eight decimals, where the price rounding becomes visible | 0.06500001 | 0.06500001ProvenanceTHE POINT OF THIS CASE IS THAT THE ANSWER IS NOT 0.065. Microsoft's published price is rounded to five decimals, so the yield that reproduces it is 0.0650000068807546, which is 0.06500001 at eight places. An engine asserted against a naive 0.06500000 would be recorded as diverging when it is in fact correct; the derivation is what establishes which of the two is right. Carried no further than eight places because YIELD is documented as an ITERATIVE Newton solve with a hundred-iteration cap, so its last few digits are a property of the solver's tolerance rather than of the mathematics -- see the round-trip case below, which tests the solver against the engine's own PRICE instead. |
Matched |
| =ROUND(YIELD(A2,A3,A4,PRICE(A2,A3,A4,0.065,A6,A7,A8),A6,A7,A8),8) | A structural round trip: price a bond at a known yield, then recover the yield | 0.065 | 0.065ProvenanceYIELD and PRICE are documented inverses -- the YIELD page says its solver is "based on the formula used for the function PRICE". Feeding the engine's OWN unrounded price back into YIELD must return the yield it started from, exactly 0.065, with no five-decimal rounding in the way. A structural assertion with no derived constant, and the sharpest test available of an iterative function: it is independent of the solver's absolute accuracy and tests only that the two functions agree with each other. The clean-room derivation confirms the composition is well posed -- PRICE at yield 0.065 is 95.04287439939201656339 and root-finding that price returns 0.065 to 50 digits. |
Matched |
| =YIELD(A3,A2,A4,A5,A6,A7,A8) | The dates reversed, which the page excludes | #NUM! | #NUM!ProvenanceThe Remarks publish: "If settlement >= maturity, YIELD returns the #NUM! error value." |
Matched |
| =YIELD(A2,A3,A4,A5,A6,3,A8) | A frequency of 3, which the page excludes | #NUM! | #NUM!ProvenanceThe Remarks publish: "If frequency is any number other than 1, 2, or 4, YIELD returns the #NUM! error value." |
Matched |
| =YIELD(A2,A3,A4,A5,A6,A7,5) | A basis of 5, which is outside the documented table | #NUM! | #NUM!ProvenanceThe Remarks publish: "If basis < 0 or if basis > 4, YIELD returns the #NUM! error value." The basis table runs 0 = US (NASD) 30/360, 1 = Actual/actual, 2 = Actual/360, 3 = Actual/365, 4 = European 30/360. |
Matched |
| =YIELD(A2,A3,A4,0,A6,A7,A8) | A price of zero, which the page excludes | #NUM! | #NUM!ProvenanceThe Remarks publish: "If pr <= 0 or if redemption <= 0, YIELD returns the #NUM! 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.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(YIELD(A2,A3,A4,A5,A6,A7,A8),6) | Microsoft's documented worked example, at six decimals | 0.065 | 0.065ProvenanceMicrosoft publishes =YIELD(A2,A3,A4,A5,A6,A7,A8) with the description "The yield, for the bond with the terms above (0.065 or 6.5%)" and a Result cell formatted as "6.5%". Settlement 2008-02-15 (serial 39493), maturity 2016-11-15 (serial 42689), 5.75% coupon, price 95.04287, redemption 100, semiannual, 30/360 basis. DERIVATION: the page documents the >1-period case as "calculated through a hundred iterations... the Newton method, based on the formula used for the function PRICE", so the yield was obtained by ROOT-FINDING the batch-F clean-room PRICE implementation -- price = redemption/(1+y/f)^(N-1+DSC/E) + sum over k of 100*(rate/f)/(1+y/f)^(k-1+DSC/E) - 100*(rate/f)*(A/E), evaluated cash flow by cash flow, with N = 18 semiannual coupons, A = DSC = 90 and E = 180 on basis 0. Day counts come from a clean-room implementation of OpenFormula 1.3 section 4.11.7 (Procedure A for US 30/360, Procedure B for actual days, Procedure C for European 30/360, D/E/F for days-in-year) written for this batch and used by no engine; the bond arithmetic is evaluated over exact rational day-count ratios at 50 digits with mpmath. The root is 0.06500000688075461063326 -- NOT exactly 0.065, because the published price 95.04287 is itself a five-decimal rounding of the true 95.04287439939201656339. |
Matched |
| =ROUND(YIELD(A2,A3,A4,A5,A6,A7,A8),8) | The same example at eight decimals, where the price rounding becomes visible | 0.06500001 | 0.06500001ProvenanceTHE POINT OF THIS CASE IS THAT THE ANSWER IS NOT 0.065. Microsoft's published price is rounded to five decimals, so the yield that reproduces it is 0.0650000068807546, which is 0.06500001 at eight places. An engine asserted against a naive 0.06500000 would be recorded as diverging when it is in fact correct; the derivation is what establishes which of the two is right. Carried no further than eight places because YIELD is documented as an ITERATIVE Newton solve with a hundred-iteration cap, so its last few digits are a property of the solver's tolerance rather than of the mathematics -- see the round-trip case below, which tests the solver against the engine's own PRICE instead. |
Matched |
| =ROUND(YIELD(A2,A3,A4,PRICE(A2,A3,A4,0.065,A6,A7,A8),A6,A7,A8),8) | A structural round trip: price a bond at a known yield, then recover the yield | 0.065 | 0.065ProvenanceYIELD and PRICE are documented inverses -- the YIELD page says its solver is "based on the formula used for the function PRICE". Feeding the engine's OWN unrounded price back into YIELD must return the yield it started from, exactly 0.065, with no five-decimal rounding in the way. A structural assertion with no derived constant, and the sharpest test available of an iterative function: it is independent of the solver's absolute accuracy and tests only that the two functions agree with each other. The clean-room derivation confirms the composition is well posed -- PRICE at yield 0.065 is 95.04287439939201656339 and root-finding that price returns 0.065 to 50 digits. |
Matched |
| =YIELD(A3,A2,A4,A5,A6,A7,A8) | The dates reversed, which the page excludes | #NUM! | #NUM!ProvenanceThe Remarks publish: "If settlement >= maturity, YIELD returns the #NUM! error value." |
Matched |
| =YIELD(A2,A3,A4,A5,A6,3,A8) | A frequency of 3, which the page excludes | #NUM! | #NUM!ProvenanceThe Remarks publish: "If frequency is any number other than 1, 2, or 4, YIELD returns the #NUM! error value." |
Matched |
| =YIELD(A2,A3,A4,A5,A6,A7,5) | A basis of 5, which is outside the documented table | #NUM! | #NUM!ProvenanceThe Remarks publish: "If basis < 0 or if basis > 4, YIELD returns the #NUM! error value." The basis table runs 0 = US (NASD) 30/360, 1 = Actual/actual, 2 = Actual/360, 3 = Actual/365, 4 = European 30/360. |
Matched |
| =YIELD(A2,A3,A4,0,A6,A7,A8) | A price of zero, which the page excludes | #NUM! | #NUM!ProvenanceThe Remarks publish: "If pr <= 0 or if redemption <= 0, YIELD returns the #NUM! error value." |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(YIELD(A2,A3,A4,A5,A6,A7,A8),6) | Microsoft's documented worked example, at six decimals | 0.065 | 0.065ProvenanceMicrosoft publishes =YIELD(A2,A3,A4,A5,A6,A7,A8) with the description "The yield, for the bond with the terms above (0.065 or 6.5%)" and a Result cell formatted as "6.5%". Settlement 2008-02-15 (serial 39493), maturity 2016-11-15 (serial 42689), 5.75% coupon, price 95.04287, redemption 100, semiannual, 30/360 basis. DERIVATION: the page documents the >1-period case as "calculated through a hundred iterations... the Newton method, based on the formula used for the function PRICE", so the yield was obtained by ROOT-FINDING the batch-F clean-room PRICE implementation -- price = redemption/(1+y/f)^(N-1+DSC/E) + sum over k of 100*(rate/f)/(1+y/f)^(k-1+DSC/E) - 100*(rate/f)*(A/E), evaluated cash flow by cash flow, with N = 18 semiannual coupons, A = DSC = 90 and E = 180 on basis 0. Day counts come from a clean-room implementation of OpenFormula 1.3 section 4.11.7 (Procedure A for US 30/360, Procedure B for actual days, Procedure C for European 30/360, D/E/F for days-in-year) written for this batch and used by no engine; the bond arithmetic is evaluated over exact rational day-count ratios at 50 digits with mpmath. The root is 0.06500000688075461063326 -- NOT exactly 0.065, because the published price 95.04287 is itself a five-decimal rounding of the true 95.04287439939201656339. |
Matched |
| =ROUND(YIELD(A2,A3,A4,A5,A6,A7,A8),8) | The same example at eight decimals, where the price rounding becomes visible | 0.06500001 | 0.06500001ProvenanceTHE POINT OF THIS CASE IS THAT THE ANSWER IS NOT 0.065. Microsoft's published price is rounded to five decimals, so the yield that reproduces it is 0.0650000068807546, which is 0.06500001 at eight places. An engine asserted against a naive 0.06500000 would be recorded as diverging when it is in fact correct; the derivation is what establishes which of the two is right. Carried no further than eight places because YIELD is documented as an ITERATIVE Newton solve with a hundred-iteration cap, so its last few digits are a property of the solver's tolerance rather than of the mathematics -- see the round-trip case below, which tests the solver against the engine's own PRICE instead. |
Matched |
| =ROUND(YIELD(A2,A3,A4,PRICE(A2,A3,A4,0.065,A6,A7,A8),A6,A7,A8),8) | A structural round trip: price a bond at a known yield, then recover the yield | 0.065 | 0.065ProvenanceYIELD and PRICE are documented inverses -- the YIELD page says its solver is "based on the formula used for the function PRICE". Feeding the engine's OWN unrounded price back into YIELD must return the yield it started from, exactly 0.065, with no five-decimal rounding in the way. A structural assertion with no derived constant, and the sharpest test available of an iterative function: it is independent of the solver's absolute accuracy and tests only that the two functions agree with each other. The clean-room derivation confirms the composition is well posed -- PRICE at yield 0.065 is 95.04287439939201656339 and root-finding that price returns 0.065 to 50 digits. |
Matched |
| =YIELD(A3,A2,A4,A5,A6,A7,A8) | The dates reversed, which the page excludes | #VALUE! | #NUM!ProvenanceThe Remarks publish: "If settlement >= maturity, YIELD returns the #NUM! error value." |
Mismatch |
| =YIELD(A2,A3,A4,A5,A6,3,A8) | A frequency of 3, which the page excludes | #VALUE! | #NUM!ProvenanceThe Remarks publish: "If frequency is any number other than 1, 2, or 4, YIELD returns the #NUM! error value." |
Mismatch |
| =YIELD(A2,A3,A4,A5,A6,A7,5) | A basis of 5, which is outside the documented table | #VALUE! | #NUM!ProvenanceThe Remarks publish: "If basis < 0 or if basis > 4, YIELD returns the #NUM! error value." The basis table runs 0 = US (NASD) 30/360, 1 = Actual/actual, 2 = Actual/360, 3 = Actual/365, 4 = European 30/360. |
Mismatch |
| =YIELD(A2,A3,A4,0,A6,A7,A8) | A price of zero, which the page excludes | #VALUE! | #NUM!ProvenanceThe Remarks publish: "If pr <= 0 or if redemption <= 0, YIELD returns the #NUM! error value." |
Mismatch |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation
Where YIELD behaves differently
- Bond and treasury functions after a migration: what actually breaks
Executed across 26 fixed-income functions and 161 cases: ODDFPRICE and ODDFYIELD are literal stubs in LibreOffice, TBILLPRICE prices a two-year bill, INTRATE's default basis loses a day, and MDURATION is wrong on actual/actual. 83 of 84 documented #NUM! cases arrive as #VALUE!. Google Sheets matched 127 of 161. - Every error code LibreOffice reports as #VALUE!
Across our 2,334-case executed corpus, 272 cases in 135 functions return #VALUE! in LibreOffice Calc 25.8.7.3 where Microsoft documents #NUM! (244), #N/A (15), #DIV/0! (10) or #REF! (3). Google Sheets returns the documented code on 239 of the 249 it has a function for. Identical in all four LibreOffice builds tested.