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.
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.
The following formula determines if the text "CHECK" appears in cell C10. If it does not, the result is blank. If it does, the result is the work "CHECK".
Check out the
FIND()
function in Excel.Syntax:
Returns
#VALUE!
if it doesn't find the substring.Try using this:
This will return
TRUE
if cellA3
containsSome Text
.Here is the formula I'm using
=IF( ISNUMBER(FIND(".",A1)), LEN(A1) - FIND(".",A1), 0 )
I like Rink.Attendant.6 answer. I actually want to check for multiple strings and did it this way:
First the situation: Names that can be home builders or community names and I need to bucket the builders as one group. To do this I am looking for the word "builder" or "construction", etc. So -
For those who would like to do this using a single function inside the IF statement, I use
to see if the substring TEXT is in cell A1
[NOTE: TEXT needs to have asterisks around it]