STDEVP in Google Sheets: Step-by-Step Guide
In this article
STDEVP in Google Sheets calculates the population standard deviation of a dataset — the spread of values when your data represents the entire group you care about, not just a sample. The syntax is =STDEVP(value1, [value2, ...]) or =STDEVP(range). If you are analyzing a sample and want to estimate the larger population's spread, use STDEV or STDEV.S instead. This guide walks through using STDEVP correctly, avoiding the most common errors, and interpreting the result.
What You'll Need
- A Google account with access to Google Sheets (sheets.google.com or the Sheets mobile app).
- A dataset containing at least two numeric values. STDEVP requires numbers; text, blanks, and logical values are ignored in ranges but can cause errors if typed directly as arguments.
- Basic familiarity with entering formulas (starting with =) and selecting cell ranges.
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com, open the file from Google Drive, or launch the Sheets app on your phone or tablet. The steps below work on both desktop and mobile; the formula is identical, though the mobile formula bar is accessed by tapping the cell and then the formula input area.
- Enter your data in a single column or row. For example, put numbers in A2 through A11. Keep the range contiguous — no blank rows in the middle — so the function reads every value. If your data has headers in row 1, leave them out of the range.
- Click an empty cell where you want the result. Choose a cell outside your data range, such as B2 or D1, so the result does not overwrite anything.
- Type the formula. Start with an equals sign, then the function name and an opening parenthesis: =STDEVP(. Google Sheets will show a tooltip with the expected arguments as you type.
- Select the range or type it. Drag over A2:A11, or type A2:A11. You can also enter individual values separated by commas, like =STDEVP(4, 8, 15, 16, 23, 42). Close the parenthesis and press Enter (or the checkmark on mobile).
- Read the result. The cell displays the population standard deviation. For the set 4, 8, 15, 16, 23, 42, STDEVP returns approximately 12.42. A smaller result means values cluster near the mean; a larger result means they are more spread out.
- Format if needed. Select the result cell and use the toolbar's decimal place buttons to show more or fewer digits. The underlying value is unchanged by formatting.
- Copy the formula down or across if analyzing multiple groups. Use relative references (A2:A11) and drag the fill handle, or use absolute references ($A$2:$A$11) if the range should stay fixed. For separate groups, place each group's range in its own STDEVP formula.
Common Mistakes
- Using STDEVP on a sample. If your data is a subset of a larger population, STDEVP will underestimate the true spread. Use STDEV or STDEV.S for samples. The difference matters most with small datasets.
- Including text or blanks in a typed argument list. STDEVP ignores text and blanks inside a range, but if you type "N/A" directly as an argument, it returns an error. Keep ranges clean or use IFERROR around the formula.
- Referencing a range with errors. If any cell in the range contains #DIV/0!, #VALUE!, or similar, STDEVP returns that error. Fix or remove error cells first.
- Mixing STDEVP and STDEV results. The two produce different numbers. Label your output clearly so readers know which one you used.
- Forgetting that STDEVP needs at least one numeric value. An empty range or a range with no numbers returns #DIV/0!.
Tips
- Use STDEVP when you have the full set — for example, all test scores in one class, all daily temperatures for a month you are describing completely, or every product's price in a catalog.
- Pair STDEVP with AVERAGE to describe a distribution: =AVERAGE(A2:A11) and =STDEVP(A2:A11) together tell you the center and spread.
- For a quick visual check, chart the data as a column or scatter chart; a wide spread in the chart should match a larger STDEVP result.
- Name your ranges (Data > Named ranges) to make formulas readable, e.g., =STDEVP(Scores).
- If you need to exclude zeros or outliers, use FILTER inside the formula, such as =STDEVP(FILTER(A2:A11, A2:A11<>0)), but document why you excluded them.
Troubleshooting
If STDEVP returns an error, check these in order:
- #DIV/0! — The range contains no numeric values. Verify the range covers the data and that cells are formatted as numbers, not text. A number stored as text (often left-aligned) is ignored. Re-enter it or use VALUE to convert.
- #VALUE! — A typed argument is not a number (for example, a word in quotes). Remove it or reference a cell instead.
- #NAME? — The function name is misspelled. It is STDEVP, not STDEV.P (though STDEV.P also works in Sheets as an alias for the sample version — check which you need).
- #REF! — The range reference points to deleted cells or an invalid sheet name. Re-select the range.
- Unexpectedly large or small result — Confirm you did not include header text, dates, or a subtotal row in the range. Also confirm you meant population, not sample, standard deviation.
- Formula shows as text — The cell is formatted as plain text. Change the format to Automatic or Number, then re-enter the formula.
If none of these fix it, copy the formula to a new sheet with a small test range (e.g., 1, 2, 3) to isolate whether the issue is the formula or the data.
Frequently Asked Questions
What is the difference between STDEVP and STDEV in Google Sheets?
STDEVP calculates the population standard deviation, dividing by n. STDEV (and STDEV.S) calculates the sample standard deviation, dividing by n−1. Use STDEVP when your data is the entire population; use STDEV when it is a sample.
Does STDEVP ignore text and blank cells?
Yes, inside a range, text, blanks, and logical values are ignored. Only numbers are used. Typed arguments that are text will cause an error.
Can STDEVP handle multiple ranges?
Yes. You can pass several ranges or values separated by commas, such as =STDEVP(A2:A11, C2:C11). All numeric values across the arguments are combined into one population.
Why does STDEVP return #DIV/0!?
That error means no numeric values were found in the supplied arguments. Check that the range contains numbers and that they are not formatted as text.
Is STDEVP available on the Google Sheets mobile app?
Yes. The function works the same on Android and iOS. Tap the cell, tap the formula bar, and type the formula as you would on desktop.
Should I use STDEVP for a small sample?
No. For small samples, STDEVP underestimates variability. Use STDEV or STDEV.S, which correct for sample size.