 |
 |
 |
 |
|
|
 |
 |
Problem:
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))
|
 |
 |
 |
|
|
| Screenshot // Counting Rows that Match Specific Criteria for Each Column |
  |
 |
 |
|
|
|
|
RATING:
3.40
VIEWS:
15200 |
|
|
|
|
 |
 |
READER COMMENTS (view all comments)
|
student loan consolidation
student loan consolidation wrote on July 11, 2005 04:53 EST |
| |
wrote on July 25, 2005 09:51 EST |
|
question
Ray wrote on December 31, 1969 19:00 EST |
| What if there were other things in the column besides just female, i.e. Female/Analyst, but I still wanted to find all the ones in with Female using the SUMPRODUCT. I tried using something like (B2:B7="*Female*"), but it doesnt like the use of the * in this situation. Any ideas? |
|
 |
 |
 |
|
|
 |
 |
 |
|
|
|
 |
|
 |
|
Now, Discover Your Strengths
Real Estate Finance and Investments (Real Estate Finance and Investments, 11th Ed)
Financial Shenanigans : How to Detect Accounting Gimmicks & Fraud in Financial Reports
Windows XP All-in-One Desk Reference For Dummies
Business Plans For Dummies®
Cashflow Quadrant: Rich Dad's Guide to Financial Freedom
|
|
 |
|