=DCOUNT(database,field,criteria)
=DCOUNT(A1:D7, "Age", A1:D2)
Formula Description Result Counts how many records in the dataset have a value in the Age field, based on the criteria specified in the range A1:D2. The age field, based on the criteria specified in the range A1:D2 is 6.
The DCOUNT function is a useful tool for counting cells in a list or database, requiring the first two arguments of database and field. An optional field argument can also be used to further refine the count.