EDUCBA

EDUCBA

MENUMENU
  • Explore
    • Lifetime Membership
    • All in One Bundles
    • Fresh Entries
    • Finance
    • Data Science
    • Programming and Dev
    • Excel
    • Marketing
    • HR
    • PDP
    • VFX and Design
    • Project Management
    • Exam Prep
    • All Courses
  • Blog
  • Enterprise
  • Free Courses
  • Login
Home Excel Excel Resources Statistical Functions in Excel DCOUNT Function in Excel

DCOUNT Function in Excel

Arun Gupta
Article byArun Gupta
Madhuri Thakur
Reviewed byMadhuri Thakur

Updated August 23, 2023

DCOUNT Function in Excel

DCOUNT Function in Excel (Table of Contents)
  • DCOUNT in Excel
  • DCOUNT Formula in Excel
  • How to Use the DCOUNT Function in Excel?

DCOUNT in Excel

The DCount function in Excel is a Database type function which is used to count the cell number, which contains only numbers or numerical values. The selected range for Database in the syntax can be a table or column. Fields part is optional, but here we can select the column whose value we need to count and then for Criteria part range those cell which has criteria. We need to mention the criteria in separate cells by which want cell count.

ADVERTISEMENT
Popular Course in this category
MS Excel Course Bundle - 36 Courses in 1 | 13 Mock Tests

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

DCOUNT Formula in Excel

Below is the DCOUNT Formula in Excel :

DCOUNT Formula in Excel

Below is the component of the DCOUNT function in Excel:

  • Database: The Range of cells that the user selected for applying criteria against. The field name must be there in the database. It is a mandatory field.
  • Field: The column name or the column number which tell excel which column in the database to count. It will be from the database only. It can be a field number / Index number. It can be omitted the result will be calculated on satisfying criteria.
  • Criteria: The range of cells which contain the conditions. The user specifies it. The criteria must contain at least one field name. Criteria can include multiple ranges as the condition specified by the user.
Note: The DCOUNT function is not case-sensitive. So, if the user provides data opposite case to the database, it will not affect the result of the function.

How to Use the DCOUNT Function in Excel?

DCOUNT function in Excel is very simple and easy to use. Let’s understand the working of the DCOUNT function in Excel by some DCOUNT Formula example.

You can download this DCOUNT Function Excel Template here – DCOUNT Function Excel Template

Example #1

A user wants to calculate the total order made after Order id 11450 for Coke.

Pre-requisite: There is a list of order Id’s, Beverage Name and Expense on a beverage made by some customer. Criteria are written for the same on the top row for which the user wants to count total order.

DCOUNT Example 1-1

Step 1: Select the G2 cell and write the DCOUNT formula =DCOUNT

DCOUNT Function Example 1-2

Step 2: Select the database, which is first asked in function, so select B4 to D10.

DCOUNT Function Example 1-3

Step 3: Now enter the field value or column name for which a user wants to count all cell.

DCOUNT Example 1-4

Step 4: Enter the criteria for which the user wants to apply to the database.

Calculation of Example 1

Step 5: Click Enter, the function will be applied to the dataset, and the result will be displayed.

Result of Example 1

Summary of Example #1:

As we can see from the result, there is only one order: the Order ID is >11458 and Name =Coke.

A 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.

Example #2

A user wants to calculate the total Product ID, which is Green in color and Price greater than 5 lakhs.

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. Criteria are written for the same on the top row for which the user wants to count total items.

DCOUNT Example 2-1

Step 1: Select the I2 cell and write the DCOUNT formula =DCOUNT

 DCOUNT Function Example 2-2

Step 2: Select the database, which is first asked in function, so select B4 to F12.

DCOUNT Example 2-3

Step 3: Now enter the field value or column name for which a user wants to count all cell.

DCOUNT Example 2-4

Step 4: Enter the criteria for which the user wants to apply to the database.

Calculation of Example 2

Step 5: Click Enter, the function will be applied to the dataset, and the result will be displayed.

Result of Example 2

Summary of Example #2:

As we can see from the result, there 3 Product ID which color Red and the Total Price is >500000.

A 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.

Example #3

A 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.

Pre-requisite: A user has data for some XYZ Company employee data, which have field name like First Name, age, salary and joining date.

Criteria are written for the same on the top row for which the user wants to count total items.

DCOUNT Example 3-1

Step 1: Select the H2 cell and write the DCOUNT formula =DCOUNT

DCOUNT Function Example 3-2

Step 2: Select the entire database, which is first asked in the DCOUNT function, so select B5 to E17.

 DCOUNT Example 3-3

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 (,).

DCOUNT Example 3-4

Step 4: Enter the criteria for which user wants to apply on the database, which written on top of the database.

 Calculation of Example 3

Step 5: Click Enter, the function will be applied to the dataset, and the result will be displayed.

Result of Example 3

Summary of Example #3:

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. The same result is displaying in the resultant cell.

A 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.

A different way to use the DCOUNT function in Excel:

  • Field by Name: As we have used in the above example, we have given the field a name.
  • Field by Index: A user can give an index name or just a column number.
  • Field by Omitted: A user can omit the field value.

Things to Remember About DCOUNT Function in Excel

  • DCOUNT function in excel will count only if the user giving non-blank or numeric value. If the field value is blank or text value, then it will throw an Invalid Name Error.

Name Error

  • Criteria can have multiple rows in the DCOUNT function in excel.
  • The database and criteria must have the same matching header; otherwise, it will not execute the function.
  • The field value can be Name in double quotes (” Name”) or field value index number.
  • If criteria in function left blank, then it will throw a #Value error.
  • The criteria can be put anywhere in the active sheet. Best to put on top of the database.
  • Always make sure the database and criteria or not overlap; there should be at least one-row gap in between.

Recommended Articles

This has been a guide to DCOUNT in Excel. Here we discuss the DCOUNT Formula in Excel and How to use the DCOUNT Function in Excel, along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. Excel Count Function
  2. COUNTIF Excel Function 
  3. Count Cells with Text in Excel
  4. COUNTIFS in Excel
ADVERTISEMENT
MICROSOFT POWER BI Course Bundle - 8 Courses in 1
34+ Hours of HD Videos
8 Courses
Verifiable Certificate of Completion
Lifetime Access
4.5
ADVERTISEMENT
MS Excel & VBA for Data Science Course Bundle - 24 Courses in 1 | 10 Mock Tests
87+ Hours of HD Videos
24 Courses
10 Mock Tests & Quizzes
Verifiable Certificate of Completion
Lifetime Access
4.5
ADVERTISEMENT
All-in-One Financial Analyst Masters Training Program Bundle - 550+ Courses | 300+ Mock Tests | 2000+ Hours | Lifetime |
2000+ Hours of HD Videos
43 Learning Paths
550+ Courses
Verifiable Certificate of Completion
Lifetime Access
4.9
ADVERTISEMENT
All-in-One Data Science Bundle - 400+ Courses | 550+ Mock Tests | 2000+ Hours | Lifetime |
2000+ Hour of HD Videos
80 Learning Paths
400+ Courses
Verifiable Certificate of Completion
Lifetime Access
4.7
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

EDUCBA

Download DCOUNT Function Excel Template

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download DCOUNT Function Excel Template

EDUCBA

डाउनलोड DCOUNT Function Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

🚀 Extended Cyber Monday Price Drop! All in One Universal Bundle (3700+ Courses) @ 🎁 90% OFF - Ends in ENROLL NOW