+ Reply to Thread
Results 1 to 3 of 3

Format a cell with a specific pattern possible?

  1. #1
    Registered User
    Join Date
    12-05-2016
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    4

    Format a cell with a specific pattern possible?

    I would like to format a cell so that is will only accept entries in this format, 2 letters, 2 numbers, 1 letter, 2 numbers (AA02D03)
    Is this possible? If so, how?
    Thanks.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,693

    Re: Format a cell with a specific pattern possible?

    Use Data Validation with Custom and use this formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Replace A1 with the actual cell.

    I assumed all the letters are uppercase.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,880

    Re: Format a cell with a specific pattern possible?

    VBA method.

    User defined function like below in standard module.
    Please Login or Register  to view this content.
    You then add following to worksheet module (change range from A1:A100 to target range of your choice).
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Retun the value of a cell above a specific pattern
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2015, 12:02 AM
  2. Copy down hypertext cell range pattern & cell reference formula pattern
    By Underexcelling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2014, 03:23 AM
  3. [SOLVED] Remove pattern from cells only if another cell has a specific selection from dropdown list
    By mook25 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 08-16-2013, 07:32 AM
  4. Replies: 6
    Last Post: 04-08-2013, 05:12 PM
  5. make conditional format the real cell pattern
    By Hein in forum Excel General
    Replies: 2
    Last Post: 10-15-2010, 01:18 PM
  6. How do I set the tab stops in a specific cell pattern?
    By PE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-26-2006, 04:00 PM

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