+ Reply to Thread
Results 1 to 5 of 5

Custom date format without spaces or punctuation

Hybrid View

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2002
    Posts
    2

    Custom date format without spaces or punctuation

    Is there a way to put a custom format for dates that would result in yyyymmdd? ie, Feb 1 2012 would read 20120201? Nothing I try seems to work.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Custom date format without spaces or punctuation

    Hi Doowle, welcome to the forum.

    If your cell contains a true date value, just right-click on it and choose Format Cells. Select Custom, and then beneath "Type:", enter the format you want, e.g. yyyymmdd

    Click OK and you're done.

  3. #3
    Registered User
    Join Date
    07-10-2012
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: Custom date format without spaces or punctuation

    Thanks. I'm sorry, I phrased that really poorly. I am pasting in text values, but I want them to convert to actual dates while still displaying as yyyymmdd. So I need a way to have it both convert the value I paste into date format, but apply the custom format so it continues to look the same. I did apply the custom formatting, but it reads what I paste in as a text value.
    ie I am copying 20120201 from a different program and pasting it into a cell which has the yyyymmdd custom format applied to it. But because it reads what I paste in as text, it doesn't display it. It just gives me #### across the cell.

  4. #4
    Registered User
    Join Date
    07-07-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Custom date format without spaces or punctuation

    paste your date text in cell A1, then add the following formula in cell B1 (formatted as yyyymmdd)

    =DATEVALUE(MID(A1,1,4)&"/"&MID(A1,5,2)&"/"&MID(A1,7,2))

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Custom date format without spaces or punctuation

    select all the text date
    go to data
    text-to-column
    delimited
    choose-- date

    the date will be then converted to real dates
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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