DCOUNT function is used to get count from the database for the field you want by applying criteria or condition
Syntax
=DCOUNT(database,field,criteria)
Arguments
database: The range of the data in the first row contains labels and columns under labels are records
field: use label or number of a column which you want in the result
criteria: a range of the condition with label
Behavior
DCOUNT in Excel |
Here we have taken an example of all months and its sell and quantity and its total amount
Database: The database is started from the row A4 to D16. The first row is selected as labels and remaining data is known as records.
Field: For which label you want to apply a condition or criteria. here you can write a label name or its column number, For Example, you want to use condition for sell then you have to write "sell"(sell in a double quote) or just write 2(which is column number of sell)
Criteria: criteria is a condition: For Example, You want to count the sell, in which month selling is greater than 7 and Quantity is less than 1500 than you can apply this condition by writing it in the criteria Section below the specific label.
Usage
To calculate a count from the database where criteria applied
Return
Counting of the conditionally applied record
How would you like this content to write us in the comment box!
If you face any difficulty in the content feel free to ask!
Thank You.
No comments:
Post a Comment