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.
> 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.
> 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(ISERROR(SEARCH("BCOT",A2))=TRUE,IF(ISERROR(SEARCH("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(ISERROR(SEARCH("BCOT",A2))=TRUE,IF(ISERROR(SEARCH("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.
"cm" wrote: > you can nest up to 7 if statements; if you need more conditions, there will > need to be a different solution. > -- > hope to help, > cm
> "Atif" wrote:
> > Can we add more conditions?
> > "cm" wrote:
> > > replace your formula with this one:
> > > =IF(ISERROR(SEARCH("BCOT",A2))=TRUE,IF(ISERROR(SEARCH("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.
following statement worked for me: =IF(ISERROR(FIND("YSC",AO2)),IF(ISERROR(FIND("MHO",AO2)),IF(ISERROR(FIND("W CC",AO2)),IF(ISERROR(FIND("BCOT",AO2)),IF(ISERROR(FIND("SCC",AO2)),IF(ISERR OR(FIND("BMTT",AO2)),"","BMTT"),"SCC"),"BCOT"),"WCC"),"MHO"),"YSC")
"cm" wrote: > you can nest up to 7 if statements; if you need more conditions, there will > need to be a different solution. > -- > hope to help, > cm
> "Atif" wrote:
> > Can we add more conditions?
> > "cm" wrote:
> > > replace your formula with this one:
> > > =IF(ISERROR(SEARCH("BCOT",A2))=TRUE,IF(ISERROR(SEARCH("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.