Excel: Using DCOUNT to Count Occurrences of Text in a DatabaseLast reviewed: November 2, 1994Article ID: Q26441 |
SUMMARYIn Microsoft Excel, the DCOUNT function normally counts the occurrence of numbers in a particular field of a database for all records that satisfy a set of criteria. It is also possible to count the occurrence of text in a field. Text in a database field can be counted by omitting the "field" argument. For example, to count numbers in the field titled "Amount" according to a specific criteria, the DCOUNT function should appear as follows:
=DCOUNT(Database,"Amount",Criteria)However, to count records that match the criteria, even if the fields in those records do not contain numbers, the function should be written as follows:
=DCOUNT(Database,,Criteria) |
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |