PRICEMAT
Quirk foundCategory: Financial · Last tested 2026-09-01
Real compatibility results for the PRICEMAT 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 PRICEMAT’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 PRICEMAT working in LibreOffice?
PRICEMAT 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
-
=PRICEMAT(A2,A3,A4,-0.061,A6,A7) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Microsoft documents: "If rate < 0 or if yld < 0, PRICEMAT returns the #NUM! error value."; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
-
=PRICEMAT(A2,A3,A4,A5,A6,5) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Microsoft documents: "If basis < 0 or if basis > 4, PRICEMAT returns the #NUM! error value." (This page prints its basis table with the row label "0 (zero) or omitted" where its sibling pages print "0 or omitted" -- a wording difference across Microsoft's own financial pages, not a behavioural one.); MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
-
=PRICEMAT(A3,A3,A4,A5,A6,A7) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Microsoft documents: "If settlement >= maturity, PRICEMAT returns the #NUM! error value." OpenFormula 1.3 section 6.12.40 states the same constraint as "Settlement < Maturity".; 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(PRICEMAT(A2,A3,A4,A5,A6,A7),2) | Microsoft's documented worked example, at the published precision | 99.98 | 99.98ProvenanceMicrosoft publishes =PRICEMAT(A2,A3,A4,A5,A6,A7) = $99.98 for a security settled 2008-02-15, maturing 2008-04-13, issued 2007-11-11, 6.1% coupon, 6.1% yield, 30/360 basis. DERIVATION from the formula Microsoft prints as an image: PRICEMAT = (100 + (DIM/B * rate * 100)) / (1 + (DSM/B * yld)) - (A/B * rate * 100), where DIM is days from issue to maturity, DSM days from settlement to maturity and A days from issue to settlement. Under Procedure A (US 30/360) those are DIM = 152, DSM = 58 and A = 94 -- and note they satisfy DIM = A + DSM exactly, which is a useful internal check on the day counts. In exact rational arithmetic the price is 99.98449887555695..., which is $99.98 as published. 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/pricemat-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(PRICEMAT(A2,A3,A4,A5,A6,A7),10) | The same example carried to ten decimal places | 99.9844988756 | 99.9844988756ProvenanceAsserted at ten places: 99.9844988756. The two published decimals hide any day-count slip of a day or two in DIM, DSM or A; ten places do not. |
Matched |
| =ROUND(PRICEMAT(A2,A3,A4,0,0,A7),10) | Both rate and yield zero, which OpenFormula defines as exactly 100 | 100 | 100ProvenanceOpenFormula 1.3 section 6.12.40 adds a rule Microsoft's page does not print: "If both, Rate and AnnualYield, are 0, the return value is 100." The documented Microsoft formula gives the same answer without needing a special case -- with rate = 0 the numerator is 100 and the accrued term vanishes, and with yld = 0 the denominator is 1 -- so this is a case where the two specifications agree by different routes, and where an engine that special-cases one but not the other still lands on 100. |
Matched |
| =PRICEMAT(A2,A3,A4,-0.061,A6,A7) | A negative coupon rate, which the page excludes | #NUM! | #NUM!ProvenanceMicrosoft documents: "If rate < 0 or if yld < 0, PRICEMAT returns the #NUM! error value." |
Matched |
| =PRICEMAT(A2,A3,A4,A5,A6,5) | A basis of 5, one past the documented range | #NUM! | #NUM!ProvenanceMicrosoft documents: "If basis < 0 or if basis > 4, PRICEMAT returns the #NUM! error value." (This page prints its basis table with the row label "0 (zero) or omitted" where its sibling pages print "0 or omitted" -- a wording difference across Microsoft's own financial pages, not a behavioural one.) |
Matched |
| =PRICEMAT(A3,A3,A4,A5,A6,A7) | Settlement equal to maturity | #NUM! | #NUM!ProvenanceMicrosoft documents: "If settlement >= maturity, PRICEMAT returns the #NUM! error value." OpenFormula 1.3 section 6.12.40 states the same constraint as "Settlement < Maturity". |
Matched |
| =PRICEMAT(A2,A3,"not a date",A5,A6,A7) | An issue date that is not a date | #VALUE! | #VALUE!ProvenanceMicrosoft documents: "If settlement, maturity, or issue is not a valid date, PRICEMAT returns the #VALUE! error value." The issue argument is the one this function has that PRICE does not, so it is the one asserted here. |
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(PRICEMAT(A2,A3,A4,A5,A6,A7),2) | Microsoft's documented worked example, at the published precision | 99.98 | 99.98ProvenanceMicrosoft publishes =PRICEMAT(A2,A3,A4,A5,A6,A7) = $99.98 for a security settled 2008-02-15, maturing 2008-04-13, issued 2007-11-11, 6.1% coupon, 6.1% yield, 30/360 basis. DERIVATION from the formula Microsoft prints as an image: PRICEMAT = (100 + (DIM/B * rate * 100)) / (1 + (DSM/B * yld)) - (A/B * rate * 100), where DIM is days from issue to maturity, DSM days from settlement to maturity and A days from issue to settlement. Under Procedure A (US 30/360) those are DIM = 152, DSM = 58 and A = 94 -- and note they satisfy DIM = A + DSM exactly, which is a useful internal check on the day counts. In exact rational arithmetic the price is 99.98449887555695..., which is $99.98 as published. 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/pricemat-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(PRICEMAT(A2,A3,A4,A5,A6,A7),10) | The same example carried to ten decimal places | 99.98449888 | 99.9844988756ProvenanceAsserted at ten places: 99.9844988756. The two published decimals hide any day-count slip of a day or two in DIM, DSM or A; ten places do not. |
Inconclusive |
| =ROUND(PRICEMAT(A2,A3,A4,0,0,A7),10) | Both rate and yield zero, which OpenFormula defines as exactly 100 | 100 | 100ProvenanceOpenFormula 1.3 section 6.12.40 adds a rule Microsoft's page does not print: "If both, Rate and AnnualYield, are 0, the return value is 100." The documented Microsoft formula gives the same answer without needing a special case -- with rate = 0 the numerator is 100 and the accrued term vanishes, and with yld = 0 the denominator is 1 -- so this is a case where the two specifications agree by different routes, and where an engine that special-cases one but not the other still lands on 100. |
Matched |
| =PRICEMAT(A2,A3,A4,-0.061,A6,A7) | A negative coupon rate, which the page excludes | #NUM! | #NUM!ProvenanceMicrosoft documents: "If rate < 0 or if yld < 0, PRICEMAT returns the #NUM! error value." |
Matched |
| =PRICEMAT(A2,A3,A4,A5,A6,5) | A basis of 5, one past the documented range | #NUM! | #NUM!ProvenanceMicrosoft documents: "If basis < 0 or if basis > 4, PRICEMAT returns the #NUM! error value." (This page prints its basis table with the row label "0 (zero) or omitted" where its sibling pages print "0 or omitted" -- a wording difference across Microsoft's own financial pages, not a behavioural one.) |
Matched |
| =PRICEMAT(A3,A3,A4,A5,A6,A7) | Settlement equal to maturity | #NUM! | #NUM!ProvenanceMicrosoft documents: "If settlement >= maturity, PRICEMAT returns the #NUM! error value." OpenFormula 1.3 section 6.12.40 states the same constraint as "Settlement < Maturity". |
Matched |
| =PRICEMAT(A2,A3,"not a date",A5,A6,A7) | An issue date that is not a date | #VALUE! | #VALUE!ProvenanceMicrosoft documents: "If settlement, maturity, or issue is not a valid date, PRICEMAT returns the #VALUE! error value." The issue argument is the one this function has that PRICE does not, so it is the one asserted here. |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(PRICEMAT(A2,A3,A4,A5,A6,A7),2) | Microsoft's documented worked example, at the published precision | 99.98 | 99.98ProvenanceMicrosoft publishes =PRICEMAT(A2,A3,A4,A5,A6,A7) = $99.98 for a security settled 2008-02-15, maturing 2008-04-13, issued 2007-11-11, 6.1% coupon, 6.1% yield, 30/360 basis. DERIVATION from the formula Microsoft prints as an image: PRICEMAT = (100 + (DIM/B * rate * 100)) / (1 + (DSM/B * yld)) - (A/B * rate * 100), where DIM is days from issue to maturity, DSM days from settlement to maturity and A days from issue to settlement. Under Procedure A (US 30/360) those are DIM = 152, DSM = 58 and A = 94 -- and note they satisfy DIM = A + DSM exactly, which is a useful internal check on the day counts. In exact rational arithmetic the price is 99.98449887555695..., which is $99.98 as published. 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/pricemat-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(PRICEMAT(A2,A3,A4,A5,A6,A7),10) | The same example carried to ten decimal places | 99.9844988756 | 99.9844988756ProvenanceAsserted at ten places: 99.9844988756. The two published decimals hide any day-count slip of a day or two in DIM, DSM or A; ten places do not. |
Matched |
| =ROUND(PRICEMAT(A2,A3,A4,0,0,A7),10) | Both rate and yield zero, which OpenFormula defines as exactly 100 | 100 | 100ProvenanceOpenFormula 1.3 section 6.12.40 adds a rule Microsoft's page does not print: "If both, Rate and AnnualYield, are 0, the return value is 100." The documented Microsoft formula gives the same answer without needing a special case -- with rate = 0 the numerator is 100 and the accrued term vanishes, and with yld = 0 the denominator is 1 -- so this is a case where the two specifications agree by different routes, and where an engine that special-cases one but not the other still lands on 100. |
Matched |
| =PRICEMAT(A2,A3,A4,-0.061,A6,A7) | A negative coupon rate, which the page excludes | #VALUE! | #NUM!ProvenanceMicrosoft documents: "If rate < 0 or if yld < 0, PRICEMAT returns the #NUM! error value." |
Mismatch |
| =PRICEMAT(A2,A3,A4,A5,A6,5) | A basis of 5, one past the documented range | #VALUE! | #NUM!ProvenanceMicrosoft documents: "If basis < 0 or if basis > 4, PRICEMAT returns the #NUM! error value." (This page prints its basis table with the row label "0 (zero) or omitted" where its sibling pages print "0 or omitted" -- a wording difference across Microsoft's own financial pages, not a behavioural one.) |
Mismatch |
| =PRICEMAT(A3,A3,A4,A5,A6,A7) | Settlement equal to maturity | #VALUE! | #NUM!ProvenanceMicrosoft documents: "If settlement >= maturity, PRICEMAT returns the #NUM! error value." OpenFormula 1.3 section 6.12.40 states the same constraint as "Settlement < Maturity". |
Mismatch |
| =PRICEMAT(A2,A3,"not a date",A5,A6,A7) | An issue date that is not a date | #VALUE! | #VALUE!ProvenanceMicrosoft documents: "If settlement, maturity, or issue is not a valid date, PRICEMAT returns the #VALUE! error value." The issue argument is the one this function has that PRICE does not, so it is the one asserted here. |
Matched |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation
Where PRICEMAT 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.