DCOUNT Function in Excel: Syntax, Examples & Practice
Learn the Excel DCOUNT function: Counts numeric records matching database criteria. Try focused practice and download a free workbook.
Syntax
=DCOUNT(database, field, criteria)
Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.
Worked example
| Row | A: Employee ID | B: Employee | C: Branch | D: Collection | E: Criteria label | F: Branch |
|---|---|---|---|---|---|---|
| 2 | E101 | Amit | Mumbai | 45000 | Mumbai | |
| 3 | E102 | Priya | Pune | 62000 | ||
| 4 | E103 | Ravi | Nashik | 38000 | ||
| 5 | E104 | Neha | Mumbai | 55000 |
=DCOUNT(A1:D5,"Collection",F1:F2)
Expected result: 2
The database is A1:D5. F1 matches its Branch header, and F2 selects Mumbai.
Professional use
Legacy database reporting.
Practice DCOUNT · Download practice .xlsx
Apply your skills
Explore MIS and finance projects
Questions and answers
How can I practise DCOUNT?
Use the focused ten-question DCOUNT lab, then download its workbook for ten additional function-specific tasks and an answer key. Core learning works without an account.
Which Excel version supports DCOUNT?
Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.
Does the browser simulator replace Microsoft Excel?
No. It supports a selected set of formula behavior for practice. Native workbook recalculation, full function compatibility, PivotTables and external data features must be checked in your own Excel installation.
Interactive practice runs in your browser.