I have users who are using my file to generate a name in an approved format. This includes checking for the following characters that are NOT to be included in the name:
| / \ : - [ ] { } * ? ' " ^ #
I thought this was going to be a simple SEARCH function, but I'm getting results I wasn't expecting.
L11 = (the character I'm checking for; L12 is the next character and so on)
$K$3 = (the text that I am checking for the existence of these "bad" characters)
To be clear, these are characters I do not want in K3, so if they do exist, I need to make the user aware of this and remove them.
Here's an example of what K3 can look like:
The () is fine, but my formula should identify the / and []. However, the results all say FALSE.
And to make things even more confusing, I'm getting TRUE for characters that are not in K3 (these characters are * and ?).
What am I overlooking, please?
| / \ : - [ ] { } * ? ' " ^ #
I thought this was going to be a simple SEARCH function, but I'm getting results I wasn't expecting.
Code:
=IFERROR(IF(SEARCH(L11,$K$3),TRUE),FALSE)
$K$3 = (the text that I am checking for the existence of these "bad" characters)
To be clear, these are characters I do not want in K3, so if they do exist, I need to make the user aware of this and remove them.
Here's an example of what K3 can look like:
Development/Implementation [45] MME (PERC)
The () is fine, but my formula should identify the / and []. However, the results all say FALSE.
And to make things even more confusing, I'm getting TRUE for characters that are not in K3 (these characters are * and ?).
What am I overlooking, please?