+ Reply to Thread
Results 1 to 2 of 2

Converting Number to Date

  1. #1
    Registered User
    Join Date
    10-27-2006
    Posts
    34

    Converting Number to Date

    Hello. I have dates that are currently in the format of "20021202" - YYYYMMDD. Excel doesn't currently recognize these numbers as dates. How can I convert them into a format that Excel will recognize as dates. My end goal is to get the numbers into the format MM/DD/YYYY.

    Thanks Much

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by cpadude
    Hello. I have dates that are currently in the format of "20021202" - YYYYMMDD. Excel doesn't currently recognize these numbers as dates. How can I convert them into a format that Excel will recognize as dates. My end goal is to get the numbers into the format MM/DD/YYYY.

    Thanks Much
    Hi cpadude,

    If you data is in A1, try this in B1, format to mm/dd/yyyy

    =DATEVALUE(RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4))

    oldchippy

+ 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