formula w exception

M

Micayla Bergen

can i have a formula that looks for one thing but with exceptions?
i.e. =IF(LEN(A5)>3,1,"") but if A5 contains CMT, DIVS or FUND
many thanks
 
B

Bernard Liengme

=IF(OR(ISERROR(SEARCH("CMT",A5)),ISERROR(SEARCH("DIVS",A5)),ISERROR(SEARCH("FUND",A5)),
IF(LEN(A5)>3,1,""), "" )
best wishes
 
M

Micayla Bergen

Thanks Bernard. however i get an error saying there is a missing parenthesis,
so i have added one to the end, then i get a formula message saying i am
missing the value if true value if false values
 
M

Micayla Bergen

so i have tried thi
=IF(OR(ISERROR(SEARCH("CMT",A6)),ISERROR(SEARCH("DIVS",A6)),ISERROR(SEARCH("FUND",A6))),,IF(LEN(A6)>3,1,""))
and still get nothing
 
Top