Validating to only except text

stevey03

New Member
Joined
Nov 28, 2003
Messages
25
Just wondering if anyone knew how to set up a validation rule on a field to only accept letters. for example the field in question is a staff member's name field, and I have it set to text, but I don't want any numerical characters in the field.

Anyone got any ideas?

Steve
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Steve

Do you not have a list/table of staff member's names?

If you do you could use it to create a ccombobox lookup and only allow values in that list.
 
Upvote 0
Hi Norie!

No I haven't, It's more for when registering the member of staff to hold their details on the database.

Steve
 
Upvote 0
Steve

It is possible but would probably require creating a user defined function.

Here is a thread that deals with similar issue, but for textboxes on userforms IF NOT ISTEXT OR BLANK...
 
Upvote 0
Hi Steve
Just a thought on your text validation problem, there is a way of excluding just numerical characters which involves using something like this in your field validation rule :

Not Like "*0*" And Not Like "*1*" And Not Like "*2*" ....... And Not Like "*9*"

This will prevent numbers from being entered into the field but won't prevent punctuation marks etc. A little clunky I know but less clunky than testing for Like "*A*" ... to ... Like "*Z*" - I'm not sure if that would fit into the validation box anyway, but it could be worth a try.

My 2c
Andrew :)
 
Upvote 0

Forum statistics

Threads
1,221,864
Messages
6,162,497
Members
451,770
Latest member
tsalaki

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top