referencing text in an IF statement

  • Thread starter Michelle Thompson
  • Start date
M

Michelle Thompson

I am trying to use an IF statement to look for text in range of cells but
cannot get it to return the value I want I think because I'm searching for
text not a value. If any cell in a column contains the text "Error" I want
the cell I'm in to also read "Error". Here's the formula I have but it won't
work: =IF(OR(A122:A457="Error"),"Error",""). Any suggestions?
 
P

p45cal

*ARRAY-ENTERED*:
=IF(SUM(--(NOT(ISERR(SEARCH("Error",A122:A457)))))>0,"Error","All OK")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top