How To Get Z Score In Excel

8 min read

Understanding how to calculate a Z-score in Excel is a fundamental skill for anyone working with statistical analysis, quality control, or data normalization. This metric allows you to compare values from different distributions, identify outliers, and standardize data for machine learning models. A Z-score, also known as a standard score, tells you how many standard deviations a specific data point sits away from the mean of the dataset. Excel provides multiple pathways to achieve this, ranging from manual formula construction to dedicated statistical functions, making it accessible regardless of your expertise level.

What Is a Z-Score and Why Does It Matter?

Before diving into the mechanics of Excel, it helps to grasp the underlying concept. The Z-score formula is straightforward:

$Z = \frac{(X - \mu)}{\sigma}$

Where:

  • X is the individual data point value.
  • $\mu$ (mu) is the population mean (average).
  • $\sigma$ (sigma) is the population standard deviation.

If the result is positive, the data point is above the mean. 0 means the value is two standard deviations above the average, placing it in roughly the top 2.If negative, it is below the mean. On the flip side, a score of 0 indicates the value is exactly equal to the mean. In practical terms, a Z-score of +2.That's why 5% of a normal distribution. This standardization is crucial when comparing test scores from different exams, financial returns from different asset classes, or manufacturing measurements from different production lines It's one of those things that adds up. No workaround needed..

Method 1: The Manual Formula Approach (Maximum Control)

The most transparent way to get a Z-score in Excel is by building the formula yourself using basic statistical functions. This method works in every version of Excel and gives you full visibility into the calculation logic.

Step 1: Calculate the Mean (Average)

Assume your dataset resides in cells A2:A21. In an empty cell (e.g., D1), enter the AVERAGE function:

=AVERAGE(A2:A21)

This computes $\mu$. Label this cell "Mean" for clarity.

Step 2: Calculate the Standard Deviation

You must choose between two functions depending on whether your data represents an entire population or a sample.

  • Population Standard Deviation (STDEV.P): Use this if your dataset includes every possible observation (e.g., all employees in a company).
  • Sample Standard Deviation (STDEV.S): Use this if your data is a subset of a larger group (e.g., 100 survey responses from a city of millions).

In cell D2, enter:

=STDEV.S(A2:A21)

*(Note: Older Excel versions use STDEV for sample and STDEVP for population. The .S and .P suffixes were introduced in Excel 2010 for consistency.

Step 3: Apply the Z-Score Formula

Now, in cell B2 (next to your first data point in A2), construct the standardization formula. Crucial Step: You must lock the references to the Mean and Standard Deviation cells using absolute references (dollar signs $) so they don't shift when you drag the formula down That alone is useful..

=(A2 - $D$1) / $D$2

Press Enter. Double-click the fill handle (the small square at the bottom-right of cell B2) to copy the formula down the column. You now have a Z-score for every row.

Method 2: Using the STANDARDIZE Function (The Built-in Shortcut)

Excel includes a dedicated function designed specifically for this purpose: STANDARDIZE. It simplifies the syntax and reduces the chance of reference errors.

Syntax

=STANDARDIZE(x, mean, standard_dev)

Implementation

Using the same setup (Data in A2:A21, Mean in D1, StDev in D2), click cell B2 and type:

=STANDARDIZE(A2, $D$1, $D$2)

The arguments map directly to the mathematical formula:

  1. Day to day, mean: The arithmetic mean ($D$1). 2. So x: The value to normalize (A2). On the flip side, 3. standard_dev: The standard deviation ($D$2).

This function is essentially syntactic sugar for the manual calculation, but it improves readability and makes auditing formulas easier for collaborators Took long enough..

Method 3: The Data Analysis ToolPak (Batch Processing)

If you need to generate descriptive statistics—including Z-scores—for multiple columns simultaneously without writing formulas, the Analysis ToolPak add-in is the professional choice Easy to understand, harder to ignore..

Enabling the ToolPak

  1. Go to File > Options > Add-ins.
  2. At the bottom, next to "Manage: Excel Add-ins", click Go.
  3. Check Analysis ToolPak and click OK.

Running Descriptive Statistics

  1. manage to the Data tab on the ribbon. Click Data Analysis (far right).
  2. Select Descriptive Statistics and click OK.
  3. Input Range: Select your data (e.g., $A$1:$A$21). Check "Labels in first row" if you have headers.
  4. Output Range: Choose where results appear (e.g., $D$1).
  5. Check Summary Statistics.
  6. Click OK.

Important Note: The ToolPak outputs a static table of summary stats (Mean, Standard Error, Median, Mode, Standard Deviation, Sample Variance, Kurtosis, Skewness, Range, Minimum, Maximum, Sum, Count). It does not automatically output a column of Z-scores for each row. You must still use the STANDARDIZE function or manual formula referencing the Mean and Standard Deviation values the ToolPak just generated. Even so, this is excellent for verifying your manual calculations instantly The details matter here..

Population vs. Sample: Choosing the Right Standard Deviation

We're talking about the most common pitfall when learning how to get Z-score in Excel. Worth adding: pandSTDEV. The choice between STDEV.S changes the denominator of your equation, directly impacting the magnitude of the Z-score Easy to understand, harder to ignore..

Scenario Function Denominator (N) Use Case
Entire Population STDEV.P N Census data, all transactions in a closed accounting period, all parts in a specific batch.
Sample of Population STDEV.S N - 1 (Bessel's Correction) Survey responses, A/B test groups, quality control samples pulled from a production line.

Why N-1? When estimating the population standard deviation from a sample, dividing by N underestimates the true variability. Dividing by N-1 corrects this bias. If you use STDEV.P on sample data, your Z-scores will be slightly larger (further from zero) than they should be, potentially flagging false outliers Simple, but easy to overlook..

Interpreting Your Results: The Empirical Rule

Once you have your column of Z-scores, interpretation becomes intuitive thanks to the Empirical Rule (68-95-99.7 Rule) for normal distributions:

  • ~68% of data falls between -1 and +1.
  • ~95% of data falls between -2 and +2.
  • ~99.7% of data falls between -3 and +3.

Practical Application: Flagging Outliers

You can create a helper column to automatically flag anomalies. In cell C2:

=IF(ABS(B2) > 3, "Potential Outlier", "Normal")

This uses the `A

Calculating Z‑Scores with the STANDARDIZE Function

Now that you have the mean and standard deviation from the ToolPak, you can turn those summary statistics into a column of Z‑scores. The built‑in STANDARDIZE function does the heavy lifting for you:

=STANDARDIZE(A2, $D$2, $D$3)
  • A2 – the individual data point you want to standardize.
  • $D$2 – absolute reference to the cell containing the mean (e.g., D2).
  • $D$3 – absolute reference to the cell containing the standard deviation (e.g., D3).

By locking the mean and standard‑deviation references with dollar signs, you can copy the formula down the column without losing the anchors. After entering the formula, drag the fill handle down to apply it to every row (or use Ctrl + Enter for an instant array fill) Surprisingly effective..

Automating Outlier Detection

The snippet you saw earlier can be expanded to handle multiple thresholds or to return a numeric severity level instead of a textual label. As an example, to flag mild, moderate, and extreme outliers:

=IF(ABS(B2)>3, "Extreme",
   IF(ABS(B2)>2, "Moderate",
   IF(ABS(B2)>1, "Mild", "Normal")))

Drag this formula down as well. The resulting helper column now provides a quick‑look audit trail: every value is categorized, making it easy to spot patterns or clusters of anomalies The details matter here..

Visualizing Z‑Scores

A simple conditional‑formatting rule can turn the worksheet into a heat map:

  1. Select the Z‑score column (e.g., column B).
  2. Go to Home → Conditional Formatting → Color Scales and choose a diverging palette (e.g., Green‑Yellow‑Red).
  3. For more granular control, create a New Rule → Format only cells that contain → Cell Value → greater than → 3 (red) and another rule for < -3 (blue).

Pair the heat map with a histogram or bell‑curve chart to see how many points sit outside the normal range. Day to day, in Excel, you can overlay a normal distribution curve using the same mean and standard deviation, which instantly shows the theoretical 68‑95‑99. 7 bands.

Extending the Analysis

  • Box‑plots – Use the outlier column to filter data and generate box‑plots that highlight median, quartiles, and any points flagged as outliers.
  • Statistical Tests – Z‑scores are the foundation for hypothesis testing (e.g., one‑sample Z‑test). By feeding the Z‑scores into T.DIST.RT or NORM.S.DIST, you can obtain p‑values directly.
  • Data Cleaning – When you have a large dataset, you might decide to winsorize or trim extreme values based on the Z‑score threshold. Applying the helper column makes it trivial to locate those rows for manual review.

Final Thoughts

Standardizing data with Z‑scores transforms raw numbers into a common language that reveals how far each observation strays from the norm. By leveraging Excel’s Analysis ToolPak for quick summary statistics, the STANDARDIZE function for precise calculations, and simple formulas or conditional formatting for outlier detection, you now have a complete toolkit to diagnose data quality, communicate findings, and proceed with more advanced analyses—all within a familiar spreadsheet environment.

Not the most exciting part, but easily the most useful.

Mastering these steps not only streamlines your current workflow but also builds a reusable framework for future projects, whether you’re evaluating sales performance, monitoring sensor readings, or preparing data for machine‑learning pipelines. With Z‑scores in hand, you’re equipped to turn noisy data into actionable insight.

Still Here?

Out This Week

Based on This

You May Find These Useful

Thank you for reading about How To Get Z Score In Excel. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home