VARP function
Returns the variance of an entire population (divides by n). Replaced by VAR.P.
Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)
In every Excel versionWorks in Google Sheets
Syntax
VARP(number1, [number2], ...)| Argument | What it means | |
|---|---|---|
number1 | Required | A number, range or array covering the whole population. |
number2, ... | Optional | Up to 255 numbers or ranges in total. |
Returns: The population variance.
How VARP works
VARP returns the variance when your numbers are the complete population: Σ(x − mean)² / n. Use it for all twelve months of a finished year, every product in a small catalogue, or the full list of a team's players.
It is the square of STDEVP and is always a little smaller than VAR on the same data, because it divides by n instead of n − 1. Text and logical values in ranges are ignored (VARPA counts them).
Compatibility note: VARP is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends VAR.P. VAR.P gives identical results.
Examples
1Variance of a team's goals
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Player | Goals | ||
| 2 | Ali | 4 | 2 | |
| 3 | Bo | 7 | ||
| 4 | Cy | 5 | ||
| 5 | Di | 8 | ||
| 6 | Ed | 6 |
Result: 2
The mean is 6 and the squared deviations are 4, 1, 1, 4 and 0, totalling 10. Divided by n = 5 the population variance is 2.
2VARP vs VAR
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Player | Goals | ||
| 2 | Ali | 4 | 1.25 | |
| 3 | Bo | 7 | ||
| 4 | Cy | 5 | ||
| 5 | Di | 8 | ||
| 6 | Ed | 6 |
Result: 1.25
VAR divides by 4 and VARP by 5, so their ratio is always n/(n − 1) = 5/4 = 1.25 for five values.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#DIV/0! | No numbers in the arguments. | Check the range contents. |
Tips
VARP(range)equalsSTDEVP(range)^2.
Questions
Should I still use VARP?
Only if the workbook must open in Excel 2007 or earlier. Otherwise use VAR.P, which gives the same result and makes the intent clearer to the next person who reads the formula.
Will VARP stop working?
There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.
Google Sheets
VARP also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
VARP in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | VAR |
| Danish | VARIANSP |
| French | VAR.P |
| German | VARIANZEN |
| Italian | VAR.POP |
| Norwegian (Bokmål) | VARIANSP |
| Polish | WARIANCJA.POPUL |
| Russian | ДИСПР |
| Swedish | VARIANSP |
| Turkish | VARS |