Figure 1. of Excel DCOUNTA Function.
We can be required to count matching records within a database by using specific criteria and an optional field. To do this, we can utilize the Excel DCOUNTA Function for counting the matching records within our worksheet database. This tutorial will walk through the process.
- database is the total cell range containing the data (headers included)
- field is the name of the field/Index to count
- criteria is our specified range (headers included)
How to Use the Excel DCOUNTA Function.
We are going to utilize the Excel COUNTA Function by following 2 simple steps;
- Input the database information in our Excel sheet. Label each column appropriately. See our example illustrated below;
Figure 2. of Database Entry in Excel.
- Our purpose here, is to count the number of multiple entries in the database by using specific criteria. Here, we want to find out the number of red items that cost more than $10
Figure 3. of DCOUNTA Function in Excel.
The formula syntax which we have entered into cell F2, in the example illustrated above is;
- The range of cells for our database field in our Excel sheet illustrated above is A4:D11
- The field range of cells is the entire column A (labeled COLOUR) in our Excel sheet.
- The range of cells for our specified criteria is A1:D2 in our Excel sheet.
- In the event that a cell within our database is empty, that cell will not be counted.
The Excel COUNTA Function will by default, count both text and number values in a given field as long as the specified criteria is matched.
Figure 4. of Final Result.
Instant Connection to an Expert through our Excelchat Service:
Our live Excelchat Service is here for you. We have Excel Experts available 24/7 to answer any Excel questions you may have. Guaranteed connection within 30 seconds and a customized solution for you within 20 minutes