Note: The other languages of the website are Google-translated. Back to English

Excel DVAR function

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


DVAR(database, field, criteria)


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.


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.
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.


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 only a sample of the entire population, you can try the DVAR function to get it done.

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



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.
3. Or use a cell reference as this (E4 is the cell references to the field):

Related Functions

Excel DVARP function
The DVARP function returns the variance for an entire population 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

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

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, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL