EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Statistical Functions in Excel DCOUNT Function in Excel
Secondary Sidebar
Excel Functions
  • Statistical Functions in Excel
    • COUNTIF Formula in Excel
    • COUNTIF Multiple Conditions
    • COUNTIFS with Multiple Criteria
    • Statistics in Excel
    • Confidence Interval in Excel
    • Interpolate in Excel
    • Linear Programming in Excel
    • COUNTIFS in Excel
    • Excel Variance
    • Normal Distribution Formula in Excel
    • Count Cells with Text in Excel
    • Excel Formula For Rank
    • Linear Regression in Excel
    • COUNTA Function in Excel
    • MAX Formula in Excel
    • Excel NORMSINV
    • Count Names in Excel
    • FORECAST Formula in Excel
    • NPER in Excel
    • Excel Median Formula
    • Lognormal Distribution in Excel
    • Excel Chi Square Test
    • Count Formula in Excel
    • COUNTIF Examples in Excel
    • Excel P-Value
    • COUNTIF Not Blank in Excel
    • Excel Standard Deviation Formula
    • Excel GROWTH Formula
    • Excel Percentile Formula
    • Excel Frequency Formula
    • Excel Average Formula
    • Excel Correlation Matrix
    • Excel Z Score
    • Excel MAX IF Function
    • Z TEST in Excel
    • Excel Trendline
    • Excel F-Test
    • Excel STDEV Function
    • Excel Frequency Distribution
    • DCOUNT Function in Excel
    • Excel MIN Function
    • Excel Forecast Function
    • FREQUENCY Excel Function
    • COUNTIF with Multiple Criteria
    • Standard Deviation in Excel
    • MAX Excel Function
    • Excel QUARTILE Function
    • Excel T.Test Function
    • Excel PERCENTILE Function
    • MODE Excel Function
    • SLOPE Excel Function
    • Excel Median Function
    • Excel TREND Function
    • Excel Count Function
    • Excel LARGE Function
    • SMALL Excel Function
    • COUNTIF Excel Function
    • Excel AVERAGE Function
    • Excel CORREL Function
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (35+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Excel Tips (222+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL ADVANCED Training Certification
  • Online Excel for Marketing Course

DCOUNT Function in Excel

By Arun GuptaArun Gupta

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.

DCOUNT Formula in Excel

Below is the DCOUNT Formula in Excel :

DCOUNT Formula in Excel

Start Your Free Excel Course

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

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.

All in One Excel VBA Bundle(120+ Courses, 30+ Projects)
Basic ExcelAdvanced ExcelVBA & MacrosExcel Dashboards
Pivot TablesStatistical FunctionsFinancial FunctionsCharts & Graphs
Price
View Courses
120+ Online Courses | 30+ Projects | 500+ Hours | Verifiable Certificates | Lifetime Access
4.9 (64,725 ratings)
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
Popular Course in this category
Excel Advanced Training (16 Courses, 23+ Projects)
  16 Online Courses |  23 Hands-on Projects |  140+ Hours |  Verifiable Certificate of Completion
4.8
Price

View Course

Related Courses

Excel for Marketing Training (8 Courses, 13+ Projects)4.9
1 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • 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

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

EDUCBA
Free Excel Course

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

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

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

EDUCBA Login

Forgot Password?

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

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

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

EDUCBA

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

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

Let’s Get Started

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

EDUCBA

Download DCOUNT Function Excel Template

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