Excel DCOUNT Function: Microsoft Excel is a powerful data visualization and analysis program used all around the world. It uses spreadsheets to store, organize, or perform operations with formulas and functions. If you want to count the matching records from the data set based on some criteria, you can use the DCOUNT function.
In this tutorial, we will guide you to learn the usage of the Excel DCOUNT Function with its syntax, explanation, and examples. Get an official version of MS Excel from the following link:
https://www.microsoft.com/en-in/microsoft-365/excel
Explanation of DCOUNT Function
- It is one of the built-in functions in Microsoft Excel.
- This function counts the cells that contain only numbers in a list or database that matches certain conditions or criteria.
Syntax
- Here, you will see the syntax of the DCOUNT function.
- To apply this function on your spreadsheet, you have to select a cell and enter the formula in the following format.
- Once you enter the formula, just click on the Enter button to get the result.
=DCOUNT(database, [field], criteria)
Arguments Description:
- Database – It is the database range including headers.
- Field – It is an optional one. This is the field name or index to count.
- Criteria – It is the criteria range including headers.
Note:
1) You need to give the field argument as a name within the double quotes (” “) or a number representing the field index.
2) The database and criteria range must include the matching table headers.
3) If you want to count numbers or text values from the given field, use DCOUNTA Function.
4) If you didn’t give the field argument as a name within the double quotes (” “), then it returns #NAME? Error.
Example
Let’s see some examples to understand how DCOUNT Function will work.
- Initially, you have to open your Excel workbook on your PC and launch a worksheet that has data.
- For example, we have given a range of input values in B5:E10 and the criteria range (B2:E3). The given condition is “product=pencil, price= >10” and the output is displayed in Cell G6.
- Then, we have to apply the above-mentioned formula to get the result, as shown in the following screenshot.
- Finally, we need to click on the Enter button to get the result.
- If you didn’t give the field argument as a name within the double quotes (” “), then it returns #NAME? Error.
Closure
In this tutorial, we guided you to learn the usage of Excel DCOUNT Function with its syntax, explanation, and examples. Leave your feedback in the comment section. To learn more about Excel functions, then visit our webpage Aawexcel.com.
Video Tutorial
Use the following video to know how to apply Excel DCOUNT function in the spreadsheet with examples.
Keep Reading:
- How to Use Excel FLOOR.MATH Function?
- How to Use Excel FLOOR Function?
- How to Use Excel CEILING.PRECISE Function?
- How to Use Excel CEILING Function?
- How to Use Excel GCD Function?
Deepak is an Excel enthusiast and data analyst with over 5 years of experience in the field. I’m a renowned author for AAW Excel who connects with a committed group of Excel users by imparting his professional knowledge and helpful advice. No matter your level of Excel proficiency, my articles and tutorials will teach you something new and beneficial. Connect me via my social links!… Mastodon & More!