DAVERAGE(Database, field, criteria)
DCOUNT(Database, field, criteria)
DCOUNTA(Database, field, criteria)
DGET(Database, field, criteria)
DMAX(Database, field, criteria)
DMIN(Database, field, criteria)
DSUM(Database, field, criteria)
Example:
Note: - Column G shows how the formula has been written in column F.
From the example above, you can see the most common database worksheet functions that are all referring to the database above (rows 5 to 15) but mainly extracting information from the "Rounds" column. The following explains the syntax of the formula.
Database = all the cells (the range) that are used to make up the list of related data. In the example above, each formula references the range B5 to K15 because that is where all the data is. The first row of the database, B5, is the label for each column and is important for the formula to work, as you will see in the criteria explanation.
Field = the column that is used in the formula. As mentioned above, each formula is using the "Rounds" field to provide information. This word is in F1, F5, and can be written in the formula within quotations. For example, DMIN could have been written as '=DMIN(B5:K15, "Rounds", B1:K2)' instead of the reference to F1.
Criteria = the range of cells that contains the conditions specified. I left each cell blank but could have made a condition within the cells B1 to K2. You can use any range for the criteria, as long as it contains at least one column label (this example used "Rounds") and at least one cell below the column label for specifying a condition for the column.
The following is a brief description of each of the Worksheet Functions:
- DAVERAGE: finds the average of all numeric amounts in the selected field that meet the specified criteria.
- DCOUNT: counts all numeric amounts in the selected field that meet the specified criteria.
- DCOUNTA: counts all items in the selected field that meet the specified criteria and are not blank cells.
- DGET: finds the item in the selected field that meets the specified criteria. If two items are in the field, then the #NUM error will be the answer.
- DMAX: finds the maximum of all numeric amounts in the selected field that meet the specified criteria.
- DMIN: finds the minimum of all numeric amounts in the selected field that meet the specified criteria.
- DSUM: finds the total of all numeric amounts in the selected field that meet the specified criteria.
Regards,
JA