Related Function:

The DSTDEV function estimates the standard deviation of a population based on a sample by using the numbers in a field (column) of records in a list or database that match conditions that you specify.




Argument Description
database The range of cells that makes up the list or database. The top row of the database should specify the field names
field Indicates which column is used in the function

  This can either be a field number, or can be the field name, i.e. the header in the top row of the database, encased in quotes, e.g. “Gender”, “Subject”, etc.
criteria A range of cells that contain the criteria, to specify which record should be returned

  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, e.g.

Gender Age
Male >10

Note: The criteria supplied beneath each field heading can be either:

  • a numeric value, including an integer, decimal, date, time, or logical value, e.g. 10, 01/01/2010, FALSE
  • a text string, e.g. “Name”, “Tuesday”
  • an expression, e.g. “>10”, “<>0”).

The Excel database functions are not case sensitive. So, for example, the criteria =”Math” will be satisfied by cells containing the text “Math” or “math”.


  A B C D E F G H I
1 Name Gender Age Subject Score   Subject Gender  
2 Amy Female 8 Math 63%   English Male  
3 Amy Female 8 English 78%        
4 Amy Female 8 Science 39%        
5 Bill Male 8 Math 55%        
6 Bill Male English 71%        
7 Bill Male  8 Science 82%        
8 Sue Female 9 Math 79%        
9 Sue Female English 52%        
10 Sue Female Science 48%        
11 Tom Male Math 78%        
12 Tom Male English 69%        
13 Tom Male Science 65%        
15 Formula   Result  
16 =DSTDEV(A1:E13,”Score”,G1:H2) 1.4% The estimated standard deviation in the english test scores of male students

Note: You can also use the following wildcards in text-related criteria arguments:

      ?  –  matches any single character
  *  –  matches any sequence of characters

e.g. the condition “A*e” will match any substring beginning with “A” and ending in “e”.

  • If you do actually want to find the ? or * character, type the ~ symbol before this character in your search.