Count the number of products of a particular Brand which have a Life Hours rating.
Criteria Range Is E23:E24
DATABASE FORMULA – DCOUNT Function
What Does It Do ?
This function examines a list of information and counts the values in a specified column. It can only count values, the text items and blank cells are ignored.
Description For DCOUNT Function
- The DatabaseRange is the entire list of information you need to examine, including the field names at the top of the columns.
- The FieldName is the name, or cell, of the values to Count, such as “Value Of Stock” or I3.
- The CriteriaRange is made up of two types of information.
The first set of information is the name, or names, of the Fields(s) to be used as the basis for selecting the records, such as the category Brand or Wattage.
The second set of information is the actual record, or records, which are to be selected, such as Horizon as a brand name, or 100 as the wattage.
No special formatting is needed.
The count of a particular product, with a specific number of boxes in stock.
Criteria Range Is E50:F51
The number of products is : =DCOUNT(B3:I19,H3,E50:F51)
This is the same calculation but using the name “Boxes In Stock” instead of the cell address.
=DCOUNT(B3:I19,”Boxes In Stock”,E50:F51)
The count of the number of Bulb products equal to a particular Wattage.
Criteria Range Is E61:F62
The count is : =DCOUNT(B3:I19,”Boxes In Stock”,E61:F62)
The count of Bulb products between two Wattage values.
Criteria Range Is E68:G69
The count is =DCOUNT(B3:I19,”Boxes In Stock”,E68:G69)
Advanced Excel Formulas Index