Practice free

VARP function

VARP returns the population variance, used when your data covers the whole group rather than a sample. It is a compatibility function, so use VAR.P in new workbooks.

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

VARP(number1, [number2], ...)

Arguments in [square brackets] are optional.

number1 (required)
A number, range or array (whole population).
number2 (optional)
More values.

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
=VARP({2,4,4,4,5,5,7,9}) 4 Array constant
=VARP(10,"20",TRUE) 60.22222222 Direct args: number, text-number, TRUE
=VARP(5) 0 Single number
=VARP({1,"2",TRUE,3}) 1 Array with text and boolean
=VARP(Data!A1:A8) 4 Range of numbers
=VARP(Data!B1:B8) 155.5555556 Mixed range: num, text-number, TRUE, blank, text, FALSE
=VARP(10,"abc") #VALUE! Direct arg: non-numeric text
=VARP(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

  • Superseded by VAR.P; use that in new workbooks.

Where it works

Excel
VARP is in every version of Excel from 2007 on. Compatibility function: still works in every version, but newer replacements exist.
Google Sheets
Same name, same behaviour for everyday use.

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