Practice free

VAR.P function

VAR.P returns the population variance, the average squared distance from the mean when your data is the whole population. The units are squared, so STDEV.P is often easier to interpret.

Example

Read it as a sentence: work out the variance of A1:A8 treating those values as the whole population, which gives 4.

Practice this in the app

Syntax

VAR.P(number1, [number2], ...)

Arguments in [square brackets] are optional.

number1 (required)
First number or range.
number2 (optional)
More numbers or ranges.

Returns: The population variance.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=VAR.P({2,4,4,4,5,5,7,9}) 4 Array constant
=VAR.P(10,"20",TRUE) 60.22222222 Direct args: number, text-number, TRUE
=VAR.P(5) 0 Single number
=VAR.P({1,"2",TRUE,3}) 1 Array with text and boolean
=VAR.P(Data!A1:A8) 4 Range of numbers
=VAR.P(Data!B1:B8) 155.5555556 Mixed range: num, text-number, TRUE, blank, text, FALSE
=VAR.P(10,"abc") #VALUE! Direct arg: non-numeric text
=VAR.P(Data!C1:C5) #N/A Range containing #N/A

The Data sheet these formulas read

A cell that starts with = holds that formula.

Watch out for

  • Use VAR.S for samples.
  • Units are squared, so STDEV.P is often easier to interpret.

Where it works

Excel
VAR.P arrived in Excel 2010. Older versions do not have it.
Google Sheets
Same name, but behaves differently: `VARP`. Sheets has VARP and VAR.P.

Part of Statistical functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .