0PricingLogin
Excel Formulas Academy · Lesson

Counting Records With DCOUNT

Count matching rows in a structured table.

What DCOUNT Does

DCOUNT counts how many records in a table match your criteria range - but with a twist: it only counts rows where the chosen field contains a number.

It is the database-function cousin of COUNT. If you need to count rows by text or blank fields, you reach for DCOUNTA instead, which we will meet shortly.

The DCOUNT Syntax

DCOUNT uses the same three arguments as every D-function:

DCOUNT(database, field, criteria)

  • database - the full table with headers.
  • field - the column whose numeric values are checked.
  • criteria - the matching rules block.

It returns how many matching rows have a number in that field.

=DCOUNT(A1:C13, "Amount", E1:E2)

All lessons in this course

  1. Setting Up a Criteria Range
  2. Summing Records With DSUM
  3. Counting Records With DCOUNT
  4. Averaging and Extracting With DAVERAGE and DGET
← Back to Excel Formulas Academy