View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Vito
 
Posts: n/a
Default When a cell contains a certain value


Peo Sjoblom Wrote:
Note that this will return an error if not found, not "Other"
You need to use either isnumber or iserror like in

=IF(ISNUMBER(SEARCH("Carlsson",A1)),"Carlsson","Ot her")

=IF(ISERROR(SEARCH("Carlsson",A1)),"Other","Carlss on")

--

Regards,

Peo Sjoblom






Thanks. Didn't catch that.


--
Vito
------------------------------------------------------------------------
Vito's Profile: http://www.excelforum.com/member.php...o&userid=29182
View this thread: http://www.excelforum.com/showthread...hreadid=497914