ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Multiple Counting Criteria (https://www.excelbanter.com/excel-discussion-misc-queries/183334-multiple-counting-criteria.html)

Bentam7

Multiple Counting Criteria
 
Hi all

I just can't get a formula to work that will simply count how many cells
match the criteria. Here's a brief section of the data:

Min Week1 Week2 Week3
10 5 10 15
8 8 6 4
25 20 30 50

How do I create a formula to count by week how many have met the minimum
target? The results should be 1 for Week 1, 2 for Week2, and 2 for Week 3.
Bear in mind that my actual data has 52 weeks and hundreds of rows of data.

Thanks

Ken Johnson

Multiple Counting Criteria
 
On Apr 11, 1:29 pm, Bentam7 wrote:
Hi all

I just can't get a formula to work that will simply count how many cells
match the criteria. Here's a brief section of the data:

Min Week1 Week2 Week3
10 5 10 15
8 8 6 4
25 20 30 50

How do I create a formula to count by week how many have met the minimum
target? The results should be 1 for Week 1, 2 for Week2, and 2 for Week 3.
Bear in mind that my actual data has 52 weeks and hundreds of rows of data.

Thanks


=SUMPRODUCT(--(B$2:B$1000=$A$2:$A$1000))

filled across the 52 columns

Ken Johnson

joel

Multiple Counting Criteria
 
If the data starts in column A

=COUNTIF(B1:D1,"=" & A1)

"Bentam7" wrote:

Hi all

I just can't get a formula to work that will simply count how many cells
match the criteria. Here's a brief section of the data:

Min Week1 Week2 Week3
10 5 10 15
8 8 6 4
25 20 30 50

How do I create a formula to count by week how many have met the minimum
target? The results should be 1 for Week 1, 2 for Week2, and 2 for Week 3.
Bear in mind that my actual data has 52 weeks and hundreds of rows of data.

Thanks


Bentam7

Multiple Counting Criteria
 
Awesome. Thanks. I guess I need to learn how to use SUMPRODUCT.

"Ken Johnson" wrote:

On Apr 11, 1:29 pm, Bentam7 wrote:
Hi all

I just can't get a formula to work that will simply count how many cells
match the criteria. Here's a brief section of the data:

Min Week1 Week2 Week3
10 5 10 15
8 8 6 4
25 20 30 50

How do I create a formula to count by week how many have met the minimum
target? The results should be 1 for Week 1, 2 for Week2, and 2 for Week 3.
Bear in mind that my actual data has 52 weeks and hundreds of rows of data.

Thanks


=SUMPRODUCT(--(B$2:B$1000=$A$2:$A$1000))

filled across the 52 columns

Ken Johnson



All times are GMT +1. The time now is 12:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com