Check whether a cell contains a substring

geotheory picture geotheory · Sep 4, 2013 · Viewed 657.3k times · Source

Is there an in-built function to check if a cell contains a given character/substring?

It would mean you can apply textual functions like Left/Right/Mid on a conditional basis without throwing errors when delimiting characters are absent.

Answer

gwin003 picture gwin003 · Sep 4, 2013

Try using this:

=ISNUMBER(SEARCH("Some Text", A3))

This will return TRUE if cell A3 contains Some Text.