|
|
The Excel DPRODUCT Function
Excel Database Functions
The Excel Database Functions are included to assist you when working with an Excel database. This typically takes the form of a large table of data, where each row in the table stores an individual record. Each column in the spreadsheet table stores a different field (or type of information) for each record. The database functions perform basic operations, such as count, max, min, etc, but they enable the user to specify criteria, so that the operation is performed on selected records only. Other records in the database are ignored. Basic DescriptionThe Excel Dproduct function calculates the product of a field (column) in a database for selected records, that satisfy user-specified criteria. The syntax of the function is :
DPRODUCT( database, field, criteria )
where the arguments are shown in the table below:
Wildcards
You can also use the following wildcards in text-related criteria:
? - matches any single character
* - matches any sequence of characters if you do actually want to find the ? or * character, type the ~ symbol before this character in your search. eg. the condition "A*e" will match all cells containing a text string beginning with "A" and ending in "e". The criteria supplied beneath each field heading can be either:
Note that the Excel database functions are not case sensitive. So, for example, the criteria ="Tuesday" will be satisfied by cells containing the text "Tuesday" or "tuesday". Excel Dproduct Function Examples
The following examples are based on the simple database on the right, which stores the ratings, across three tests, taken by two men on different dates. Example 1In the example below, the Dproduct function is used to calculate the product of Gary's scores on all three tests on 05-Jan-2010. The criteria are specified in cells F1 - G2 and the Dproduct formula is shown in cell F3.
The above Dproduct function calculates the product of the scores in cells D5, D6 & D7, and therefore returns the value 36. Example 2In the example below, the Dproduct function is used to calculate the product of all scores for Test1 on dates prior to 05-Jan-2011.
The above Dproduct function calculates the product of the scores in cells D2 and D8 and so returns the value 8. Note that, in the above two examples, instead of typing in "Score" for the field argument, we could have simply used the number 4 (to denote the 4th column of the database). Further examples of the Excel Dproduct function can be found on the Microsoft Office website. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Copyright © 2008-2011 ExcelFunctions.net |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||