# STDEV.P formula generator

> Describe what you need and get a STDEV.P formula for Excel and Google Sheets, run on real data before you copy it. Plus 3 tested STDEV.P examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/stdev-p · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

STDEV.P measures how spread out a set of numbers is when those numbers are the entire population: every employee, every shift, every student in the class.

Describe the task at [STDEV.P formula generator](https://spreadsheetpractice.com/tools/formula-generator/stdev-p) and get a STDEV.P formula for Excel and Google Sheets, tested on real data.

## Tested STDEV.P examples

### Calculate standard deviation

`=STDEV.S(B2:B9)`

Excel. Result on the sample sheet: 1.60. [See it and try it](https://spreadsheetpractice.com/formulas/standard-deviation)

### Calculate the coefficient of variation

`=STDEV.S(B2:B7)/AVERAGE(B2:B7)`

Excel. Result on the sample sheet: 11.1%. [See it and try it](https://spreadsheetpractice.com/formulas/coefficient-of-variation)

### Calculate a z-score

`=(B2-AVERAGE($B$2:$B$9))/STDEV.S($B$2:$B$9)`

Excel. Result on the sample sheet: 8 rows (C2:C9). [See it and try it](https://spreadsheetpractice.com/formulas/calculate-a-z-score)

## Questions

### What does the STDEV.P formula generator do?

You describe the task in plain English, and it writes the formula, using STDEV.P where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does STDEV.P do?

STDEV.P measures how spread out a set of numbers is when those numbers are the entire population: every employee, every shift, every student in the class.

### Can I learn to write STDEV.P formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the STDEV.P function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
