+ Reply to Thread
Results 1 to 4 of 4

Data Validation for Letters and Numbers

  1. #1
    Registered User
    Join Date
    05-29-2013
    Location
    Washington
    MS-Off Ver
    Excel 2007
    Posts
    3

    Data Validation for Letters and Numbers

    I am attempting to restrict a cell in an excel form to letters and numbers in the following format: ##XXX #### ####.

    The spaces are not crucial (though would be beneficial). This seems like it should be simple enough, but I cannot figure it out. Thank you.

  2. #2
    Registered User
    Join Date
    05-29-2013
    Location
    Washington
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Data Validation for Letters and Numbers

    I tried the following formula:

    =AND(LEN(A1)=13,ISNUMBER(LEFT(A1,2)),ISTEXT(MID(A1,3,3)),ISNUMBER(RIGHT(A1,8)))

    But it is not working for some reason.

  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
    52,936

    Re: Data Validation for Letters and Numbers

    Perhaps it would help is you gave a few sample of your data?
    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
    05-29-2013
    Location
    Washington
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Data Validation for Letters and Numbers

    Sure. The "Data to input" cell shows an example of a string of characters to which I want to restrict input, while the "Example Cell" has the Data Validation restriction applied.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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