# Database Functions Excel

Database functions in Excel 2007
Database functions in Excel are powerful analytical and calculation tools.
The functions take 3 arguments or parameters and then execute the result.
The 3 parameters are:

1. 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.
2. Field indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as “Designation” or “Salary” or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column (Designation in our example), 2 for the second column (Salary in our example), and so on.
3. 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. In our example the criteria range is B14 to C15.

Some of the database functions are described below:
DAVERAGE Returns the average of selected database entries.
DCOUNT Counts the cells that contain numbers in a database.
DCOUNTA Counts non-blank cells in a database.
DGET Extracts from a database a single record that matches the specified criteria.
DMAX Returns the maximum value from selected database entries.
DMIN Returns the minimum value from selected database entries.
DPRODUCT Multiplies the values in a particular field of records that match the criteria in a database.
DSTDEV Estimates the standard deviation based on a sample of selected database entries DSTDEVP Calculates the standard deviation based on the entire population of selected database entries.
DSUM Adds the numbers in the field column of records in the database that match the criteria.
DVAR Estimates variance based on a sample from selected database entries.
DVARP Calculates variance based on the entire population of selected database entries.

Implementing Database functions:
Select the labels of the columns, copy and paste them 3-4 rows below your data or 3-4 columns away from your data.
Now specify your criteria like ‘Manager’ under the designation label and or some salary value under the salary label as shown in our example.
Next click inside a cell where you wish to get your results. Type the ‘=dsum(…….)’ formula by providing the arguments as shown in the video. The first argument is your data. Select the data range including the labels. You can also assign a ‘name’ to the range like ‘mydata’ and use it.
Then define the ‘field’ using the column label like ‘Salary’.
The final step is to define the criteria range which includes the headers that you copied and pasted and the criteria values. After closing the bracket press enter and the result will be displayed.
We have demonstrated how to use the database functions like DSUM, DAVERAGE, DMAX, etc.