# Z.TEST Function

> Return the one-tailed probability of a z-test with Z.TEST in TX Sheet Control: the tested value, an optional population standard deviation and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > Z.TEST Function
- **220 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/z-test/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/z-test/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/z-test/llms-full.txt

---

Return the one-tailed probability of a z-test. `array` is the data set and `x` the value to test; the result is the probability that the mean of the sample is greater than its observed mean if the population mean is `x`. `sigma` is the standard deviation of the population; when it is omitted, the standard deviation of the sample is used. Without `sigma`, an array with only one value returns `#NUM!`.

### Syntax

```text
Z.TEST(array, x, sigma)
```

Category: Statistics. Minimum arguments: 2. Maximum arguments: 3.

Available for supported offline calculation.

### Examples

```text
=Z.TEST({1,2,3,4,5},2)
```

The formula returns 0.0786496035.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [YIELDMAT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/yieldmat/llms-full.txt)
- **Next:** [ZTEST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ztest/llms-full.txt)
