Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() =AND(COUNTIF(A1:A5,"HM"))*(COUNTIF(B1:B5,"5")) Trying to calculate the following: A B 1 HM 5 2 HM 2 3 HM 4 4 HG 5 5 HM 5 Count the number of times "HM" is in column A and "5" is in column B. Thanks for the help. Todd -- play01 ------------------------------------------------------------------------ play01's Profile: http://www.excelforum.com/member.php...o&userid=32635 View this thread: http://www.excelforum.com/showthread...hreadid=524432 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Todd
=SUMPRODUCT((A1:A5="HM")*(B1:B5=5)) Regards Trevor "play01" wrote in message ... =AND(COUNTIF(A1:A5,"HM"))*(COUNTIF(B1:B5,"5")) Trying to calculate the following: A B 1 HM 5 2 HM 2 3 HM 4 4 HG 5 5 HM 5 Count the number of times "HM" is in column A and "5" is in column B. Thanks for the help. Todd -- play01 ------------------------------------------------------------------------ play01's Profile: http://www.excelforum.com/member.php...o&userid=32635 View this thread: http://www.excelforum.com/showthread...hreadid=524432 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Try this =SUMPRODUCT(--(A1:A5="HM"),--(B1:B5=5)) If the 5 is text not numeric then use "5" instead -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=524432 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Countif Formula /Sort Bug??? | Excel Discussion (Misc queries) | |||
Countif, then multiply?? | Excel Worksheet Functions | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions | |||
Combining IF and COUNTIF based on two columns | Excel Discussion (Misc queries) | |||
Countif - Countif | Excel Worksheet Functions |