← All functions

TBILLPRICE

Quirk found

Category: Financial · Last tested 2026-09-01

Real compatibility results for the TBILLPRICE 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 SheetsYes Yes (Drive import, 2026-08-31) Supported, behaves as documented
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 TBILLPRICE’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 TBILLPRICE working in LibreOffice?

TBILLPRICE 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

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(TBILLPRICE(A2,A3,A4),2) Microsoft's documented worked example, at the two decimals it publishes 98.45 98.45
Provenance

Microsoft publishes =TBILLPRICE(A2,A3,A4) = "$ 98.45" (the dollar sign and the space are the page's formatting; the assertable figure is 98.45). Settlement 2008-03-31, maturity 2008-06-01, discount 9.0%. DERIVATION: the page prints its formula only as an image (awftbpr.gif) with the textual legend "DSM = number of days from settlement to maturity", so the standard discount-bill form was used and checked against the published figure: 100 * (1 - discount*DSM/360) with the ACTUAL day count DSM = 62 gives exactly 98.45 -- 100*(1 - 0.09*62/360) = 100*(1 - 0.0155). The 30/360 count of 61 would give 98.475, so this function independently confirms the day-count finding recorded on TBILLEQ. The answer here is EXACT in decimal, with no rounding at all. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/tbillprice-function. FETCH NOTE FOR THIS BATCH: batch F recorded every /en-us/office/<name>-function-<guid> URL returning Microsoft's 'Sorry, the page you're looking for can't be found' body; today BOTH paths serve the article again -- the GUID form redirects to /en-us/excel/functions/<slug>-function -- and every page cited in this batch came back complete (217-223 KB) in one or two attempts, with no 87 KB stub responses. Nothing here is sourced from a search snippet or a mirror.

Matched
=ROUND(TBILLPRICE(A2,A3,A4),10) The same example at ten decimals, where it is still exact 98.45 98.45
Provenance

0.09*62/360 = 0.0155 exactly in decimal, so the price is 98.45 with no residue -- and 98.45 is not exactly representable in binary, which is precisely why the ROUND(...,10) wrapper is kept rather than asserting a bare equality.

Matched
=ROUND(TBILLYIELD(A2,A3,TBILLPRICE(A2,A3,0.09)),10) Price fed into yield: a structural round trip across the two functions 0.0914169629 0.0914169629
Provenance

TBILLPRICE at a 9% discount gives 98.45, and TBILLYIELD of 98.45 over the same dates is the documented 0.0914169629 -- which is Microsoft's OWN TBILLYIELD example, whose data table uses exactly the $98.45 this composition produces. The two published examples are therefore two halves of one round trip, and this case asserts them as such. Derived: (100-98.45)/98.45 * (360/62) = 0.09141696292534281361097.

Matched
=TBILLPRICE(A2,A3,0) A discount rate of zero, which the page excludes #NUM! #NUM!
Provenance

The Remarks publish: "If discount <= 0, TBILLPRICE returns the #NUM! error value." Note that the arithmetic would be perfectly well defined at zero (the price would be par, 100), so this is a documented restriction rather than a mathematical one.

Matched
=TBILLPRICE(A2,A2+400,A4) A maturity more than a year after settlement, which the page excludes #NUM! #NUM!
Provenance

The Remarks publish: "If settlement > maturity, or if maturity is more than one year after settlement, TBILLPRICE returns the #NUM! error value." LIBREOFFICE DOES NOT ENFORCE THIS RULE AT ALL IN TBILLPRICE, AND ITS TWO SIBLINGS DO. Probed on LibreOffice 25.8.7.3 with the same settlement date and maturities 365, 366, 370, 400, 500 and 730 days out, TBILLPRICE returned a price for EVERY one of them (90.975, 90.95, 90.85, 90.1, 87.65 and 81.975) -- a two-year bill priced without complaint -- while TBILLEQ and TBILLYIELD rejected all six. The rejection is itself off-spec: the siblings return #VALUE! where Microsoft documents #NUM!, the corpus-wide pattern already recorded in 160-odd cases. AND TBILLPRICE'S PERMISSIVENESS IS NOT EVEN MONOTONIC: at 364 days it returns #VALUE!, at 365 days and beyond it returns a price, so the one input near the documented boundary that it does reject is the one INSIDE the documented range. The returned price does not follow the documented formula on the actual day count either: 90.1 at a 400-day maturity implies DSM = 396 in 100*(1 - discount*DSM/360), which is neither the actual count (400) nor the US 30/360 count (395). The case asserts the documented #NUM! and records the divergence rather than accommodating it.

Matched
=TBILLPRICE("not a date",A3,A4) A non-date settlement argument #VALUE! #VALUE!
Provenance

The Remarks publish: "If settlement or maturity is not a valid date, TBILLPRICE 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(TBILLPRICE(A2,A3,A4),2) Microsoft's documented worked example, at the two decimals it publishes 98.45 98.45
Provenance

Microsoft publishes =TBILLPRICE(A2,A3,A4) = "$ 98.45" (the dollar sign and the space are the page's formatting; the assertable figure is 98.45). Settlement 2008-03-31, maturity 2008-06-01, discount 9.0%. DERIVATION: the page prints its formula only as an image (awftbpr.gif) with the textual legend "DSM = number of days from settlement to maturity", so the standard discount-bill form was used and checked against the published figure: 100 * (1 - discount*DSM/360) with the ACTUAL day count DSM = 62 gives exactly 98.45 -- 100*(1 - 0.09*62/360) = 100*(1 - 0.0155). The 30/360 count of 61 would give 98.475, so this function independently confirms the day-count finding recorded on TBILLEQ. The answer here is EXACT in decimal, with no rounding at all. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/tbillprice-function. FETCH NOTE FOR THIS BATCH: batch F recorded every /en-us/office/<name>-function-<guid> URL returning Microsoft's 'Sorry, the page you're looking for can't be found' body; today BOTH paths serve the article again -- the GUID form redirects to /en-us/excel/functions/<slug>-function -- and every page cited in this batch came back complete (217-223 KB) in one or two attempts, with no 87 KB stub responses. Nothing here is sourced from a search snippet or a mirror.

Matched
=ROUND(TBILLPRICE(A2,A3,A4),10) The same example at ten decimals, where it is still exact 98.45 98.45
Provenance

0.09*62/360 = 0.0155 exactly in decimal, so the price is 98.45 with no residue -- and 98.45 is not exactly representable in binary, which is precisely why the ROUND(...,10) wrapper is kept rather than asserting a bare equality.

Matched
=ROUND(TBILLYIELD(A2,A3,TBILLPRICE(A2,A3,0.09)),10) Price fed into yield: a structural round trip across the two functions 0.0914169629 0.0914169629
Provenance

TBILLPRICE at a 9% discount gives 98.45, and TBILLYIELD of 98.45 over the same dates is the documented 0.0914169629 -- which is Microsoft's OWN TBILLYIELD example, whose data table uses exactly the $98.45 this composition produces. The two published examples are therefore two halves of one round trip, and this case asserts them as such. Derived: (100-98.45)/98.45 * (360/62) = 0.09141696292534281361097.

Matched
=TBILLPRICE(A2,A3,0) A discount rate of zero, which the page excludes #NUM! #NUM!
Provenance

The Remarks publish: "If discount <= 0, TBILLPRICE returns the #NUM! error value." Note that the arithmetic would be perfectly well defined at zero (the price would be par, 100), so this is a documented restriction rather than a mathematical one.

Matched
=TBILLPRICE(A2,A2+400,A4) A maturity more than a year after settlement, which the page excludes #NUM! #NUM!
Provenance

The Remarks publish: "If settlement > maturity, or if maturity is more than one year after settlement, TBILLPRICE returns the #NUM! error value." LIBREOFFICE DOES NOT ENFORCE THIS RULE AT ALL IN TBILLPRICE, AND ITS TWO SIBLINGS DO. Probed on LibreOffice 25.8.7.3 with the same settlement date and maturities 365, 366, 370, 400, 500 and 730 days out, TBILLPRICE returned a price for EVERY one of them (90.975, 90.95, 90.85, 90.1, 87.65 and 81.975) -- a two-year bill priced without complaint -- while TBILLEQ and TBILLYIELD rejected all six. The rejection is itself off-spec: the siblings return #VALUE! where Microsoft documents #NUM!, the corpus-wide pattern already recorded in 160-odd cases. AND TBILLPRICE'S PERMISSIVENESS IS NOT EVEN MONOTONIC: at 364 days it returns #VALUE!, at 365 days and beyond it returns a price, so the one input near the documented boundary that it does reject is the one INSIDE the documented range. The returned price does not follow the documented formula on the actual day count either: 90.1 at a 400-day maturity implies DSM = 396 in 100*(1 - discount*DSM/360), which is neither the actual count (400) nor the US 30/360 count (395). The case asserts the documented #NUM! and records the divergence rather than accommodating it.

Matched
=TBILLPRICE("not a date",A3,A4) A non-date settlement argument #VALUE! #VALUE!
Provenance

The Remarks publish: "If settlement or maturity is not a valid date, TBILLPRICE returns the #VALUE! error value."

Matched

LibreOffice Calc 25.8.7.3 (tested 2026-08-31)

FormulaDescriptionResultExpectedVerdict
=ROUND(TBILLPRICE(A2,A3,A4),2) Microsoft's documented worked example, at the two decimals it publishes 98.45 98.45
Provenance

Microsoft publishes =TBILLPRICE(A2,A3,A4) = "$ 98.45" (the dollar sign and the space are the page's formatting; the assertable figure is 98.45). Settlement 2008-03-31, maturity 2008-06-01, discount 9.0%. DERIVATION: the page prints its formula only as an image (awftbpr.gif) with the textual legend "DSM = number of days from settlement to maturity", so the standard discount-bill form was used and checked against the published figure: 100 * (1 - discount*DSM/360) with the ACTUAL day count DSM = 62 gives exactly 98.45 -- 100*(1 - 0.09*62/360) = 100*(1 - 0.0155). The 30/360 count of 61 would give 98.475, so this function independently confirms the day-count finding recorded on TBILLEQ. The answer here is EXACT in decimal, with no rounding at all. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/tbillprice-function. FETCH NOTE FOR THIS BATCH: batch F recorded every /en-us/office/<name>-function-<guid> URL returning Microsoft's 'Sorry, the page you're looking for can't be found' body; today BOTH paths serve the article again -- the GUID form redirects to /en-us/excel/functions/<slug>-function -- and every page cited in this batch came back complete (217-223 KB) in one or two attempts, with no 87 KB stub responses. Nothing here is sourced from a search snippet or a mirror.

Matched
=ROUND(TBILLPRICE(A2,A3,A4),10) The same example at ten decimals, where it is still exact 98.45 98.45
Provenance

0.09*62/360 = 0.0155 exactly in decimal, so the price is 98.45 with no residue -- and 98.45 is not exactly representable in binary, which is precisely why the ROUND(...,10) wrapper is kept rather than asserting a bare equality.

Matched
=ROUND(TBILLYIELD(A2,A3,TBILLPRICE(A2,A3,0.09)),10) Price fed into yield: a structural round trip across the two functions 0.0914169629 0.0914169629
Provenance

TBILLPRICE at a 9% discount gives 98.45, and TBILLYIELD of 98.45 over the same dates is the documented 0.0914169629 -- which is Microsoft's OWN TBILLYIELD example, whose data table uses exactly the $98.45 this composition produces. The two published examples are therefore two halves of one round trip, and this case asserts them as such. Derived: (100-98.45)/98.45 * (360/62) = 0.09141696292534281361097.

Matched
=TBILLPRICE(A2,A3,0) A discount rate of zero, which the page excludes #VALUE! #NUM!
Provenance

The Remarks publish: "If discount <= 0, TBILLPRICE returns the #NUM! error value." Note that the arithmetic would be perfectly well defined at zero (the price would be par, 100), so this is a documented restriction rather than a mathematical one.

Mismatch
=TBILLPRICE(A2,A2+400,A4) A maturity more than a year after settlement, which the page excludes 90.1 #NUM!
Provenance

The Remarks publish: "If settlement > maturity, or if maturity is more than one year after settlement, TBILLPRICE returns the #NUM! error value." LIBREOFFICE DOES NOT ENFORCE THIS RULE AT ALL IN TBILLPRICE, AND ITS TWO SIBLINGS DO. Probed on LibreOffice 25.8.7.3 with the same settlement date and maturities 365, 366, 370, 400, 500 and 730 days out, TBILLPRICE returned a price for EVERY one of them (90.975, 90.95, 90.85, 90.1, 87.65 and 81.975) -- a two-year bill priced without complaint -- while TBILLEQ and TBILLYIELD rejected all six. The rejection is itself off-spec: the siblings return #VALUE! where Microsoft documents #NUM!, the corpus-wide pattern already recorded in 160-odd cases. AND TBILLPRICE'S PERMISSIVENESS IS NOT EVEN MONOTONIC: at 364 days it returns #VALUE!, at 365 days and beyond it returns a price, so the one input near the documented boundary that it does reject is the one INSIDE the documented range. The returned price does not follow the documented formula on the actual day count either: 90.1 at a 400-day maturity implies DSM = 396 in 100*(1 - discount*DSM/360), which is neither the actual count (400) nor the US 30/360 count (395). The case asserts the documented #NUM! and records the divergence rather than accommodating it.

Mismatch
=TBILLPRICE("not a date",A3,A4) A non-date settlement argument #VALUE! #VALUE!
Provenance

The Remarks publish: "If settlement or maturity is not a valid date, TBILLPRICE returns the #VALUE! error value."

Matched

Docs & syntax

Where TBILLPRICE behaves differently