+ Reply to Thread
Results 1 to 4 of 4

making sure cell has j prefix

  1. #1
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690

    making sure cell has j prefix

    hi guys i have a cell "h23" that must always start with a "j" or a "J"
    the trouble is some of my users are only putting in the number
    ie 2345 when it should be j2345 or J2345
    is there anyway i can control this please?
    Last edited by stevesunfold; 11-23-2008 at 06:06 AM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You could try a custom format

    "J"#
    or with code

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    Select the cells which you want to start with J

    Click on
    Data --> Validation.

    In Allow:
    Select "Custom"


    In Formula:
    Type =LEFT(H23 , 1) = "J"

  4. #4
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    brilliant thanks vba
    the code is perfect
    thanks aslso shijesh

+ 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