PRICE
Quirk foundCategory: Financial · Last tested 2026-09-01
Real compatibility results for the PRICE 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 PRICE’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 PRICE working in LibreOffice?
PRICE 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.
_xlfn., _xlfn._xlws.,
_xlpm.) — nor does the .xlsx export preserve full float
precision or a blank result. Where the disagreement is explained by that
round trip we report it as inconclusive rather than as a Sheets behavior.
Google documents this function, so the result is not evidence of
missing support. See the methodology page
for the full caveat and the planned re-run with plain function names.
Discovered quirks
-
=PRICE(A2,A3,A4,A5,A6,3,A8) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Microsoft documents: "If frequency is any number other than 1, 2, or 4, PRICE returns the #NUM! error value." OpenFormula 1.3 section 6.12.38 states the same constraint.; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
-
=PRICE(A2,A3,A4,A5,A6,A7,5) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Microsoft documents: "If basis < 0 or if basis > 4, PRICE returns the #NUM! error value."; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
-
=PRICE(A3,A3,A4,A5,A6,A7,A8) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Microsoft documents: "If settlement >= maturity, PRICE returns the #NUM! error value." Equality is the boundary the >= includes.; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
-
=PRICE(A2,A3,A4,A5,0,A7,A8) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Microsoft documents: "If redemption <= 0, PRICE returns the #NUM! error value." Note the asymmetry with rate and yld, which are excluded only BELOW zero: a zero-coupon bond is legal, a zero-redemption bond is not.; 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(PRICE(A2,A3,A4,A5,A6,A7,A8),2) | Microsoft's documented worked example, at the two decimals Microsoft publishes | 94.63 | 94.63ProvenanceMicrosoft publishes =PRICE(A2,A3,A4,A5,A6,A7,A8) = $94.63 for a bond settled 2008-02-15, maturing 2017-11-15, 5.75% coupon, 6.5% yield, redemption 100, semiannual, 30/360 basis. DERIVATION from the N>1 formula Microsoft prints as an image: price = redemption/(1+yld/f)^(N-1+DSC/E) + sum over k = 1..N of 100*(rate/f)/(1+yld/f)^(k-1+DSC/E) - 100*(rate/f)*(A/E). Settlement 2008-02-15 sits exactly halfway through the coupon period 2007-11-15 to 2008-05-15, so on basis 0 E = 180, DSC = 90 and A = 90, and N = 20 semiannual coupons run from 2008-05-15 through 2017-11-15. Evaluated as twenty individual discounted cash flows at 50 digits -- not through a closed-form annuity shortcut -- that is 94.63436162132213..., which is $94.63 at the published precision. 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. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/price-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(PRICE(A2,A3,A4,A5,A6,A7,A8),10) | The same example carried to ten decimal places | 94.6343616213 | 94.6343616213ProvenanceTwo published decimals cannot see a discounting exponent that is off by half a period, so the cash-flow derivation is asserted at ten places: 94.6343616213. |
Matched |
| =ROUND(PRICE(A9,A3,0.065,0.065,100,2,0),10) | A bond whose coupon equals its yield, settled ON a coupon date, which must price at exactly 100 | 100 | 100ProvenanceWhen the coupon rate equals the yield AND settlement falls on a coupon date, the discounted cash flows are worth exactly par: 100.0000000000. THE SECOND CONDITION IS NOT OPTIONAL, and this case was rewritten after the derivation caught it: settled mid-period, the same bond does NOT price at 100 -- the documented formula gives 100*(1+yld/f)^(A/E) minus the simple-interest accrued 100*(rate/f)*(A/E), and compound growth over the elapsed part of the period does not equal simple accrual over it. On Microsoft's own example dates (settlement 2008-02-15, exactly half a period in) a coupon-equals-yield bond prices at 99.98700716450788, not 100. Settling on 2008-05-15 makes DSC/E = 1 and A = 0, the accrued term vanishes and the identity becomes exact. It is a structural assertion with no derived constant, and it is sharp: an error in the day-count ratios, the discount exponent or the accrued subtraction breaks it while leaving the headline figure looking plausible. |
Matched |
| =PRICE(A2,A3,A4,A5,A6,3,A8) | A frequency of 3, which the page excludes | #NUM! | #NUM!ProvenanceMicrosoft documents: "If frequency is any number other than 1, 2, or 4, PRICE returns the #NUM! error value." OpenFormula 1.3 section 6.12.38 states the same constraint. |
Matched |
| =PRICE(A2,A3,A4,A5,A6,A7,5) | A basis of 5, one past the documented range | #NUM! | #NUM!ProvenanceMicrosoft documents: "If basis < 0 or if basis > 4, PRICE returns the #NUM! error value." |
Matched |
| =PRICE(A3,A3,A4,A5,A6,A7,A8) | Settlement equal to maturity, which the page excludes | #NUM! | #NUM!ProvenanceMicrosoft documents: "If settlement >= maturity, PRICE returns the #NUM! error value." Equality is the boundary the >= includes. |
Matched |
| =PRICE(A2,A3,A4,A5,0,A7,A8) | A redemption value of zero, which the page excludes | #NUM! | #NUM!ProvenanceMicrosoft documents: "If redemption <= 0, PRICE returns the #NUM! error value." Note the asymmetry with rate and yld, which are excluded only BELOW zero: a zero-coupon bond is legal, a zero-redemption bond is not. |
Matched |
| =PRICE("not a date",A3,A4,A5,A6,A7,A8) | A settlement date that is not a date | #VALUE! | #VALUE!ProvenanceMicrosoft documents: "If settlement or maturity is not a valid date, PRICE 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.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(PRICE(A2,A3,A4,A5,A6,A7,A8),2) | Microsoft's documented worked example, at the two decimals Microsoft publishes | 94.63 | 94.63ProvenanceMicrosoft publishes =PRICE(A2,A3,A4,A5,A6,A7,A8) = $94.63 for a bond settled 2008-02-15, maturing 2017-11-15, 5.75% coupon, 6.5% yield, redemption 100, semiannual, 30/360 basis. DERIVATION from the N>1 formula Microsoft prints as an image: price = redemption/(1+yld/f)^(N-1+DSC/E) + sum over k = 1..N of 100*(rate/f)/(1+yld/f)^(k-1+DSC/E) - 100*(rate/f)*(A/E). Settlement 2008-02-15 sits exactly halfway through the coupon period 2007-11-15 to 2008-05-15, so on basis 0 E = 180, DSC = 90 and A = 90, and N = 20 semiannual coupons run from 2008-05-15 through 2017-11-15. Evaluated as twenty individual discounted cash flows at 50 digits -- not through a closed-form annuity shortcut -- that is 94.63436162132213..., which is $94.63 at the published precision. 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. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/price-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(PRICE(A2,A3,A4,A5,A6,A7,A8),10) | The same example carried to ten decimal places | 94.63436162 | 94.6343616213ProvenanceTwo published decimals cannot see a discounting exponent that is off by half a period, so the cash-flow derivation is asserted at ten places: 94.6343616213. |
Inconclusive |
| =ROUND(PRICE(A9,A3,0.065,0.065,100,2,0),10) | A bond whose coupon equals its yield, settled ON a coupon date, which must price at exactly 100 | 100 | 100ProvenanceWhen the coupon rate equals the yield AND settlement falls on a coupon date, the discounted cash flows are worth exactly par: 100.0000000000. THE SECOND CONDITION IS NOT OPTIONAL, and this case was rewritten after the derivation caught it: settled mid-period, the same bond does NOT price at 100 -- the documented formula gives 100*(1+yld/f)^(A/E) minus the simple-interest accrued 100*(rate/f)*(A/E), and compound growth over the elapsed part of the period does not equal simple accrual over it. On Microsoft's own example dates (settlement 2008-02-15, exactly half a period in) a coupon-equals-yield bond prices at 99.98700716450788, not 100. Settling on 2008-05-15 makes DSC/E = 1 and A = 0, the accrued term vanishes and the identity becomes exact. It is a structural assertion with no derived constant, and it is sharp: an error in the day-count ratios, the discount exponent or the accrued subtraction breaks it while leaving the headline figure looking plausible. |
Matched |
| =PRICE(A2,A3,A4,A5,A6,3,A8) | A frequency of 3, which the page excludes | #NUM! | #NUM!ProvenanceMicrosoft documents: "If frequency is any number other than 1, 2, or 4, PRICE returns the #NUM! error value." OpenFormula 1.3 section 6.12.38 states the same constraint. |
Matched |
| =PRICE(A2,A3,A4,A5,A6,A7,5) | A basis of 5, one past the documented range | #NUM! | #NUM!ProvenanceMicrosoft documents: "If basis < 0 or if basis > 4, PRICE returns the #NUM! error value." |
Matched |
| =PRICE(A3,A3,A4,A5,A6,A7,A8) | Settlement equal to maturity, which the page excludes | #NUM! | #NUM!ProvenanceMicrosoft documents: "If settlement >= maturity, PRICE returns the #NUM! error value." Equality is the boundary the >= includes. |
Matched |
| =PRICE(A2,A3,A4,A5,0,A7,A8) | A redemption value of zero, which the page excludes | #NUM! | #NUM!ProvenanceMicrosoft documents: "If redemption <= 0, PRICE returns the #NUM! error value." Note the asymmetry with rate and yld, which are excluded only BELOW zero: a zero-coupon bond is legal, a zero-redemption bond is not. |
Matched |
| =PRICE("not a date",A3,A4,A5,A6,A7,A8) | A settlement date that is not a date | #VALUE! | #VALUE!ProvenanceMicrosoft documents: "If settlement or maturity is not a valid date, PRICE returns the #VALUE! error value." |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(PRICE(A2,A3,A4,A5,A6,A7,A8),2) | Microsoft's documented worked example, at the two decimals Microsoft publishes | 94.63 | 94.63ProvenanceMicrosoft publishes =PRICE(A2,A3,A4,A5,A6,A7,A8) = $94.63 for a bond settled 2008-02-15, maturing 2017-11-15, 5.75% coupon, 6.5% yield, redemption 100, semiannual, 30/360 basis. DERIVATION from the N>1 formula Microsoft prints as an image: price = redemption/(1+yld/f)^(N-1+DSC/E) + sum over k = 1..N of 100*(rate/f)/(1+yld/f)^(k-1+DSC/E) - 100*(rate/f)*(A/E). Settlement 2008-02-15 sits exactly halfway through the coupon period 2007-11-15 to 2008-05-15, so on basis 0 E = 180, DSC = 90 and A = 90, and N = 20 semiannual coupons run from 2008-05-15 through 2017-11-15. Evaluated as twenty individual discounted cash flows at 50 digits -- not through a closed-form annuity shortcut -- that is 94.63436162132213..., which is $94.63 at the published precision. 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. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/price-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(PRICE(A2,A3,A4,A5,A6,A7,A8),10) | The same example carried to ten decimal places | 94.6343616213 | 94.6343616213ProvenanceTwo published decimals cannot see a discounting exponent that is off by half a period, so the cash-flow derivation is asserted at ten places: 94.6343616213. |
Matched |
| =ROUND(PRICE(A9,A3,0.065,0.065,100,2,0),10) | A bond whose coupon equals its yield, settled ON a coupon date, which must price at exactly 100 | 100 | 100ProvenanceWhen the coupon rate equals the yield AND settlement falls on a coupon date, the discounted cash flows are worth exactly par: 100.0000000000. THE SECOND CONDITION IS NOT OPTIONAL, and this case was rewritten after the derivation caught it: settled mid-period, the same bond does NOT price at 100 -- the documented formula gives 100*(1+yld/f)^(A/E) minus the simple-interest accrued 100*(rate/f)*(A/E), and compound growth over the elapsed part of the period does not equal simple accrual over it. On Microsoft's own example dates (settlement 2008-02-15, exactly half a period in) a coupon-equals-yield bond prices at 99.98700716450788, not 100. Settling on 2008-05-15 makes DSC/E = 1 and A = 0, the accrued term vanishes and the identity becomes exact. It is a structural assertion with no derived constant, and it is sharp: an error in the day-count ratios, the discount exponent or the accrued subtraction breaks it while leaving the headline figure looking plausible. |
Matched |
| =PRICE(A2,A3,A4,A5,A6,3,A8) | A frequency of 3, which the page excludes | #VALUE! | #NUM!ProvenanceMicrosoft documents: "If frequency is any number other than 1, 2, or 4, PRICE returns the #NUM! error value." OpenFormula 1.3 section 6.12.38 states the same constraint. |
Mismatch |
| =PRICE(A2,A3,A4,A5,A6,A7,5) | A basis of 5, one past the documented range | #VALUE! | #NUM!ProvenanceMicrosoft documents: "If basis < 0 or if basis > 4, PRICE returns the #NUM! error value." |
Mismatch |
| =PRICE(A3,A3,A4,A5,A6,A7,A8) | Settlement equal to maturity, which the page excludes | #VALUE! | #NUM!ProvenanceMicrosoft documents: "If settlement >= maturity, PRICE returns the #NUM! error value." Equality is the boundary the >= includes. |
Mismatch |
| =PRICE(A2,A3,A4,A5,0,A7,A8) | A redemption value of zero, which the page excludes | #VALUE! | #NUM!ProvenanceMicrosoft documents: "If redemption <= 0, PRICE returns the #NUM! error value." Note the asymmetry with rate and yld, which are excluded only BELOW zero: a zero-coupon bond is legal, a zero-redemption bond is not. |
Mismatch |
| =PRICE("not a date",A3,A4,A5,A6,A7,A8) | A settlement date that is not a date | #VALUE! | #VALUE!ProvenanceMicrosoft documents: "If settlement or maturity is not a valid date, PRICE returns the #VALUE! error value." |
Matched |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation
Where PRICE 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.