Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to count the occurance of criteria in more than one column. A
simple example: A B 1 Red Y 2 Red N 3 Red Y 4 Red N 5 Red N 6 Green Y 7 Green N I would like to count the number of times column A ="Red" and the associated cell in column B="Y". The result should be 2. Thanks, Joe M. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this (assuming your spreadsheet is set up as noted below)
=SUMPRODUCT(($A$1:$A$7="Red")*($B$1:$B$7="Y")) On Jan 14, 11:13 am, Joe M. wrote: I am trying to count the occurance of criteria in more than one column. A simple example: A B 1 Red Y 2 Red N 3 Red Y 4 Red N 5 Red N 6 Green Y 7 Green N I would like to count the number of times column A ="Red" and the associated cell in column B="Y". The result should be 2. Thanks, Joe M. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SUMPRODUCT(--(A1:A100="Red"),--(B1:B100="Y"))
"Joe M." wrote: I am trying to count the occurance of criteria in more than one column. A simple example: A B 1 Red Y 2 Red N 3 Red Y 4 Red N 5 Red N 6 Green Y 7 Green N I would like to count the number of times column A ="Red" and the associated cell in column B="Y". The result should be 2. Thanks, Joe M. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple Criteria, Count If, Sum Product to get count across range | Excel Worksheet Functions | |||
Count on Multiple Criteria over whole column | Excel Worksheet Functions | |||
COUNT WITH MULTIPLE CRITERIA | Excel Worksheet Functions | |||
multiple criteria for count if | Excel Discussion (Misc queries) | |||
Multiple Count Criteria | Excel Worksheet Functions |