Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use the ZTEST Function in Excel

Learn how to use ZTEST Function in Excel, including its purpose, syntax, examples, and common errors, with clear step-by-step guidance.

Table of Contents

This guide explains how to use ZTEST Function in Excel, including its syntax, required arguments, practical examples, and common errors.

Description: The function returns the one-sided probability value of the z test. For the hypothetical population mean, the function returns the probability that the sample mean will be greater than the sample mean observed in the data set or array.

Syntax: ZTEST (array, x, [sigma]) .

Inside:

- array : An array or range of data to test for x, which is a required parameter.

- x : Value to check, required parameters.

- sigma : The overall standard deviation, if omitted the default value is the sample standard deviation, is an arbitrary parameter.

Attention:

- If array array is empty -> the function returns the # N / A error value.

- ZTEST function is calculated based on the formula:

+ Where sigma is used:

How to Use the ZTEST Function in Excel screenshot

+ In case of omitting sigma parameter:

How to Use the ZTEST Function in Excel screenshot 2

- ZTEST function indicates that the probability that the sample mean will be greater than the observed value is AVERAGE (array) when the average of the basic population is ?0 => ZTEST will return a value greater than 0.5 when AVERAGE ( array) < ?0 .

- You can use the ZTEST function to calculate the probability of 2 sides based on the formula:

2 * MIN (ZTEST (array, ?0, sigma), 1 - ZTEST (array, ?0, sigma)) .

For example:

How to Use the ZTEST Function in Excel screenshot 3

Step 1: In the cell to calculate enter the formula: = ZTEST (D6: I6, D7) .

How to Use the ZTEST Function in Excel screenshot 4

Step 2: Press Enter -> ZTEST function value is:

How to Use the ZTEST Function in Excel screenshot 5

In addition, you can also calculate the 2-sided probability based on the ZTEST function:

Step 1 : In the cell to calculate, enter the formula: = 2 * MIN (ZTEST (D6: I6, D7), 1-ZTEST (D6: I6, D7)) .

How to Use the ZTEST Function in Excel screenshot 6

Step 2: Press Enter -> the value of the ZTEST function on both sides is:

How to Use the ZTEST Function in Excel screenshot 7

Above is a detailed guide of meaning, usage and some notes when using ZTEST .

Good luck!

FAQ

What does the ZTEST function do in Excel?

The ZTEST function performs the calculation described in this guide. Use the correct arguments and compatible data types for reliable results.

How do I enter the ZTEST function correctly?

Start with an equals sign, enter ZTEST, add the required arguments inside parentheses, and confirm that cell references and separators are correct.

Why does the ZTEST function return an error?

Common causes include missing arguments, invalid data types, incorrect cell references, unsupported values, or regional separator settings.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.