+ Reply to Thread
Results 1 to 3 of 3

Convert general text to date

  1. #1
    Registered User
    Join Date
    03-10-2005
    Posts
    2

    Convert general text to date

    I have a column of values with general formating like so:

    20050309
    20050322
    20050401

    Where the first 4 digits are the year, next 2 the month and the last 2 digits the day. Can someone tell me an easy way to convert these general values to a valid date format?

    Thanks in advance

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    In a blank column you would need to use this fourmula
    =DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2))
    You can then copy and special paste values - if you wish to

    or

    you would need a macro to change the value of each date cell

  3. #3
    Registered User
    Join Date
    03-10-2005
    Posts
    2
    Excellent....thank you very much.

+ 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