Statistical
Excel 2010
◉ 23 views
=T.TEST()
Returns the probability associated with a Student's t-Test. Use T.TEST to determine whether two samples are likely to have come from the same two underlying populations that have the same mean. Results from the test shows if the difference is statistically significant or from chance.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=T.TEST(array1,array2,tails,type)
Hover argument names in the table for details.
Output typeNumber
Popularity20 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =T.TEST() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
🧠 🧠 Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
array1 |
Array | Required | The first data set. |
array2 |
Array | Required | The second data set. |
tails |
Number | Required | Specifies the number of distribution tails. If tails = 1, T.TEST uses the one-tailed distribution. If tails = 2, T.TEST uses the two-tailed distribution. |
type |
Number | Required | The kind of t-Test to perform. |
▣ Examples
▦ Data
| Cell | Value |
|---|---|
A2 |
Data 1 |
B2 |
Data 2 |
A3 |
3 |
B3 |
6 |
A4 |
4 |
B4 |
19 |
A5 |
5 |
B5 |
3 |
A6 |
8 |
B6 |
2 |
A7 |
9 |
B7 |
14 |
A8 |
1 |
B8 |
4 |
A9 |
2 |
B9 |
5 |
A10 |
4 |
B10 |
17 |
A11 |
5 |
B11 |
1 |
A12 |
Data 1 |
B12 |
Data 2 |
A13 |
3 |
B13 |
6 |
A14 |
4 |
B14 |
19 |
A15 |
5 |
B15 |
3 |
A16 |
8 |
B16 |
2 |
A17 |
9 |
B17 |
14 |
A18 |
1 |
B18 |
4 |
A19 |
2 |
B19 |
5 |
A20 |
4 |
B20 |
17 |
A21 |
5 |
B21 |
1 |
Probability associated with a Student's paired t-Test, with a two-tailed distribution.
=T.TEST(A2:A10,B2:B10,2,1)
Result:
0.196016
§ Remarks
- If array1 and array2 have a different number of data points, and type = 1 (paired), T.TEST returns the #N/A error value.
- The tails and type arguments are truncated to integers.
- If tails or type is nonnumeric, T.TEST returns the #VALUE! error value.
- If tails is any value other than 1 or 2, T.TEST returns the #NUM! error value.
- T.TEST uses the data in array1 and array2 to compute a non-negative t-statistic. If tails=1, T.TEST returns the probability of a higher value of the t-statistic under the assumption that array1 and array2 are samples from populations with the same mean. The value returned by T.TEST when tails=2 is double that returned when tails=1 and corresponds to the probability of a higher absolute value of the t-statistic under the “same population means” assumption.
✦ Tips
- The tails and type arguments are truncated to integers.
- T.TEST uses the data in array1 and array2 to compute a non-negative t-statistic. If tails=1, T.TEST returns the probability of a higher value of the t-statistic under the assumption that array1 and array2 are samples from populations with the same mean. The value returned by T.TEST when tails=2 is double that returned when tails=1 and corresponds to the probability of a higher absolute value of the t-statistic under the “same population means” assumption.
⚠ Common Errors
#N/A
If array1 and array2 have a different number of data points, and type = 1 (paired), T.TEST returns the #N/A error value.
Fix: Make the two ranges the same size
#VALUE!
If tails or type is nonnumeric, T.TEST returns the #VALUE! error value.
Fix: برای tails و type مقدار عددی وارد کنید.
#NUM!
If tails is any value other than 1 or 2, T.TEST returns the #NUM! error value.
Fix: برای tails فقط ۱ (یک دنباله) یا ۲ (دو دنباله) وارد کنید.
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!