A z-score says how many standard deviations a value sits above or below the mean — turning raw numbers into a common scale you can compare and flag. STANDARDIZE computes it in one step.
(A2 − mean) / stdev. A z of +2 means “two standard deviations above average.”
The example
Test scores standardized (mean 75, stdev 10).
| A | B | |
|---|---|---|
| 1 | Score | Z-score |
| 2 | 95 | +2.0 |
| 3 | 75 | 0.0 |
| 4 | 60 | −1.5 |
The formula
Standardize a value against its distribution:
How it works
The z-score re-centers and re-scales every value:
- Subtract the mean from the value — positive means above average, negative below.
- Divide by the standard deviation — now the unit is “standard deviations,” not the original scale.
STANDARDIZE(x, mean, sd)does both at once. Lock the mean/stdev ranges so every row uses the same distribution.- A z of 0 is exactly average; about 95% of normal data falls between −2 and +2, so |z| > 2 flags an unusual value.
Flag outliers fast: wrap it in a test — =IF(ABS(STANDARDIZE(A2,mean,sd))>2, "Outlier", ""). To turn a z-score back into a percentile, use =NORM.S.DIST(z, TRUE).
Try it: interactive demo
Set a value, mean, and standard deviation.
Variations
Plain arithmetic
Same result, no function:
Outlier flag
Mark |z| over 2:
Z back to percentile
Cumulative normal:
Pitfalls & errors
Lock the mean and stdev. Use absolute references (or precomputed cells) so every value standardizes against the same distribution, not a shifting window.
Assumes a roughly normal shape. The “|z| > 2 is rare” rule of thumb relies on normality; for skewed data, prefer an IQR-based outlier test.
Zero stdev errors. If all values are identical, STDEV is 0 and the formula divides by zero.
Practice workbook
Frequently asked questions
How do I calculate a z-score in Excel?
What counts as an outlier by z-score?
How do I turn a z-score into a percentile?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class