DVARP Function

Basic Description

The Excel Dvarp function calculates the variance (for an entire population), of the values in a field (column) in a database for selected records only. The records to be included in the calculation are defined by a set of one or more user-specified criteria.

Syntax: DVARP( database, field, criteria )

where the arguments are shown in the table below:

database A range of cells containing the database. The top row of the database should specify the field names.
field The field (column) within the database, for which the variance is to be calculated.This can either be a field number, or it can be the field name (ie. the header in the top row of the database) encased in quotes (eg. “Subject”, “Name”, etc)
criteria A range of cells that contain the criteria, to specify which records should be included in the calculation.The range can include one or more criteria, which are presented as a field name in one cell and the condition for that field in the cell below.


Age Name
>8 Amy

Note that the Excel database functions are not case sensitive. So, for example, the criteria =”Name” will be satisfied by cells containing the text “Name” or “name”.


Excel Dvar Function Examples

1 Name Gender Age Subject Score
2 Manjura Female 10 Math 63%
3 Momtaz Female 10 English 78%
4 Sharmin Female 10 Science 39%
5 Monower Male 8 Math 55%
6 Mostofa Male 8 English 71%
7 Sumon Male 8 Science 51%
8 Khandaker Male 9 Math 39%
9 Sayem Male 9 English 52%
10 Mahmud Male 9 Science 48%
11 Moslem Male 9 Math 78%
12 Azwad Male 9 English 69%
13 Arifin Male 9 Science 65%

The following examples are based on the simple database on the right, which stores the examination marks scored by four children in three different subjects.


Example 1

In the example below, the Dvarp function is used to find the variance of scores obtained in Math, by male students. The criteria are specified in cells G1 – H2 and the Dvar formula is shown in cell G3.

1 Subject Gender
2 Math Male
3 =DVARP( A1:E13, “Score”, G1:H2 )


The above Dvarp function calculates the variance of the values in cells E5, E8 & E11, and therefore returns the value 2.6%.


Example 2

In the example below, the Dvarp function is used to find the variance for the Science scores obtained by students over 8 years of age.

1 Subject Age
2 Science >8
3 =DVARP( A1:E13, “Score”, G1:H2 )


The above Dvarp function finds the variance of the values in cells E4, E10 & E13 and so returns the value 1.2%.

Note that, in the above two examples, instead of typing in “Score” for the field argument, we could have simply used the number 5 (to denote the 5th column of the database).

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



clearPost Comment