Restrict cells entry to a-z / A-Z entry only

shawthingz

New Member
Joined
Aug 19, 2006
Messages
49
Hi!

I'm struggling to work out how to only allow a user to enter alpha characters (no digits) into a cell using the validation feature (so I can let them know if it's an invalid entry)

The string length is variable

Can anyone help?

Thx

shawthings
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi

Try:

Select A1 and enter in the data validation->custom->formula:

=LEN(A1)=SUMPRODUCT(LEN(A1)-LEN(SUBSTITUTE(LOWER(A1),MID("abcdefghijklmnopqrstuvwxyz",ROW(INDIRECT("1:26")),1),"")))

Copy the validation to other cells as needed.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,351
Members
452,907
Latest member
Roland Deschain

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