View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Simon Lloyd[_231_] Simon Lloyd[_231_] is offline
external usenet poster
 
Posts: 1
Default Conditional COUNTIF


Simon Lloyd;344786 Wrote:
You can't use the OR operator like that you need to use an array like
this:
=IF(COUNTIF($AQ2:$BB2,{"ABC","DEF"}),"T","F")Ignor e that rubbish i just sent you - don't know why i did that, its

early hours of the morning here, use this:
=IF(OR(COUNTIF($AQ2:$BB2,"ABC"),COUNTIF($AQ2:$BB2, "DEF")),"T","F")


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=96462