+ Reply to Thread
Results 1 to 3 of 3

Convert number to Date value

  1. #1
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Convert number to Date value

    How can i convert this string of numbers, which is a date 20120102 into TRUE date string because i am trying to find day of week? i tried a text formula but it didn't work.

    Appreciate your help once again.. lifesaver.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Convert number to Date value

    Use this:

    =DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

    then format as date. I've assumed your number represents yyyymmdd - if the month and date are reversed, then change the 2nd and 3rd terms around in the formula above.

    Hope this helps.

    Peete

  3. #3
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: Convert number to Date value

    Thank you! I don't know why i didn't think of this combo.

+ 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