
π This article includes 1 downloadable practice file β
In this article
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?
Z.TEST in practice
Where you will use it
- Is a sample mean above a target?
- Quality vs spec
- Large-sample tests
Worked example
| Target mean | Formula | Result |
|---|---|---|
| 120 | =ROUND(Z.TEST({120,135,128,160,95,140,132},A2),4) | 0.091 |
| 130 | =ROUND(Z.TEST({120,135,128,160,95,140,132},A3),4) | 0.5 |
| 140 | =ROUND(Z.TEST({120,135,128,160,95,140,132},A4),4) | 0.909 |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| One-tailed | Z.TEST returns a one-tailed p-value |
| Small samples | Prefer T.TEST |
Related functions
π Part of the free Excel course: Beginner β Expert Β· Try it in the Formula Lab or ask the AI Helper.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
π Practice files for this article
- πPractice workbook: Statistics advanced33 tasks on realistic sales data β type your formula, the Check column turns green when it is right. Answers sheet included.β¬ XLSX Β· 36 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βBuild this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.