Skip to main content
 

Excel DVARP function

Author: Siluvia Last Modified: 2024-09-26

The DVARP function returns the variance for an entire population retrieved from a field (column) that matches the conditions you specify.

showing how to use DVARP function

Syntax

DVARP(database, field, criteria)

Arguments

Database (Required): The range of cells that makes up the database. The first row of the database should be the column headers;
Field (Required): The column you will retrieve the variance from. It can be entered as a column label, index number or a cell reference:
-- Column label: The column label (column header) needs to be entered between double quotation marks, such as “Weight”.
-- Index number (left to right): The number (without quotation marks) that represents the position of the column in the database, from which you will return the sample variance. For example, 1 represents the first column in the database, 2 represents the second column, and so on.
-- Cell reference: A cell references to the field.
Criteria (Required): The range of cells that contains the criteria. The first row of the criteria range should be the column headers.
-- The criteria range must include at least one column header and at least one cell value below the column header for specifying the condition.
-- You can use any range for the criteria argument, but it is not recommended to place the criteria range below the database list, in case you need to add more data to the database in the future.

Remarks

1. The "field" label is not case sensitive.
2. If the "field" or "criteria" is left blank, then #VALUE! is returned.
3. If any column label in the criteria range does not match the column label in the database, a #DIV/0! error value returned.
showing how to use DVARP function
4. To calculate an entire column in a database, just insert a blank row below the column labels in the criteria range.

Return Value

It returns a numeric value representing the variance.

Example

As shown in the screenshot below, to get the variance in the Weight column based on the criteria mentioned in the Criteria table (G5:H6) if the database is the entire population, you can try the DVAR function to get it done.

showing how to use DVARP function

Select a blank cell to output the result, copy or enter the formula below and press the Enter key.

=DVARP(B4:E9,4,G5:H6)

showing how to use DVARP function

Notes:

1. In the formula, the number 4 indicates the fourth column in the database.
2. You can directly type in the column header and enclose it in double-quotes.
=DVAR(B4:E9,"Weight",G5:H6)
3. Or use a cell reference as this (E4 is the cell references to the field):
=DVARP(B4:E9,E4,G5:H6)
4. The field label is not case sensitive.

Related Functions

Excel DVAR function
The DVAR function estimates the variance of a sample retrieved from a field (column) that matches the conditions you specify.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.