ID EN
#Database

DVARP

Excel Functions

Get population variance for matching records

Syntax

EXCEL
=DVARP(database, field, criteria)

Arguments

Parameter Description
database Database range including headers.
field Field name or index to count.
criteria Criteria range including headers.

Return Value

The calculated variance

Details

The Excel DVARP function calculates the variance of data that represents an entire population, extracted from records matching the given criteria, where values come from a given field. The database argument is a range of cells that includes field headers, field is the name or index of the field to get a max value from, and criteria is a range of cells with headers that match those in database. Using the example above, you can get the variance of heights for the group "Fox" with either of these formulas: The variance for the entire data set, shown in F5, is calculated with the VAR.P function: The criteria can include a variety of expressions, including some wildcards. The table below shows some examples:

Examples

Example 1

Using the example above, you can get the variance of heights for the group "Fox" with either of these formulas:

EXCEL
=DVARP(B7:C13,"Height",B4:C5) // field by name
=DVARP(B7:C13,2,B4:C5) // field by index
Example 2

The variance for the entire data set, shown in F5, is calculated with the VAR.P function:

EXCEL
=VAR.P(C8:C13)

See Also

DCOUNT DCOUNTA DMAX DVAR DSTDEV