DCOUNTA(database, field, criteria)
DCOUNTA(B7:E14,"Color",B4:E5)
The DCOUNTA function can be used to count the number of records in a database that meet certain criteria. For example this formula returns a count of how many records in the database have a color of "red" and a price greater than 10.
DCOUNTA(B7:E14,1,B4:E5)
The DCOUNTA function can be used with a numerical argument instead of a string argument. For example, this formula also returns a count of how many records in the database have a color of "red" and a price greater than 10.
DCOUNTA(B7:E14,,B4:E5)
The DCOUNTA function can also be used without any argument in the second argument position. For example, this formula also returns a count of how many records in the database have a color of "red" and a price greater than 10.
DCOUNTA is a function used to count values in a database that meet the criteria specified. It requires a database and criteria argument, while the field argument is optional.