EXCEL DECOUNT FUNCTION

The Excel Dcount function returns the number of cells in a database field (column) that have numeric values for just chosen records. Records that fulfil a set of one or more user-specified criteria are included in the count.

Syntax :

=DCOUNT(database, [field], criterion)

Parameters :

  •  The following arguments:

Database :

  • A set of cells that contains the database. The field names should be specified in the database’s top row.

Field :

  • An optional parameter that defines the database field (column) for which you wish to retrieve the count. This can be a field number or the field name (i.e. the header in the top row of the database) surrounded by quotations (e.g. “Gender”, “Subject”, etc). If the [field] parameter is not specified, the Dcount function simply returns the number of records that meet the specified criteria.

Criterion :

A range of cells containing the criteria for determining which records should be counted. The range can comprise one or more criteria, which are displayed in one cell as a field name and the condition for that field in the cell below.

E.g. :

SubjectAge
Math>8

Step By Step Guide of DCOUNT Function

Example :

The Dcount function is used in the following example to count the number of Science test results obtained for male students. Cells G1 – H2 specify the conditions, and cell G3 displays the Dcount formula: The Dcount method above discovers two rows where the Gender is “Male” and the Subject is “Science.” Only one of these rows (row 13), however, has a number in the “Score” column. As a result, thfunction returns the value 1. In the above example, the Dcountfunction has omitted cell E7 from the count since it includes text rather than a number. (However, if the Dcounta function had been used instead of the Dcount function, this cell would have been counted.)

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now