Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
row by row comparison using a "countif" and "and" condition?
Using Excel 2003. Thanks in advance for the formula to
COUNTIF(F2:F2121,"ABC"" AND (L2:L2121 = "DEF"))?? How can you compare row-by-row using an and condition vs. going thru the entire column? In other words, does a row have ABD and DEF simulataneously in 2 separate columns vs the entire column being evaluated. I have about 2K columns for which each row must be evaluated 1 by 1 with this and condition. Thanks very much! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
row by row comparison using a "countif" and "and" condition?
On May 12, 3:49 pm, controlfreak
wrote: Using Excel 2003. Thanks in advance for the formula to COUNTIF(F2:F2121,"ABC"" AND (L2:L2121 = "DEF"))?? How can you compare row-by-row using an and condition vs. going thru the entire column? In other words, does a row have ABD and DEF simulataneously in 2 separate columns vs the entire column being evaluated. I have about 2K columns for which each row must be evaluated 1 by 1 with this and condition. Thanks very much! Since the count can only be zero or one, this will do the same as the COUNT if ... =(F2="ABC")*(L2="DEF") or ... =IF(AND(F2="ABC",L2="DEF"),1,0) Just copy it down the column where you want the results. BTW, the syntax in the COUNTIF you gave is incorrect. In fact, I don't see how it can possibly be made to work, even the way you say it works. Tom Lavedas =========== http://members.cox.net/tglbatch/wsh/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
row by row comparison using a "countif" and "and" condition?
Thank you Tom for answering my question on a row by row comparison; I will
see what I can do w/it. I was unable to open the email w/out going into €śOffice Online€ť specifically, and hence my delayed thank you note. I hope you wont mind if I contact you again w/a question every now and then.. Thanks once again; I really appreciate your time and help! "T Lavedas" wrote: On May 12, 3:49 pm, controlfreak wrote: Using Excel 2003. Thanks in advance for the formula to COUNTIF(F2:F2121,"ABC"" AND (L2:L2121 = "DEF"))?? How can you compare row-by-row using an and condition vs. going thru the entire column? In other words, does a row have ABD and DEF simulataneously in 2 separate columns vs the entire column being evaluated. I have about 2K columns for which each row must be evaluated 1 by 1 with this and condition. Thanks very much! Since the count can only be zero or one, this will do the same as the COUNT if ... =(F2="ABC")*(L2="DEF") or ... =IF(AND(F2="ABC",L2="DEF"),1,0) Just copy it down the column where you want the results. BTW, the syntax in the COUNTIF you gave is incorrect. In fact, I don't see how it can possibly be made to work, even the way you say it works. Tom Lavedas =========== http://members.cox.net/tglbatch/wsh/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Text "comparison" operator for "contains" used in an "IF" Function | Excel Worksheet Functions | |||
Difficulty "countif"-ing number of "L1" or "L2" on an autofiltered | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |