Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to collect the number of letters in a column that also have a
letter in another column. Here is what I am trying to do: I would like to combine to combine the two formulas below countif(C21:C206,"Y") and countif(G21:G206,"E") In other words, I would like a target cell to sum the number of rows that have a "Y" in Column C and a "E" in Column G. Is this possible? Thank you for your help. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=sumproduct(--(c21:c206="y"),--(g21:g206="e"))
Adjust the ranges to match--but you can't use whole columns (except in xl2007). =sumproduct() likes to work with numbers. The -- stuff changes trues and falses to 1's and 0's. Bob Phillips explains =sumproduct() in much more detail he http://www.xldynamic.com/source/xld.SUMPRODUCT.html And J.E. McGimpsey has some notes at: http://mcgimpsey.com/excel/formulae/doubleneg.html John English wrote: I am trying to collect the number of letters in a column that also have a letter in another column. Here is what I am trying to do: I would like to combine to combine the two formulas below countif(C21:C206,"Y") and countif(G21:G206,"E") In other words, I would like a target cell to sum the number of rows that have a "Y" in Column C and a "E" in Column G. Is this possible? Thank you for your help. -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you sir that did the trick.
"Dave Peterson" wrote: =sumproduct(--(c21:c206="y"),--(g21:g206="e")) Adjust the ranges to match--but you can't use whole columns (except in xl2007). =sumproduct() likes to work with numbers. The -- stuff changes trues and falses to 1's and 0's. Bob Phillips explains =sumproduct() in much more detail he http://www.xldynamic.com/source/xld.SUMPRODUCT.html And J.E. McGimpsey has some notes at: http://mcgimpsey.com/excel/formulae/doubleneg.html John English wrote: I am trying to collect the number of letters in a column that also have a letter in another column. Here is what I am trying to do: I would like to combine to combine the two formulas below countif(C21:C206,"Y") and countif(G21:G206,"E") In other words, I would like a target cell to sum the number of rows that have a "Y" in Column C and a "E" in Column G. Is this possible? Thank you for your help. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF in between rows | Excel Worksheet Functions | |||
How Do I use COUNTIF Combining the Text from 2 Columns | Excel Worksheet Functions | |||
can countif function look at 2 separate columns for criteria | Excel Worksheet Functions | |||
Combining IF and COUNTIF based on two columns | Excel Discussion (Misc queries) | |||
Using COUNTIF to check values in multiple columns | Excel Worksheet Functions |