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

RowA: Employee IDB: EmployeeC: BranchD: CollectionE: Criteria labelF: Branch
2E101AmitMumbai45000Mumbai
3E102PriyaPune62000
4E103RaviNashik38000
5E104NehaMumbai55000
=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.