FormulaCraft

How to calculate a z-score in Excel and Google Sheets

Topic:RANK & statistical aggregates
Excel & Google Sheets
=(B2-AVERAGE($B$2:$B$6))/STDEV($B$2:$B$6)

Verified example

Computed by a real spreadsheet engine on the sample data below.

NameScore
Alice82
Bob74
Carol91
Dan68
Eve85

=(B2-AVERAGE($B$2:$B$6))/STDEV($B$2:$B$6)0.220192753

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1In an empty column next to your data, click the first data cell row (e.g. C2).
  2. 2Type =(B2-AVERAGE($B$2:$B$6))/STDEV($B$2:$B$6) — lock the range references with $ so they don't shift when you copy down.
  3. 3Press Enter, then copy the formula down for all data rows.
  4. 4A positive z-score means the value is above the mean; negative means below.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What is the difference between STDEV and STDEVP?

STDEV (also STDEV.S) divides by n-1 for a sample; STDEVP (also STDEV.P) divides by n for a full population. Use STDEV unless you have every data point in the population.

Can I z-score multiple columns at once?

Yes — apply the formula column-by-column, using absolute references for each column's own range.

More on RANK & statistical aggregates

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: