Averages the values in a field (column) of records in a list or database that match conditions you specify.
Syntax
DAVERAGE(database,field,criteria)
Database is the range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
Field indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
Criteria is the range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Because the equal sign is used to indicate a formula when you type text or a value in a cell, Microsoft Excel evaluates what you type; however, this may cause unexpected filter results. To indicate an equality comparison operator for either text or a value, type the criteria as a string expression in the appropriate cell in the criteria range:
=''=entry''
Where entry is the text or value you want to find. For example:
What you type in the cell
What Excel evaluates and displays
="=Davolio"
=Davolio
="=3000"
=3000
When filtering text data, Excel does not distinguish between uppercase and lowercase characters. However, you can use a formula to perform a case-sensitive search. For an example, see Filtering for text by using a case-sensitive search.
Type one or more characters without an equal sign (=) to find rows with a text value in a column that begin with those characters. For example, if you type the text Dav as a criterion, Excel finds "Davolio," "David," and "Davis."
Because you are using a formula, enter the formula as you normally would, and do not type the expression in the following way:
=''=entry''
Do not use a column label for criteria labels; either keep the criteria labels blank or use a label that is not a column label in the range (in the examples below, Calculated Average and Exact Match).
If you use a column label in the formula instead of a relative cell reference or a range name, Excel displays an error value such as #NAME? or #VALUE! in the cell that contains the criterion. You can ignore this error because it does not affect how the range is filtered.
You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying the condition.
For example, if the range G1:G2 contains the column label Income in G1 and the amount 10,000 in G2, you could define the range as MatchIncome and use that name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place the criteria range below the list. If you add more information to the list, the new information is added to the first row below the list. If the row below the list is not blank, Microsoft Excel cannot add the new information.
Make sure the criteria range does not overlap the list.
To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.
Example
The example may be easier to understand if you copy it to a blank worksheet.
In the worksheet, select cell A1, and press CTRL+V.
To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
1
2
3
4
5
6
7
8
9
10
A
B
C
D
E
F
Tree
Height
Age
Yield
Profit
Height
="=Apple"
>10
<16
="=Pear"
Tree
Height
Age
Yield
Profit
Apple
18
20
14
105.00
Pear
12
12
10
96.00
Cherry
13
14
9
105.00
Apple
14
15
10
75.00
Pear
9
8
8
76.80
Apple
8
9
6
45.00
Formula
Description (Result)
=DCOUNT(A4:E10,"Age",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers. (1)
=DCOUNTA(A4:E10,"Profit",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Profit fields in those records are not blank. (1)
=DMAX(A4:E10,"Profit",A1:A3)
The maximum profit of apple and pear trees. (105)
=DMIN(A4:E10,"Profit",A1:B2)
The minimum profit of apple trees over 10 in height. (75)
=DSUM(A4:E10,"Profit",A1:A2)
The total profit from apple trees. (225)
=DSUM(A4:E10,"Profit",A1:F2)
The total profit from apple trees with a height between 10 and 16. (75)
=DPRODUCT(A4:E10,"Yield",A1:B2)
The product of the yields from apple trees with a height greater than 10. (140)
=DAVERAGE(A4:E10,"Yield",A1:B2)
The average yield of apple trees over 10 feet in height. (12)
=DAVERAGE(A4:E10,3,A4:E10)
The average age of all trees in the database. (13)
=DSTDEV(A4:E10,"Yield",A1:A3)
The estimated standard deviation in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (2.97)
=DSTDEVP(A4:E10,"Yield",A1:A3)
The true standard deviation in the yield of apple and pear trees if the data in the database is the entire population. (2.65)
=DVAR(A4:E10,"Yield",A1:A3)
The estimated variance in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (8.8)
=DVARP(A4:E10,"Yield",A1:A3)
The true variance in the yield of apple and pear trees if the data in the database is the entire orchard population. ( 7.04)
=DGET(A4:E10,"Yield",A1:A3)
Returns the #NUM! error value because more than one record meets the criteria.
Counts the cells that contain numbers in a field (column) of records in a list or database that match conditions that you specify.
The field argument is optional. If field is omitted, DCOUNT counts all records in the database that match the criteria.
Syntax
DCOUNT(database,field,criteria)
Database is the range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
Field indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
Criteria is the range of cells that contains the conditions that you specify. You can use any range for the criteria argument, as long as the argument includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Because the equal sign is used to indicate a formula when you type text or a value in a cell, Microsoft Excel evaluates what you type; however, this may cause unexpected filter results. To indicate an equality comparison operator for either text or a value, type the criteria as a string expression in the appropriate cell in the criteria range:
=''=entry''
Where entry is the text or value you want to find. For example:
What you type in the cell
What Excel evaluates and displays
="=Davolio"
=Davolio
="=3000"
=3000
When filtering text data, Excel does not distinguish between uppercase and lowercase characters. However, you can use a formula to perform a case-sensitive search. For an example, see Filtering for text by using a case-sensitive search.
Type one or more characters without an equal sign (=) to find rows with a text value in a column that begin with those characters. For example, if you type the text Dav as a criterion, Excel finds "Davolio," "David," and "Davis."
Because you are using a formula, enter the formula as you normally would, and do not type the expression in the following way:
=''=entry''
Do not use a column label for criteria labels; either keep the criteria labels blank or use a label that is not a column label in the range (in the examples below, Calculated Average and Exact Match).
If you use a column label in the formula instead of a relative cell reference or a range name, Excel displays an error value such as #NAME? or #VALUE! in the cell that contains the criterion. You can ignore this error because it does not affect how the range is filtered.
You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying the condition.
For example, if the range G1:G2 contains the column label Income in G1 and the amount $10,000 in G2, you could define the range as MatchIncome and use that name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place the criteria range below the list. If you add more information to the list, the new information is added to the first row below the list. If the row below the list is not blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.
Example
The example may be easier to understand if you copy it to a blank worksheet.
In the worksheet, select cell A1, and press CTRL+V.
To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
1
2
3
4
5
6
7
8
9
10
A
B
C
D
E
F
Tree
Height
Age
Yield
Profit
Height
="=Apple"
>10
<16
="=Pear"
Tree
Height
Age
Yield
Profit
Apple
18
20
14
105.00
Pear
12
12
10
96.00
Cherry
13
14
9
105.00
Apple
14
15
10
75.00
Pear
9
8
8
76.80
Apple
8
9
6
45.00
Formula
Description (Result)
=DCOUNT(A4:E10,"Age",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers. (1)
=DCOUNTA(A4:E10,"Profit",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Profit fields in those records are not blank. (1)
=DMAX(A4:E10,"Profit",A1:A3)
The maximum profit of apple and pear trees. (105)
=DMIN(A4:E10,"Profit",A1:B2)
The minimum profit of apple trees over 10 in height. (75)
=DSUM(A4:E10,"Profit",A1:A2)
The total profit from apple trees. (225)
=DSUM(A4:E10,"Profit",A1:F2)
The total profit from apple trees with a height between 10 and 16. (75)
=DPRODUCT(A4:E10,"Yield",A1:B2)
The product of the yields from apple trees with a height greater than 10. (140)
=DAVERAGE(A4:E10,"Yield",A1:B2)
The average yield of apple trees over 10 feet in height. (12)
=DAVERAGE(A4:E10,3,A4:E10)
The average age of all trees in the database. (13)
=DSTDEV(A4:E10,"Yield",A1:A3)
The estimated standard deviation in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (2.97)
=DSTDEVP(A4:E10,"Yield",A1:A3)
The true standard deviation in the yield of apple and pear trees if the data in the database is the entire population. (2.65)
=DVAR(A4:E10,"Yield",A1:A3)
The estimated variance in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (8.8)
=DVARP(A4:E10,"Yield",A1:A3)
The true variance in the yield of apple and pear trees if the data in the database is the entire orchard population. ( 7.04)
=DGET(A4:E10,"Yield",A1:A3)
Returns the #NUM! error value because more than one record meets the criteria.
Counts the nonblank cells in a field (column) of records in a list or database that match conditions that you specify.
The field argument is optional. If field is omitted, DCOUNTA counts all records in the database that match the criteria.
Syntax
DCOUNTA(database,field,criteria)
Database is the range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
Field indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
Criteria is the range of cells that contains the conditions that you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Because the equal sign is used to indicate a formula when you type text or a value in a cell, Microsoft Excel evaluates what you type; however, this may cause unexpected filter results. To indicate an equality comparison operator for either text or a value, type the criteria as a string expression in the appropriate cell in the criteria range:
=''=entry''
Where entry is the text or value you want to find. For example:
What you type in the cell
What Excel evaluates and displays
="=Davolio"
=Davolio
="=3000"
=3000
When filtering text data, Excel does not distinguish between uppercase and lowercase characters. However, you can use a formula to perform a case-sensitive search. For an example, see Filtering for text by using a case-sensitive search.
Type one or more characters without an equal sign (=) to find rows with a text value in a column that begin with those characters. For example, if you type the text Dav as a criterion, Excel finds "Davolio," "David," and "Davis."
Because you are using a formula, enter the formula as you normally would, and do not type the expression in the following way:
=''=entry''
Do not use a column label for criteria labels; either keep the criteria labels blank or use a label that is not a column label in the range (in the examples below, Calculated Average and Exact Match).
If you use a column label in the formula instead of a relative cell reference or a range name, Excel displays an error value such as #NAME? or #VALUE! in the cell that contains the criterion. You can ignore this error because it does not affect how the range is filtered.
You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying the condition.
For example, if the range G1:G2 contains the column label Income in G1 and the amount $10,000 in G2, you could define the range as MatchIncome and use that name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place the criteria range below the list. If you add more information to the list, the new information is added to the first row below the list. If the row below the list is not blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.
Example
The example may be easier to understand if you copy it to a blank worksheet.
In the worksheet, select cell A1, and press CTRL+V.
To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
1
2
3
4
5
6
7
8
9
10
A
B
C
D
E
F
Tree
Height
Age
Yield
Profit
Height
="=Apple"
>10
<16
="=Pear"
Tree
Height
Age
Yield
Profit
Apple
18
20
14
105.00
Pear
12
12
10
96.00
Cherry
13
14
9
105.00
Apple
14
15
10
75.00
Pear
9
8
8
76.80
Apple
8
9
6
45.00
Formula
Description (Result)
=DCOUNT(A4:E10,"Age",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers. (1)
=DCOUNTA(A4:E10,"Profit",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Profit fields in those records are not blank. (1)
=DMAX(A4:E10,"Profit",A1:A3)
The maximum profit of apple and pear trees. (105)
=DMIN(A4:E10,"Profit",A1:B2)
The minimum profit of apple trees over 10 in height. (75)
=DSUM(A4:E10,"Profit",A1:A2)
The total profit from apple trees. (225)
=DSUM(A4:E10,"Profit",A1:F2)
The total profit from apple trees with a height between 10 and 16. (75)
=DPRODUCT(A4:E10,"Yield",A1:B2)
The product of the yields from apple trees with a height greater than 10. (140)
=DAVERAGE(A4:E10,"Yield",A1:B2)
The average yield of apple trees over 10 feet in height. (12)
=DAVERAGE(A4:E10,3,A4:E10)
The average age of all trees in the database. (13)
=DSTDEV(A4:E10,"Yield",A1:A3)
The estimated standard deviation in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (2.97)
=DSTDEVP(A4:E10,"Yield",A1:A3)
The true standard deviation in the yield of apple and pear trees if the data in the database is the entire population. (2.65)
=DVAR(A4:E10,"Yield",A1:A3)
The estimated variance in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (8.8)
=DVARP(A4:E10,"Yield",A1:A3)
The true variance in the yield of apple and pear trees if the data in the database is the entire orchard population. ( 7.04)
=DGET(A4:E10,"Yield",A1:A3)
Returns the #NUM! error value because more than one record meets the criteria.
Extracts a single value from a column of a list or database that matches conditions that you specify.
Syntax
DGET(database,field,criteria)
Database is the range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
Field indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
Criteria is the range of cells that contains the conditions that you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Because the equal sign is used to indicate a formula when you type text or a value in a cell, Microsoft Excel evaluates what you type; however, this may cause unexpected filter results. To indicate an equality comparison operator for either text or a value, type the criteria as a string expression in the appropriate cell in the criteria range:
=''=entry''
Where entry is the text or value you want to find. For example:
What you type in the cell
What Excel evaluates and displays
="=Davolio"
=Davolio
="=3000"
=3000
When filtering text data, Excel does not distinguish between uppercase and lowercase characters. However, you can use a formula to perform a case-sensitive search. For an example, see Filtering for text by using a case-sensitive search.
Type one or more characters without an equal sign (=) to find rows with a text value in a column that begin with those characters. For example, if you type the text Dav as a criterion, Excel finds "Davolio," "David," and "Davis."
Because you are using a formula, enter the formula as you normally would, and do not type the expression in the following way:
=''=entry''
Do not use a column label for criteria labels; either keep the criteria labels blank or use a label that is not a column label in the range (in the examples below, Calculated Average and Exact Match).
If you use a column label in the formula instead of a relative cell reference or a range name, Excel displays an error value such as #NAME? or #VALUE! in the cell that contains the criterion. You can ignore this error because it does not affect how the range is filtered.
If no record matches the criteria, DGET returns the #VALUE! error value.
If more than one record matches the criteria, DGET returns the #NUM! error value.
You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying the condition.
For example, if the range G1:G2 contains the column label Income in G1 and the amount $10,000 in G2, you could define the range as MatchIncome and use that name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place the criteria range below the list. If you add more information to the list, the new information is added to the first row below the list. If the row below the list is not blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.
Example
The example may be easier to understand if you copy it to a blank worksheet.
In the worksheet, select cell A1, and press CTRL+V.
To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
1
2
3
4
5
6
7
8
9
10
A
B
C
D
E
F
Tree
Height
Age
Yield
Profit
Height
="=Apple"
>10
<16
="=Pear"
Tree
Height
Age
Yield
Profit
Apple
18
20
14
105.00
Pear
12
12
10
96.00
Cherry
13
14
9
105.00
Apple
14
15
10
75.00
Pear
9
8
8
76.80
Apple
8
9
6
45.00
Formula
Description (Result)
=DCOUNT(A4:E10,"Age",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers. (1)
=DCOUNTA(A4:E10,"Profit",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Profit fields in those records are not blank. (1)
=DMAX(A4:E10,"Profit",A1:A3)
The maximum profit of apple and pear trees. (105)
=DMIN(A4:E10,"Profit",A1:B2)
The minimum profit of apple trees over 10 in height. (75)
=DSUM(A4:E10,"Profit",A1:A2)
The total profit from apple trees. (225)
=DSUM(A4:E10,"Profit",A1:F2)
The total profit from apple trees with a height between 10 and 16. (75)
=DPRODUCT(A4:E10,"Yield",A1:B2)
The product of the yields from apple trees with a height greater than 10. (140)
=DAVERAGE(A4:E10,"Yield",A1:B2)
The average yield of apple trees over 10 feet in height. (12)
=DAVERAGE(A4:E10,3,A4:E10)
The average age of all trees in the database. (13)
=DSTDEV(A4:E10,"Yield",A1:A3)
The estimated standard deviation in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (2.97)
=DSTDEVP(A4:E10,"Yield",A1:A3)
The true standard deviation in the yield of apple and pear trees if the data in the database is the entire population. (2.65)
=DVAR(A4:E10,"Yield",A1:A3)
The estimated variance in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (8.8)
=DVARP(A4:E10,"Yield",A1:A3)
The true variance in the yield of apple and pear trees if the data in the database is the entire orchard population. ( 7.04)
=DGET(A4:E10,"Yield",A1:A3)
Returns the #NUM! error value because more than one record meets the criteria.
Returns the largest number in a field (column) of records in a list or database that matches conditions you that specify.
Syntax
DMAX(database,field,criteria)
Database is the range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
Field indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
Criteria is the range of cells that contains the conditions that you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Because the equal sign is used to indicate a formula when you type text or a value in a cell, Microsoft Excel evaluates what you type; however, this may cause unexpected filter results. To indicate an equality comparison operator for either text or a value, type the criteria as a string expression in the appropriate cell in the criteria range:
=''=entry''
Where entry is the text or value you want to find. For example:
What you type in the cell
What Excel evaluates and displays
="=Davolio"
=Davolio
="=3000"
=3000
When filtering text data, Excel does not distinguish between uppercase and lowercase characters. However, you can use a formula to perform a case-sensitive search. For an example, see Filtering for text by using a case-sensitive search.
Type one or more characters without an equal sign (=) to find rows with a text value in a column that begin with those characters. For example, if you type the text Dav as a criterion, Excel finds "Davolio," "David," and "Davis."
Because you are using a formula, enter the formula as you normally would, and do not type the expression in the following way:
=''=entry''
Do not use a column label for criteria labels; either keep the criteria labels blank or use a label that is not a column label in the range (in the examples below, Calculated Average and Exact Match).
If you use a column label in the formula instead of a relative cell reference or a range name, Excel displays an error value such as #NAME? or #VALUE! in the cell that contains the criterion. You can ignore this error because it does not affect how the range is filtered.
You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying the condition.
For example, if the range G1:G2 contains the column label Income in G1 and the amount $10,000 in G2, you could define the range as MatchIncome and use that name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place the criteria range below the list. If you add more information to the list, the new information is added to the first row below the list. If the row below the list is not blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.
Example
The example may be easier to understand if you copy it to a blank worksheet.
In the worksheet, select cell A1, and press CTRL+V.
To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
1
2
3
4
5
6
7
8
9
10
A
B
C
D
E
F
Tree
Height
Age
Yield
Profit
Height
="=Apple"
>10
<16
="=Pear"
Tree
Height
Age
Yield
Profit
Apple
18
20
14
105.00
Pear
12
12
10
96.00
Cherry
13
14
9
105.00
Apple
14
15
10
75.00
Pear
9
8
8
76.80
Apple
8
9
6
45.00
Formula
Description (Result)
=DCOUNT(A4:E10,"Age",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers. (1)
=DCOUNTA(A4:E10,"Profit",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Profit fields in those records are not blank. (1)
=DMAX(A4:E10,"Profit",A1:A3)
The maximum profit of apple and pear trees. (105)
=DMIN(A4:E10,"Profit",A1:B2)
The minimum profit of apple trees over 10 in height. (75)
=DSUM(A4:E10,"Profit",A1:A2)
The total profit from apple trees. (225)
=DSUM(A4:E10,"Profit",A1:F2)
The total profit from apple trees with a height between 10 and 16. (75)
=DPRODUCT(A4:E10,"Yield",A1:B2)
The product of the yields from apple trees with a height greater than 10. (140)
=DAVERAGE(A4:E10,"Yield",A1:B2)
The average yield of apple trees over 10 feet in height. (12)
=DAVERAGE(A4:E10,3,A4:E10)
The average age of all trees in the database. (13)
=DSTDEV(A4:E10,"Yield",A1:A3)
The estimated standard deviation in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (2.97)
=DSTDEVP(A4:E10,"Yield",A1:A3)
The true standard deviation in the yield of apple and pear trees if the data in the database is the entire population. (2.65)
=DVAR(A4:E10,"Yield",A1:A3)
The estimated variance in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (8.8)
=DVARP(A4:E10,"Yield",A1:A3)
The true variance in the yield of apple and pear trees if the data in the database is the entire orchard population. ( 7.04)
=DGET(A4:E10,"Yield",A1:A3)
Returns the #NUM! error value because more than one record meets the criteria.
Returns the smallest number in a field (column) of records in a list or database that matches conditions that you specify.
Syntax
DMIN(database,field,criteria)
Database is the range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
Field indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
Criteria is the range of cells that contains the conditions that you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Because the equal sign is used to indicate a formula when you type text or a value in a cell, Microsoft Excel evaluates what you type; however, this may cause unexpected filter results. To indicate an equality comparison operator for either text or a value, type the criteria as a string expression in the appropriate cell in the criteria range:
=''=entry''
Where entry is the text or value you want to find. For example:
What you type in the cell
What Excel evaluates and displays
="=Davolio"
=Davolio
="=3000"
=3000
When filtering text data, Excel does not distinguish between uppercase and lowercase characters. However, you can use a formula to perform a case-sensitive search. For an example, see Filtering for text by using a case-sensitive search.
Type one or more characters without an equal sign (=) to find rows with a text value in a column that begin with those characters. For example, if you type the text Dav as a criterion, Excel finds "Davolio," "David," and "Davis."
Because you are using a formula, enter the formula as you normally would, and do not type the expression in the following way:
=''=entry''
Do not use a column label for criteria labels; either keep the criteria labels blank or use a label that is not a column label in the range (in the examples below, Calculated Average and Exact Match).
If you use a column label in the formula instead of a relative cell reference or a range name, Excel displays an error value such as #NAME? or #VALUE! in the cell that contains the criterion. You can ignore this error because it does not affect how the range is filtered.
You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying the condition.
For example, if the range G1:G2 contains the column label Income in G1 and the amount $10,000 in G2, you could define the range as MatchIncome and use that name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place the criteria range below the list. If you add more information to the list, the new information is added to the first row below the list. If the row below the list is not blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.
Example
The example may be easier to understand if you copy it to a blank worksheet.
In the worksheet, select cell A1, and press CTRL+V.
To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
1
2
3
4
5
6
7
8
9
10
A
B
C
D
E
F
Tree
Height
Age
Yield
Profit
Height
="=Apple"
>10
<16
="=Pear"
Tree
Height
Age
Yield
Profit
Apple
18
20
14
105.00
Pear
12
12
10
96.00
Cherry
13
14
9
105.00
Apple
14
15
10
75.00
Pear
9
8
8
76.80
Apple
8
9
6
45.00
Formula
Description (Result)
=DCOUNT(A4:E10,"Age",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers. (1)
=DCOUNTA(A4:E10,"Profit",A1:F2)
This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Profit fields in those records are not blank. (1)
=DMAX(A4:E10,"Profit",A1:A3)
The maximum profit of apple and pear trees. (105)
=DMIN(A4:E10,"Profit",A1:B2)
The minimum profit of apple trees over 10 in height. (75)
=DSUM(A4:E10,"Profit",A1:A2)
The total profit from apple trees. (225)
=DSUM(A4:E10,"Profit",A1:F2)
The total profit from apple trees with a height between 10 and 16. (75)
=DPRODUCT(A4:E10,"Yield",A1:B2)
The product of the yields from apple trees with a height greater than 10. (140)
=DAVERAGE(A4:E10,"Yield",A1:B2)
The average yield of apple trees over 10 feet in height. (12)
=DAVERAGE(A4:E10,3,A4:E10)
The average age of all trees in the database. (13)
=DSTDEV(A4:E10,"Yield",A1:A3)
The estimated standard deviation in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (2.97)
=DSTDEVP(A4:E10,"Yield",A1:A3)
The true standard deviation in the yield of apple and pear trees if the data in the database is the entire population. (2.65)
=DVAR(A4:E10,"Yield",A1:A3)
The estimated variance in the yield of apple and pear trees if the data in the database is only a sample of the total orchard population. (8.8)
=DVARP(A4:E10,"Yield",A1:A3)
The true variance in the yield of apple and pear trees if the data in the database is the entire orchard population. ( 7.04)
=DGET(A4:E10,"Yield",A1:A3)
Returns the #NUM! error value because more than one record meets the criteria.