TTEST in WPS Spreadsheet: Choose a t-Test and Read Its p-Value
Select paired, equal-variance or unequal-variance t-tests with explicit tails and independently calculated examples.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer
For paired observations A2:A5 = 10,12,14,16 and B2:B5 = 9,10,13,14, =TTEST(A2:A5,B2:B5,2,1) has an independent expected p-value of 0.013846832989. The third argument chooses two tails; the fourth chooses a paired test. Neither choice should be made simply to get a smaller result.
Syntax and arguments
TTEST(array1,array2,tails,type)
All four arguments are required. array1 and array2 are numeric sample datasets. tails is numeric: 1 for a one-tail result, 2 for two tails. type is numeric: 1 for paired observations, 2 for independent samples with equal-variance assumption, 3 for independent samples with unequal-variance assumption. WPS says tails and type are truncated to integers; enter the exact valid integers rather than relying on truncation.
Paired data must contain corresponding observations of the same units, in matched order. Equal lengths alone do not establish pairing. Independent-sample modes address a different study design. Type 3 is the unequal-variance (Welch) case; do not automatically choose type 2 merely because both samples have the same row count.
Worked worksheet: measurements before and after
Enter this teaching dataset with each row representing one matched unit:
| Unit | Before (A2:A5) | After (B2:B5) |
|---|---|---|
| 1 | 10 | 9 |
| 2 | 12 | 10 |
| 3 | 14 | 13 |
| 4 | 16 | 14 |
Place only the numeric Before and After columns in A2:B5; the Unit labels can go elsewhere. Enter =TTEST(A2:A5,B2:B5,2,1) in D2. The independent expectation is approximately 0.013846832989.
An independent paired calculation uses differences 1,2,1,2. Their mean is 1.5 and sample standard deviation is √(1/3). The t statistic is 1.5/(√(1/3)/√4)=√27≈5.196152422707, with df=3. Twice the upper t tail gives the expected p-value.
This is evidence against the zero-mean-difference null under the model assumptions. It does not measure effect importance, give the probability that the null is true, or establish causation. Four artificial pairs are a transparent arithmetic control, not a recommended study size.
Advanced example: compare the design switches
If those same numeric columns represented independent samples instead, =TTEST(A2:A5,B2:B5,2,2) is independently expected to give 0.425757176345. With type 3, expect 0.425963663573. The tests ask different questions about sampling variability; the much smaller paired result arises from the consistent within-pair differences, not from a superior universal setting.
For these paired data, changing tails to 1 produces the nonnegative-t upper-tail value 0.006923416494 under the documented convention. WPS explicitly describes using a nonnegative t statistic. Therefore the one-tail output does not automatically encode a signed alternative such as “Before is smaller.” Pre-specify direction, inspect the signed mean difference and use a suitable directional testing procedure. Two tails is the introductory choice here.
Troubleshooting
WPS documents #N/A for unequal data-point counts with type=1, #VALUE! for nonnumeric tails or type, and #NUM! when tails is not 1 or 2. The source does not fully specify every error case, so this guide does not invent exact errors for zero-variance or undersized data. Use enough valid observations and check variability before interpreting results.
Misordered pairs, copied headings and differently filtered ranges can change the analysis silently. Keep matched rows together. A large p-value is not proof of equal population means; a small one is not a confidence interval. Legacy naming alone does not establish retirement or numerical equivalence to another application’s T.TEST.
Availability and verification
The official WPS TTEST lesson was checked on October 19, 2026. The captured source does not establish a specific edition or numeric build. This Chinese first-party documentation is not proof of universal English-global, Mac, Linux, web or mobile support. Introduction and retirement versions remain unknown. All numerical results in this guide are independently calculated expectations, not native WPS test results or borrowed Excel outputs. Current GUI access was unavailable; no current-application screenshots or native execution are claimed.
Related guides
AVERAGE, STDEV.S. Browse the WPS function library.