» Counting Rows that Match Specific Criteria for Each Column
CATEGORY - Excel Formula and Function
VERSION - All Microsoft Excel Versions
Range A2:C7 contains the ID's, genders and ages of all the people in the room.
Cells F1:F2 contains the criteria according to which we would like to count.
As different counting criteria are required, we would vary the values stored in cells F1:F2.
What single formula will count the number of rows matching the variable criteria stored in cells F1:F2?
Solution:
Use the SUMPRODUCT function as shown in the following formula:
=SUMPRODUCT((B2:B7=F1)*(C2:C7=F2))

Book Store:
Recommended Books:
- Marketing Plans That Work, Targeting Growth and Profitability
- Flipping Properties: Generate Instant Cash Profits in Real Estate
- Investing in Real Estate, Fourth Edition
- Learn MS Excel 2002 VBA/XML Programming
- Financial Statements: A Step-By-Step Guide to Understanding and Creating Financial Reports
- The Total Money Makeover. : A Proven Plan for Financial Fitness
No comments have been submitted.


