+ Reply to Thread
Results 1 to 5 of 5

Need to allow on 30 letters to be entered into a cell; no numbers or characters...

Hybrid View

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    King Of Prussia, PA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need to allow on 30 letters to be entered into a cell; no numbers or characters...

    Good Afternoon!

    I've seen a number of posts related to data validation and only allowing 'Letters' to be entered into a particular cell, but I haven't seen what I am looking for... In fact, I've not been able to piece together a solution from multiple related searches.

    So without further ado...

    I am creating a document that I can share with others which restricts what the user can successfully enter. I can use Excel's standard data validation options for all but 3 columns on my spreadsheet which MUST be letters only (A-Z) and have varying length restrictions 30, 50, 120...

    Thanks!

    BMH

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Need to allow on 30 letters to be entered into a cell; no numbers or characters...

    does the length restriction mean no more than 30 characters, or exactly 30 characters?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Need to allow on 30 letters to be entered into a cell; no numbers or characters...

    under DV there is an option for "text length"...maybe that will give you what you need?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    08-02-2012
    Location
    King Of Prussia, PA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need to allow up to 30 letters to be entered into a cell; no numbers or characters...

    Unfortunately the Text length on DV in Excel doesn't restrict the characters that may be entered.

    The attributes of the cell needs to be:
    1. Letters only A-Z (no numbers, punction, or other symbols)
    2. UP TO the max value, does not NEED to be 30

    Thanks!

    BMH

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Need to allow on 30 letters to be entered into a cell; no numbers or characters...

    assuming a1 is cell being validated try a custom validation formula of
    =AND(LEN(A1)<=30,SUM(LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),CHAR(ROW(INDIRECT("65:90"))),"")))=LEN(A1))

+ 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