+ Reply to Thread
Results 1 to 4 of 4

How to lock the format that data is entered into a cell

  1. #1
    Registered User
    Join Date
    12-09-2015
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    18

    How to lock the format that data is entered into a cell

    Hi,

    I would like to 'lock' how data is entered into a cell. I am trying to reduce inputting error and make it only possible to enter data into a particular cell in date format. The reason I am doing this is that certain other formulas in the sheet rely on this data being correct and other users tend to write the date in a different format eg 01/02/2017 verses 01.02.2017. If the data that is entered is correct matches the format then the it should be accepted. If it is entered in an incorrect format I want it to not accept the entry.

    Cheers,

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to lock the format that data is entered into a cell

    Try Data Validation
    • Allow: Date
    • Between
    • Start date: 01/01/1900
    • End date: 31/12/3000
    • Ok

    it will accept dates in this format or change it to this format (I hope )
    If format will be wrong you will get Warning

    You can use there Input Message info and Error Alert what's going wrong

    Note: DataValidation works this way with manual entering. It doesn't prevent Copy/Paste
    Last edited by sandy666; 10-03-2017 at 12:20 AM. Reason: Note

  3. #3
    Registered User
    Join Date
    12-09-2015
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    18

    Re: How to lock the format that data is entered into a cell

    Thanks Sandy!

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to lock the format that data is entered into a cell

    You are welcome

    If that takes care of your original question, & to say Thanks, please click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
    then select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it - ignore it.
    Thank you.

+ 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] Insert and lock today's date when data entered into cell A2
    By nellyc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2015, 03:53 AM
  2. [SOLVED] Lock a single cell after data is entered
    By awsachsen in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-25-2014, 02:28 PM
  3. Replies: 2
    Last Post: 08-30-2012, 06:08 AM
  4. Lock a cell as soon as data is entered with set password
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-15-2012, 04:28 PM
  5. How to auto lock a cell once data is entered
    By infonaurvind in forum Excel General
    Replies: 1
    Last Post: 06-08-2012, 06:57 AM
  6. [SOLVED] Lock Data in Cell after entered
    By CrimsonPlague29 in forum Excel General
    Replies: 0
    Last Post: 05-09-2006, 06:55 AM
  7. Replies: 0
    Last Post: 03-30-2006, 07:45 AM

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