The Excel Dcounta function returns the number of non-blank cells in a database field (column) for just chosen records. Records that fulfil a set of one or more user-specified criteria are included in the count. The function is extremely similar to Excel’s Dcount function, with the exception that the Dcounta function counts all non-blank cells, whereas the Dcount function only counts cells with numeric values.
Syntax :
=DCOUNTA( database, [field], criteria )
Parameters :
Database :
Field :
Criterion :
Example :
The Dcounta function is used in the following example to count the number of Science test results obtained for male students. Cells G1 – H2 specify the conditions, while cell G3 displays the Dcounta formula: The Dcounta function above finds two rows where the Gender is “Male” and the Subject is “Science.” Because both of these rows have a non-blank “Score” column, the method returns the number 2. In the above example, the Dcounta function counted cell E7, which had the phrase “awaiting” in the Score field. (If the Dcount function had been used instead of the Dcounta function, this would have been omitted from the count.)
Ask Your Query