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


Sara;344766 Wrote:
What is wrong with this formula

IF(COUNTIF($AQ2:$BB2,OR("ABC","DEF")),"T","F")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")


--
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