Related Function:

The DSTDEVP function calculates the standard deviation of a population based on the entire population 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
field Indicates which column is used in the function

  The field 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. “Area”, “Quarter”, etc
criteria The range of cells that contains the conditions that you specify

  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%   Science 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 =DSTDEVP(A1:E13,”Score”,G1:H2) 8.5% The true standard deviation in science test scores for male students

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

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

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