Skip to content
Excel

DCOUNTA function in Excel

Counts nonblank cells in a database

=DCOUNTA(database, field, criteria)

DCOUNTA syntax and parameters

Three arguments, two required.

  • databaserangeRequired

    The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.

  • fieldanyOptional

    Indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.

  • criteriarangeRequired

    The range of cells that contains the conditions that you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.

DCOUNTA examples

Formulas you'll actually reuse.

  1. West orders with a rep filled in — counts text too, unlike DCOUNT:

    =DCOUNTA(A1:E200, "Rep", G1:G2)

    Result47

  2. How many big West orders already have a Date (column 5):

    =DCOUNTA(A1:E200, 5, G1:H2)

    Result19

DCOUNTA in Google Sheets

Same name — your formula ports as-is.

Try DCOUNTA in the playground

Edit the example — nothing to install.

Preloaded with the DCOUNTA formula from Example 1 — change anything and watch it respond.

Loading the editor…