STDEV.S, NORM.DIST & T.TEST Walkthroughs in Excel
A practical guide for STAT 101, Business Analytics, and lab courses covering how to compute sample vs. population spread, normal distribution probabilities, and t-test p-values accurately in Microsoft Excel and Google Sheets.
=STDEV.S(A2:A31) | =NORM.DIST(x, mean, sd, TRUE) | =T.TEST(A2:A21, B2:B21, 2, 3)
1. Quick Reference Table of Core Excel Statistical Functions
| Task | Exact Excel Formula | What It Returns |
|---|---|---|
| Sample Standard Deviation (s) | =STDEV.S(A2:A31) |
Uses n − 1 in the denominator (default for almost all lab & survey data). |
| Population Standard Deviation (σ) | =STDEV.P(A2:A31) |
Uses N in the denominator (only when you have every member of the population). |
Left-Tail Normal Area P(X ≤ x) |
=NORM.DIST(x, mean, sd, TRUE) |
Cumulative probability to the left of x. |
Right-Tail Normal Area P(X ≥ x) |
=1 - NORM.DIST(x, mean, sd, TRUE) |
Cumulative probability to the right of x. |
Between Area P(a ≤ X ≤ b) |
=NORM.DIST(b, m, s, TRUE) - NORM.DIST(a, m, s, TRUE) |
Probability strictly between lower bound a and upper bound b. |
| Inverse Normal (Percentile → x) | =NORM.INV(p, mean, sd) |
Cutoff value x whose left-tail area equals p (e.g., 0.90 for 90th percentile). |
| T-Test P-Value | =T.TEST(array1, array2, tails, type) |
Direct p-value (not the t-statistic!) comparing two groups. |
2. Step-by-Step Worked Examples
Example A: Sample vs. Population Standard Deviation
Dataset in cells A2:A7: 72, 78, 81, 85, 89, 93 (quiz scores from 6 randomly chosen students in a 200-student lecture).
=AVERAGE(A2:A7)returns 83.00.=STDEV.S(A2:A7)returns 7.563 (correct, because 6 students are a sample of the lecture).=STDEV.P(A2:A7)returns 6.904 (smaller because it divides by 6 instead of 5; only valid if all 6 students were the entire population).
Example B: Normal Probabilities & Percentiles with NORM.DIST / NORM.INV
Scenario: Exam scores follow Normal(μ = 75, σ = 8).
- Probability a student scores below 83:
=NORM.DIST(83, 75, 8, TRUE)→ 0.8413 (84.13%). - Probability a student scores above 90:
=1 - NORM.DIST(90, 75, 8, TRUE)→ 0.0304 (3.04%). - Probability between 70 and 88:
=NORM.DIST(88, 75, 8, TRUE) - NORM.DIST(70, 75, 8, TRUE)→ 0.6820 (68.20%). - Minimum score for top 5% (95th percentile):
=NORM.INV(0.95, 75, 8)→ 88.16.
Example C: Choosing the Right Arguments for T.TEST(array1, array2, tails, type)
The fourth argument (type) is where most spreadsheet errors happen. Match your experimental design carefully:
type Code |
Test Name | When to Use It |
|---|---|---|
| 1 | Paired t-test | Same subjects measured twice (Before vs. After) or matched pairs; both columns must have the exact same number of rows. |
| 2 | Two-sample equal variance (pooled) | Two independent groups only when you have strong reason to assume equal population variances. |
| 3 | Two-sample unequal variance (Welch’s t-test) | Recommended default for two independent groups (handles unequal sample sizes and unequal spreads safely). |
Example: Group A (Control, A2:A16) vs. Group B (New Study Method, B2:B18), testing whether the means differ in either direction. Enter =T.TEST(A2:A16, B2:B18, 2, 3). If Excel returns 0.024, since p = 0.024 < 0.05, you reject H₀ and conclude there is statistically significant evidence of a difference in mean scores.
NORM.DIST to FALSE returns the curve height (PDF), NOT probability—always use TRUE for area/probability. (2) T.TEST returns the p-value directly, not the t-statistic! If your lab report requires both t and degrees of freedom, use Data → Data Analysis → t-Test: Two-Sample Assuming Unequal Variances. (3) Passing unequal-length ranges into type = 1 (paired) triggers #N/A.
Frequently Asked Questions
What is the difference between STDEV and STDEV.S in Excel?
STDEV.S is the modern replacement for legacy STDEV (both divide by n − 1 and return identical results). Using STDEV.S and STDEV.P makes your spreadsheet unambiguous when graded or audited.
How do I handle blank cells or text inside a STDEV.S or T.TEST range?
Both STDEV.S and T.TEST automatically ignore empty cells and text labels—however, a 0 typed in place of missing data will be included and distort your mean, standard deviation, and p-value. Always leave missing observations truly blank.
When should I choose 1-tailed vs. 2-tailed in T.TEST?
Default to tails = 2 unless your research hypothesis specified a single direction before looking at the data. Remember that a 1-tailed p-value is simply half the 2-tailed p-value when the sample difference lies in the predicted direction.