# T.TEST Function

> Return the probability of a Student's t-test with T.TEST in TX Sheet Control: one or two tails, paired, equal and unequal variance tests, errors and an example.

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

---

Return the probability of a Student's t-test, which tells whether two samples are likely to come from populations with the same mean. `array1` and `array2` are the two samples. `tails` is 1 for a one-tailed or 2 for a two-tailed test. `type` is 1 for a paired test, 2 for two samples with equal variance or 3 for two samples with unequal variance. Another `tails` or `type` returns `#NUM!`, and a paired test of samples with different sizes returns `#N/A`.

### Syntax

```text
T.TEST(array1, array2, tails, type)
```

Category: Statistics. Minimum arguments: 4. Maximum arguments: 4.

Available for supported offline calculation.

### Examples

```text
=T.TEST({1,2,3},{2,4,6},2,2)
```

The formula returns 0.1962611781, the two-tailed probability of a test with equal variance.

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:** [TRUNC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/trunc/llms-full.txt)
- **Next:** [TTEST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ttest/llms-full.txt)
