Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Double Countif
Hi all. I need to do a 2 level countif. Given the following 3 column
example: A 1 0 B 0 0 A 1 0 C 1 1 D 0 1 A 0 0 X 0 0 I need a formula at the bottom of each column that will count the number of entries that are BOTH greater than zero AND have A in the forst column. So the first numerical column result would be 2, the second would be 0. Possible? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Double Countif
One way:
B8: =SUMPRODUCT(--($A1:$A7="A"),--(B1:B70)) C8: =SUMPRODUCT(--($A1:$A7="A"),--(C1:C70)) If B and C can only have values of 0 or 1, this simplifies to B8: =SUMIF($A1:$A7,"A",B1:B7) C8: =SUMIF($A1:$A7,"A",C1:C7) In article , "Steph" wrote: Hi all. I need to do a 2 level countif. Given the following 3 column example: A 1 0 B 0 0 A 1 0 C 1 1 D 0 1 A 0 0 X 0 0 I need a formula at the bottom of each column that will count the number of entries that are BOTH greater than zero AND have A in the forst column. So the first numerical column result would be 2, the second would be 0. Possible? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Double Countif
Wow, fantastic! Can I ask you to explain how that works? The -- really has
me baffled! "JE McGimpsey" wrote in message ... One way: B8: =SUMPRODUCT(--($A1:$A7="A"),--(B1:B70)) C8: =SUMPRODUCT(--($A1:$A7="A"),--(C1:C70)) If B and C can only have values of 0 or 1, this simplifies to B8: =SUMIF($A1:$A7,"A",B1:B7) C8: =SUMIF($A1:$A7,"A",C1:C7) In article , "Steph" wrote: Hi all. I need to do a 2 level countif. Given the following 3 column example: A 1 0 B 0 0 A 1 0 C 1 1 D 0 1 A 0 0 X 0 0 I need a formula at the bottom of each column that will count the number of entries that are BOTH greater than zero AND have A in the forst column. So the first numerical column result would be 2, the second would be 0. Possible? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Double Countif
See
http://www.mcgimpsey.com/excel/doubleneg.html In article , "Steph" wrote: Wow, fantastic! Can I ask you to explain how that works? The -- really has me baffled! |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Double Countif
Thank you!!
"JE McGimpsey" wrote in message ... See http://www.mcgimpsey.com/excel/doubleneg.html In article , "Steph" wrote: Wow, fantastic! Can I ask you to explain how that works? The -- really has me baffled! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Double CountIF | Excel Worksheet Functions | |||
double axis, double problem (i hope only to me) | Charts and Charting in Excel | |||
countif with double criteria | Excel Discussion (Misc queries) | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions | |||
End Double Sub | Excel Programming |