+ Reply to Thread
Results 1 to 5 of 5

Convert from 'text' or 'general' to 'date' format

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2000
    Posts
    3

    Convert from 'text' or 'general' to 'date' format

    Is it a possible to convert the following 'text' formatted sequence to a date?

    070501 to 05/01/07 or 05/01/2007
    070613 to 06/13/07 or 06/13/2007

    I have some spreadsheets that were copied and pasted from various databases, I am looking to combine to a single spreadsheet, but need all of the various components in the same format first...

    Thanks!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Convert from 'text' or 'general' to 'date' format

    Use

    =DATE(LEFT(A1,2)+100,MID(A1,3,2),RIGHT(A1,2))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2000
    Posts
    3

    Re: Convert from 'text' or 'general' to 'date' format

    Thanks so much!! It worked perfectly!

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Convert from 'text' or 'general' to 'date' format

    select column use text to columns (data/text to columns)skip through it until you see column data format choose date and select ymd
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    07-11-2012
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2000
    Posts
    3

    Re: Convert from 'text' or 'general' to 'date' format

    Excellent again! My boss and I had been working the whole morning trying to figure this out and now I've got two perfectly good ways to finish in the future!

+ 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