Z.TEST Function in Excel: One-Sample z-Test

⏱ 1 min readUpdated 28 September 2026

StatisticsLevel: ExpertAvailable in: Excel 2010+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

Z.TEST returns the one-tailed p-value for whether a sample mean is higher than a claimed value.

Syntax

=Z.TEST(array, x, [sigma])
Argument What it means
x The claimed mean.

Examples

Example 1

=Z.TEST(B2:B51, 500)

Are packets really filled above 500 g on average?

T.TEST · NORM.S.DIST

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong