1. Home
  2. Functions
  3. Database
  4. DVAR

DVAR function

Estimates the variance of a sample from a field of the records that match the criteria.

Syntax

=DVAR(database, field, criteria)

Arguments

ArgumentRequiredDescription
databaseRequiredThe list, with field names in the first row
fieldRequiredThe field name or column number to use
criteriaRequiredA range with field names in the first row and conditions below

How to use DVAR

DVAR takes 3 required arguments. Type =DVAR( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=DVAR(A1:E7, "Yield", A1:A2)Result 16
Data in the sheet
ABCDEFGH
1TreeHeightAgeYieldProfitTree
2Apple182014105Apple
3Pear12121096Pear
4Cherry13149105
5Apple14151075
6Pear98877
7Apple89645

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.