
Always make sure the database and criteria or not overlap there should be at least one-row gap in between.The criteria can be put anywhere in the active sheet.
If criteria in function left blank, then it will throw a #Value error. The field value can be Name in double quotes (” Name”) or field value index number. The database and criteria must have the same matching header otherwise, it will not execute the function. Criteria can have multiple rows in the DCOUNT function in excel. If the field value is blank or text value, then it will throw an Invalid Name Error. DCOUNT function in excel will count only if the user giving non-blank or numeric value. Things to Remember about DCOUNT Function in Excel Field by Omitted: A user can omit the field value. Field by Index: A user can give an index name or just a column number. Field by Name: As we have used in the above example, we have given the field a name. The same result is displaying in the resultant cell.Ī user can modify the criteria and can fetch data from the database according to his criteria given to the DCOUNT function in a fraction of seconds.Ī different way to use the DCOUNT function in Excel: The user wants to calculate the total employee with a salary greater than 6 Lakhs and older than 30 years or whose name starts with the alphabet M and younger than 21 Year. Step 4: Enter the criteria for which user wants to apply on the database, which written on top of the database. Step 3: Now DCOUNT function will ask for a field name which we can omit, so a user can skip the field name value and just put a sing comma (,). Step 2: Select the entire database, which is first asked in the DCOUNT function, so select B5 to E17. Step 1: Select the H2 cell and write the DCOUNT formula =DCOUNT Pre-requisite: A user has data for some XYZ Company employee data, which have field name like First Name, age, salary and joining date.Ĭriteria are written for the same on the top row for which the user wants to count total items. Example #3Ī user wants to calculate the total employee with a salary greater than 6 Lakhs and older than 30 years or whose name starts with the alphabet M and younger than 21 Year. Step 2: Select the database, which is first asked in function, so select B4 to F12.Īs we can see from the result, there 3 Product ID which color Red and the Total Price is >500000.Ī user can modify the criteria and can fetch data from the database according to his criteria given to the DCOUNT function in a fraction of seconds. Step 1: Select the I2 cell and write the DCOUNT formula =DCOUNT
Criteria are written for the same on the top row for which the user wants to count total items. Pre-requisite: There is a list of Product Id, Color description, per item price, quantity and price tag on the product purchased by a customer. Example #2Ī user wants to calculate the total Product ID, which is Green in color and Price greater than 5 lakhs. Step 5: Click Enter, the function will be applied to the dataset, and the result will be displayed.Īs we can see from the result, there is only one order: the Order ID is >11458 and Name =Coke.Ī user can modify the criteria and can fetch data from the database according to his criteria given to the DCOUNT function in a fraction of seconds.
Step 4: Enter the criteria for which the user wants to apply to the database. Step 3: Now enter the field value or column name for which a user wants to count all cell.