← All functions

ZTEST

Quirk found

Category: Compatibility · Last tested 2026-09-01

Real compatibility results for the ZTEST 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 ZTEST’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 ZTEST working in LibreOffice?

ZTEST 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(ZTEST(A2:A11,4),6) The legacy spelling on Microsoft's documented example data 0.090574 0.090574
Provenance

ZTEST is the pre-2010 spelling of Z.TEST and its page publishes the same four example rows on the same data, =ZTEST(A2:A11,4) = 0.090574 among them. DERIVATION from the identity the page publishes AS TEXT (this page carries no equation images at all): "Z.TEST(array,x) = 1-Norm.S.Dist((Average(array)- x) / (STDEV(array)/sqrt(n)),TRUE)" when sigma is omitted. With n = 10, AVERAGE = 51/10 = 5.1 and the SAMPLE standard deviation (n-1 divisor), the standard normal CDF was evaluated as erfc(-z/sqrt(2))/2 at 50 digits -- not from a statistics library's norm.cdf. NOTE ON WHICH PAGE WAS CITED FOR THE FORMULA: the ZTEST page states its two equations only as IMAGES (awfztest.gif, awfztsta.gif) with a textual legend, while the Z.TEST page states the NORM.S.DIST identity in text; the derivation therefore follows the Z.TEST page's textual form, which the legend on this page matches term for term ("x is the sample mean AVERAGE(array); s is the sample standard deviation STDEV(array); and n is the number of observations in the sample COUNT(array)"). Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/ztest-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(ZTEST(A2:A11,6),6) The legacy spelling at a hypothesized mean of 6 0.863043 0.863043
Provenance

Microsoft's ZTEST page publishes 0.863043 for this row, matching its Z.TEST twin.

Matched
=ROUND(ZTEST(A2:A11,4)-Z.TEST(A2:A11,4),15) The legacy spelling against its modern replacement on identical arguments 0 0
Provenance

The ZTEST page's Important box directs readers to Z.TEST and the two are documented identically. A structural assertion with no derived constant, checking the engine's two spellings against each other.

Matched
=ROUND(ZTEST(A2:A11,4,2.5)-Z.TEST(A2:A11,4,2.5),15) The same alias check with the optional sigma argument supplied 0 0
Provenance

The alias check repeated on the optional third argument, which no published example on either page exercises -- the likeliest place for two spellings to drift apart unnoticed.

Matched
=ROUND(ZTEST(A2:A11,4),12) The headline example carried to twelve decimals 0.090574196851 0.090574196851
Provenance

Asserted at twelve places from the derivation: 0.090574196851.

Matched
=ZTEST(A20:A21,4) An empty array, which the page assigns an error code -- the referenced cells are DELIBERATELY left unset #N/A #N/A
Provenance

The Remarks publish: "If array is empty, ZTEST returns the #N/A error value." A20:A21 IS DELIBERATELY BLANK AND UNPOPULATED; emptiness is the whole content of the case.

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(ZTEST(A2:A11,4),6) The legacy spelling on Microsoft's documented example data 0.090574 0.090574
Provenance

ZTEST is the pre-2010 spelling of Z.TEST and its page publishes the same four example rows on the same data, =ZTEST(A2:A11,4) = 0.090574 among them. DERIVATION from the identity the page publishes AS TEXT (this page carries no equation images at all): "Z.TEST(array,x) = 1-Norm.S.Dist((Average(array)- x) / (STDEV(array)/sqrt(n)),TRUE)" when sigma is omitted. With n = 10, AVERAGE = 51/10 = 5.1 and the SAMPLE standard deviation (n-1 divisor), the standard normal CDF was evaluated as erfc(-z/sqrt(2))/2 at 50 digits -- not from a statistics library's norm.cdf. NOTE ON WHICH PAGE WAS CITED FOR THE FORMULA: the ZTEST page states its two equations only as IMAGES (awfztest.gif, awfztsta.gif) with a textual legend, while the Z.TEST page states the NORM.S.DIST identity in text; the derivation therefore follows the Z.TEST page's textual form, which the legend on this page matches term for term ("x is the sample mean AVERAGE(array); s is the sample standard deviation STDEV(array); and n is the number of observations in the sample COUNT(array)"). Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/ztest-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(ZTEST(A2:A11,6),6) The legacy spelling at a hypothesized mean of 6 0.863043 0.863043
Provenance

Microsoft's ZTEST page publishes 0.863043 for this row, matching its Z.TEST twin.

Matched
=ROUND(ZTEST(A2:A11,4)-Z.TEST(A2:A11,4),15) The legacy spelling against its modern replacement on identical arguments 0 0
Provenance

The ZTEST page's Important box directs readers to Z.TEST and the two are documented identically. A structural assertion with no derived constant, checking the engine's two spellings against each other.

Matched
=ROUND(ZTEST(A2:A11,4,2.5)-Z.TEST(A2:A11,4,2.5),15) The same alias check with the optional sigma argument supplied 0 0
Provenance

The alias check repeated on the optional third argument, which no published example on either page exercises -- the likeliest place for two spellings to drift apart unnoticed.

Matched
=ROUND(ZTEST(A2:A11,4),12) The headline example carried to twelve decimals 0.09057419685 0.090574196851
Provenance

Asserted at twelve places from the derivation: 0.090574196851.

Matched
=ZTEST(A20:A21,4) An empty array, which the page assigns an error code -- the referenced cells are DELIBERATELY left unset #N/A #N/A
Provenance

The Remarks publish: "If array is empty, ZTEST returns the #N/A error value." A20:A21 IS DELIBERATELY BLANK AND UNPOPULATED; emptiness is the whole content of the case.

Matched

LibreOffice Calc 25.8.7.3 (tested 2026-08-31)

FormulaDescriptionResultExpectedVerdict
=ROUND(ZTEST(A2:A11,4),6) The legacy spelling on Microsoft's documented example data 0.090574 0.090574
Provenance

ZTEST is the pre-2010 spelling of Z.TEST and its page publishes the same four example rows on the same data, =ZTEST(A2:A11,4) = 0.090574 among them. DERIVATION from the identity the page publishes AS TEXT (this page carries no equation images at all): "Z.TEST(array,x) = 1-Norm.S.Dist((Average(array)- x) / (STDEV(array)/sqrt(n)),TRUE)" when sigma is omitted. With n = 10, AVERAGE = 51/10 = 5.1 and the SAMPLE standard deviation (n-1 divisor), the standard normal CDF was evaluated as erfc(-z/sqrt(2))/2 at 50 digits -- not from a statistics library's norm.cdf. NOTE ON WHICH PAGE WAS CITED FOR THE FORMULA: the ZTEST page states its two equations only as IMAGES (awfztest.gif, awfztsta.gif) with a textual legend, while the Z.TEST page states the NORM.S.DIST identity in text; the derivation therefore follows the Z.TEST page's textual form, which the legend on this page matches term for term ("x is the sample mean AVERAGE(array); s is the sample standard deviation STDEV(array); and n is the number of observations in the sample COUNT(array)"). Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/ztest-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(ZTEST(A2:A11,6),6) The legacy spelling at a hypothesized mean of 6 0.863043 0.863043
Provenance

Microsoft's ZTEST page publishes 0.863043 for this row, matching its Z.TEST twin.

Matched
=ROUND(ZTEST(A2:A11,4)-Z.TEST(A2:A11,4),15) The legacy spelling against its modern replacement on identical arguments 0 0
Provenance

The ZTEST page's Important box directs readers to Z.TEST and the two are documented identically. A structural assertion with no derived constant, checking the engine's two spellings against each other.

Matched
=ROUND(ZTEST(A2:A11,4,2.5)-Z.TEST(A2:A11,4,2.5),15) The same alias check with the optional sigma argument supplied 0 0
Provenance

The alias check repeated on the optional third argument, which no published example on either page exercises -- the likeliest place for two spellings to drift apart unnoticed.

Matched
=ROUND(ZTEST(A2:A11,4),12) The headline example carried to twelve decimals 0.090574196851 0.090574196851
Provenance

Asserted at twelve places from the derivation: 0.090574196851.

Matched
=ZTEST(A20:A21,4) An empty array, which the page assigns an error code -- the referenced cells are DELIBERATELY left unset #DIV/0! #N/A
Provenance

The Remarks publish: "If array is empty, ZTEST returns the #N/A error value." A20:A21 IS DELIBERATELY BLANK AND UNPOPULATED; emptiness is the whole content of the case.

Mismatch

Docs & syntax

Where ZTEST behaves differently