Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi everyone
I can use Countif to count the number of "Pass" in column AV however I only want to count "Pass" in column AV if Am (same row) = "High" I tried =Countif(AM:AM,"High")AND,Countif(AV:AV,"Pass") but that did not work! Any suggestions Kenny |
#2
![]() |
|||
|
|||
![]()
=SUMPRODUCT(--(AM1:AM1000="High"),--(AV1:AV1000="Pass"))
Note, you cannot use full column references with SUMPRODUCT, so adjust ranges to suit. -- Regards Ken....................... Microsoft MVP - Excel Sys Spec - Win XP Pro / XL 97/00/02/03 ------------------------------*------------------------------*---------------- It's easier to beg forgiveness than ask permission :-) ------------------------------*------------------------------*---------------- "N E Body" wrote in message ... Hi everyone I can use Countif to count the number of "Pass" in column AV however I only want to count "Pass" in column AV if Am (same row) = "High" I tried =Countif(AM:AM,"High")AND,Countif(AV:AV,"Pass") but that did not work! Any suggestions Kenny |
#3
![]() |
|||
|
|||
![]()
Kenny, here is one way,
=SUMPRODUCT((AM1:AM25="High")*(AV1:AW25="Pass")) -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "N E Body" wrote in message ... Hi everyone I can use Countif to count the number of "Pass" in column AV however I only want to count "Pass" in column AV if Am (same row) = "High" I tried =Countif(AM:AM,"High")AND,Countif(AV:AV,"Pass") but that did not work! Any suggestions Kenny |
#4
![]() |
|||
|
|||
![]()
One way would be to CONCATENATE the two columns together into a helper
column and then do a simple COUNTIF on that helper column for the combination desired.......... Vaya con Dios, Chuck, CABGx3 "N E Body" wrote in message ... Hi everyone I can use Countif to count the number of "Pass" in column AV however I only want to count "Pass" in column AV if Am (same row) = "High" I tried =Countif(AM:AM,"High")AND,Countif(AV:AV,"Pass") but that did not work! Any suggestions Kenny |
#5
![]() |
|||
|
|||
![]()
Thanks Ken
That did the trick! Regards Kenny "Ken Wright" wrote in message ... =SUMPRODUCT(--(AM1:AM1000="High"),--(AV1:AV1000="Pass")) Note, you cannot use full column references with SUMPRODUCT, so adjust ranges to suit. -- Regards Ken....................... Microsoft MVP - Excel Sys Spec - Win XP Pro / XL 97/00/02/03 ------------------------------*------------------------------*------------ ---- It's easier to beg forgiveness than ask permission :-) ------------------------------*------------------------------*------------ ---- "N E Body" wrote in message ... Hi everyone I can use Countif to count the number of "Pass" in column AV however I only want to count "Pass" in column AV if Am (same row) = "High" I tried =Countif(AM:AM,"High")AND,Countif(AV:AV,"Pass") but that did not work! Any suggestions Kenny |
#6
![]() |
|||
|
|||
![]()
Hi,
Another way to do it is through array formulas (Ctrl+Shift+Enter) SUM(IF((AM6:AM8="Pass")*(AV6:AV8="High"),1,0)) Regards, Ashish "N E Body" wrote: Hi everyone I can use Countif to count the number of "Pass" in column AV however I only want to count "Pass" in column AV if Am (same row) = "High" I tried =Countif(AM:AM,"High")AND,Countif(AV:AV,"Pass") but that did not work! Any suggestions Kenny |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Countif w/ Multiple Criteria | Excel Worksheet Functions | |||
Countif using format criteria....not number criteria? | Excel Worksheet Functions | |||
Combining IF and COUNTIF based on two columns | Excel Discussion (Misc queries) | |||
countif criteria | Excel Worksheet Functions | |||
counting cells (COUNTIF) based on two or more criteria | Excel Worksheet Functions |