View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.newusers
CM CM is offline
external usenet poster
 
Posts: 136
Default Find and IF statement

replace your formula with this one:

=IF(ISERROR(SEARCH("BCOT",A2))=TRUE,IF(ISERROR(SEA RCH("BCPN",A2))=TRUE,"","BCPN"),"BCOT")
--
hope to help,
cm


"Atif" wrote:

Hi:

I am using following formula to search a string and display in target cell,
if first IF condition returns TRUE it displays BCOT, if not #value! error.
any help.

=IF(SEARCH("BCOT",A2)0,"BCOT",IF(SEARCH("BCPN",A2 )0,"BCPN",""))