+ Reply to Thread
Results 1 to 7 of 7

Fix Date format as YYYYMMDD

  1. #1
    Registered User
    Join Date
    07-23-2019
    Location
    TW
    MS-Off Ver
    2016
    Posts
    12

    Fix Date format as YYYYMMDD

    Hi there, I want to fix the format of a range of cells as date with this formatting: "YYYYMMDD" and no texts are supposed to be allowed.
    I also want this formatting to hold true if a user inserts a new row below "G12". Any help would be greatly appreciated. Thank you

    Please Login or Register  to view this content.
    Last edited by AAS44; 08-14-2019 at 04:32 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Fix Date format as YYYYMMDD

    Try this:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-23-2019
    Location
    TW
    MS-Off Ver
    2016
    Posts
    12

    Re: Fix Date format as YYYYMMDD

    still not workable..
    Last edited by AAS44; 08-14-2019 at 04:34 AM.

  4. #4
    Registered User
    Join Date
    07-23-2019
    Location
    TW
    MS-Off Ver
    2016
    Posts
    12

    Re: Fix Date format as YYYYMMDD

    Hey sorry, its not working cause when i type 19990807 for example, it shows me an error "This value doesnt match the data validation restrictions defined for this cell"..

    Quote Originally Posted by ikboy View Post
    Try this:
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Fix Date format as YYYYMMDD

    Numeric length 8 is not a date value.
    For example 2019/08/15 the date value is 43692
    If you want to control the length of numeric must 8 digital, uses below codes.
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,028

    Re: Fix Date format as YYYYMMDD

    Hi, AAS44
    Is there any particular reason why you use 'yyyymmdd'? I mean why not use "-" or "/" as we usually do?

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Fix Date format as YYYYMMDD

    To Worksheet code module
    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] Looking to redisplay date format from yyyymmdd
    By PeteABC123 in forum Excel General
    Replies: 2
    Last Post: 01-24-2017, 12:35 PM
  2. Changing yyyymmdd date format
    By bill22 in forum Excel General
    Replies: 4
    Last Post: 11-24-2014, 03:02 AM
  3. [SOLVED] Date formula - Change Format to YYYYMMDD from Exported Format
    By haleakala17 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2014, 03:22 PM
  4. Need a formula for this format YYYYMMDD-YYYYMMDD (20130801-20130831)
    By Infoway123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2013, 02:25 PM
  5. Get current date in yyyymmdd hh:mm:ss format?
    By shawnh in forum Excel General
    Replies: 3
    Last Post: 01-21-2010, 06:02 PM
  6. =now() Date Function, I format to YYYYMMDD, Want that value...
    By AdamParker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2008, 07:08 PM
  7. Replies: 3
    Last Post: 06-22-2006, 04:45 PM

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