Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
countif (2) conditions
Hi, I am trying to give 2 conditions in the following line in my code it doesn't work. Can someone help me with the syntax please? If I give one condition (high or low) it works. But I need to save both high & low. If Application.WorksheetFunction.CountIf(.Rows(Lrow), "High" And "Low") = 0 Then .Rows(Lrow).Delete Thank you Saziz -- saziz ------------------------------------------------------------------------ saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350 View this thread: http://www.excelforum.com/showthread...hreadid=573964 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
countif (2) conditions
One way:
If Application.WorksheetFunction.CountIf(.Rows(Lrow), "High") _ + Application.WorksheetFunction.CountIf(.Rows(Lrow), "Low") _ = 0 Then .Rows(Lrow).Delete saziz wrote: Hi, I am trying to give 2 conditions in the following line in my code it doesn't work. Can someone help me with the syntax please? If I give one condition (high or low) it works. But I need to save both high & low. If Application.WorksheetFunction.CountIf(.Rows(Lrow), "High" And "Low") = 0 Then .Rows(Lrow).Delete Thank you Saziz -- saziz ------------------------------------------------------------------------ saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350 View this thread: http://www.excelforum.com/showthread...hreadid=573964 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
countif (2) conditions
Andrew, Thank you for the help. Regards Sazi -- sazi ----------------------------------------------------------------------- saziz's Profile: http://www.excelforum.com/member.php...nfo&userid=635 View this thread: http://www.excelforum.com/showthread.php?threadid=57396 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
countif (2) conditions
Andrew, Thank you for the help. Regards Saziz -- saziz ------------------------------------------------------------------------ saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350 View this thread: http://www.excelforum.com/showthread...hreadid=573964 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
countif (2) conditions
Andrew, Thank you for the help. Regards Saziz -- saziz ------------------------------------------------------------------------ saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350 View this thread: http://www.excelforum.com/showthread...hreadid=573964 |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
countif (2) conditions
Andrew, Thank you for the help. Regards Saziz -- saziz ------------------------------------------------------------------------ saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350 View this thread: http://www.excelforum.com/showthread...hreadid=573964 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Countif Conditions - Use of conditions that vary by cell value | Excel Discussion (Misc queries) | |||
COUNTIF with two conditions | Excel Discussion (Misc queries) | |||
CountIF on two conditions | Excel Programming | |||
COUNTIF for 2 conditions | Excel Worksheet Functions | |||
How can I use COUNTIF to sum for two conditions? | Excel Worksheet Functions |