+ Reply to Thread
Results 1 to 6 of 6

List of cells in excel which will allow only alphabets!

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    20

    List of cells in excel which will allow only alphabets!

    Hi,

    I need to format a list of cells in excels which will accept only alphabets - no numeric or special characters.
    I would prefer to do it in a simple method rather than write a complicated code for the same.
    Can anyone help please?

    Thanks!

    Abhinav

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: List of cells in excel which will allow only alphabets!

    in data validation
    create a formula entry
    and use
    =NOT(ISERROR( SUMPRODUCT( SEARCH(MID( A1,ROW( INDIRECT( "1:"&LEN(A1))), 1), "abcdefghijklmnopqrstuvwxyz" ))))

    see cell A1 on attahed
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-30-2013
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: List of cells in excel which will allow only alphabets!

    Hi I was just checking out your formula and the sheet you attached.
    Through same Data Validation, if we put the following formula:
    =istext(range)
    That too is working perfectly.

    Just check.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: List of cells in excel which will allow only alphabets!

    =istext(range)
    that will only dis-allow numbers
    symbols like ? / will be valid and entered - so its not as requested
    only alphabets - no numeric or special characters
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: List of cells in excel which will allow only alphabets!

    Quote Originally Posted by etaf View Post
    =NOT(ISERROR( SUMPRODUCT( SEARCH(MID( A1,ROW( INDIRECT( "1:"&LEN(A1))), 1), "abcdefghijklmnopqrstuvwxyz" ))))
    That will allow strings that contain wildcards:

    *
    ?
    X*
    ?Y
    d*g
    ~~

    Try this...

    =COUNT(FIND(LOWER(MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1)),UPPER(A2)))=0

    If you test that formula in a cell on the worksheet it must be array entered.

    Array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: List of cells in excel which will allow only alphabets!

    Here's another one that might be slightly more effiicient.

    Create this named expression...

    Name: Letters
    Refers to:

    ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

    Then, the validation formula becomes:

    =AND(FIND(MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1),Letters))

    If you test that formula in a cell on the worksheet it must be array entered.

    Array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    When setting up the validation uncheck: Ignore Blank
    Last edited by Tony Valko; 06-29-2013 at 11:20 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1