+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Input Mask for Cell Data

Hybrid View

  1. #1
    Registered User
    Join Date
    03-21-2009
    Location
    Canterbury, UK
    MS-Off Ver
    Excel 2007
    Posts
    2

    Input Mask for Cell Data

    Hi,

    I'm trying to use some sort of input mask for cell data entry. The cell is for a car registration (new style) so it will be fixed at two letters followed by two numbers a space and then three letters... AA02 AAA. Im using excel 2007.

    Can anyone help me with this? It seems so simple but yet so hard...

    Cheers,
    Adzi
    Last edited by VBA Noob; 03-21-2009 at 06:01 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Input Mask for Cell Data

    Welcome to the forum.

    This returns TRUE if for a valid string:

    =AND(LEN(A1)=8, CODE(MID(A1, {1,2,3,4,5,6,7,8},1)) >= {65,65,48,48,32,65,65,65}, CODE(MID(A1, {1,2,3,4,5,6,7,8}, 1)) <= {90,90,57,57,32,90,90,90})
    Entia non sunt multiplicanda sine necessitate

+ 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