Start Free Course

DCOUNT Excel Function

Written by ExcelMojo Editorial Team ExcelMojo Editorial Team ExcelMojo editorial profile and article credentials. Full Bio
Reviewed by Dheeraj Vaidya, CFA, FRM Dheeraj Vaidya, CFA, FRM Reviewed for accuracy, clarity, and editorial standards. Full Bio
Updated Apr 23, 2026
Read Time 7 min

What Is DCOUNT Function In Excel?

The DCOUNT Excel function counts the cells containing numbers in a database that matches specified conditions/criteria. The DCOUNT function in Excel is an inbuilt “Database” function, so we can insert the formula from the “Function Library” or enter it directly in the worksheet.

For example, we will use the DCOUNT Function to calculate cells containing numerical values for the following values in column A.

Frequently Asked Questions (FAQs)

1. What does the DCOUNT Excel function mean?

The DCOUNT function counts the numeric values from the database that fulfills the set criteria. Like the COUNT function that returns the count of numeric values, the DCOUNT function also returns the count of values. However, the DCOUNT() checks for the criteria and then counts the cells that meet the criteria.

The syntax of the DCOUNT function is =DCOUNT(database,field,criteria)

2. How to insert the DCOUNT Excel function?

We can insert the DCOUNT function as follows:
1. Select an empty cell for the output.
2. Type =DCOUNT( in the selected cell. [Alternatively, type =D or =DC and double-click the DCOUNT function from the list of suggestions shown by Excel.
3. Enter the arguments as cell values or cell references and close the brackets.
4. Press the “Enter” key.

For example, we will calculate the output by counting numeric values using the DCOUNT function.

In the table, the data is,
Column A contains the Value.
Column B displays the Output.

DCOUNT Excel Function - FAQ 2

The procedure to calculate the value using the DCOUNT formula is,
Select cell B2, enter the formula =DCOUNT(A1:A5,A1,A2:A5), and press the “Enter” key.
[Note: The value of ‘database’ is A1:A5, ‘field’ is A1, and ‘criteria’ is A2:A5.]

FAQ 2 - 1

The result is “3”, as shown above.

3. Where is the DCOUNT Excel function?

The DCOUNT function is found in the “Formulas” tab, as shown below.

Choose an empty cell for the output → select the “Formulas” tab → click the “Insert Function” group, as shown below.

DCOUNT Excel Function - FAQ 3 - 1

The “Insert Function” window appears. Now, choose the “Database” option from the “select a category:” drop-down.

FAQ 3 - 2

Then, select the “DCOUNT” function from the “Select a function:” group → and click “OK”, as shown below.

FAQ 3 - 3

Download Template

📥Download the ready-to-use Excel template to practice this tutorial yourself.

Download Excel Template

This has been a guide to DCOUNT Excel Function. Here we count cells with numeric values that fulfill set criteria, examples & downloadable excel template. You can learn more from the following articles –