Excel DVAR Function
How to use the DVAR Function
This Excel tutorial explains how to use the Excel DVAR function with syntax and examples.
The Excel DVAR function returns the variance of a population based on a sample by using the numbers of columns of datatable or database, based on a given conditions.
- The formula =DVAR(D7:G12,"Price",D4:E5) would return 11250 numeric value.
- The formula =DVAR(D7:G12,2,D4:E5) would return 11250 numeric value.
To Get the Sample Variance of columns values based on given Criteria.
The DVAR function returns a Numeric value.
=DVAR(database, field, criteria)
The DVAR function syntax has the following arguments:
- database: Required. The range of cells that makes up the list or database including data headers.
- field: Required. The table header name or index number of header.
- criteria: Required. The range of cells that contains your criteria including data headers.
- The database argument is a range of cells that includes field headers.
- The criteria can include a variety of expressions, including some wildcards.
- The DVAR function supports wildcards in criteria.
- The Criteria can include more than one row.
- Make sure that the criteria range does not overlap the database list.
- The database and criteria ranges must include matching headers.