It might be easier to define what characters ARE ALLOWED as opposed to what characters are not allowed.Not exactly. I am trying to restrict users from enetering in "$" within a cell; however I am not sure of the formula for that!
One way:#VALUE!
The Data Validation is the only formula you need, the others are there to show how it works. Invalid characters lumped together in a single string highlighted in bold blue above. You can add your own messages in Data Validation which (a) pop up in a yellow box when you select the cell and (b) a similar message to indicate why the entry was rejected.
Cell Formulas | ||
---|---|---|
Range | Formula | |
B1:B2 | B1 | =LEN(A1)-SUMPRODUCT(--(ISNUMBER(FIND(MID(A1,ROW(INDIRECT("1:" & LEN(A1))),1),"/0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"))))=0 |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
_FilterDatabase | =List1!$A$1:$A$1016 | B1 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
B1:B2 | Cell Value | =FALSE | text | NO |