+ Reply to Thread
Results 1 to 5 of 5

how to convert 19900301 to 03/01/1990

  1. #1
    clarice
    Guest

    how to convert 19900301 to 03/01/1990

    how can a date that is set up in excel as 19900301 be converted automatically
    to read 03/01/1990?

  2. #2
    Registered User
    Join Date
    10-11-2004
    Posts
    69
    Quote Originally Posted by clarice
    how can a date that is set up in excel as 19900301 be converted automatically
    to read 03/01/1990?
    While you're waiting for an expert...here's an amateur's suggestion .

    Insert another column or row and (assuming the original is in cell A1) use the formula...

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

  3. #3
    Ron Rosenfeld
    Guest

    Re: how to convert 19900301 to 03/01/1990

    On Fri, 3 Feb 2006 03:42:19 -0800, "clarice"
    <[email protected]> wrote:

    >how can a date that is set up in excel as 19900301 be converted automatically
    >to read 03/01/1990?


    Method 1:

    Select the cell(s)
    Data/Text to Columns
    Next
    Next
    Column Data Format
    Date YMD (or YDM as appropriate)
    Finish

    Method 2 (formula):

    =--TEXT(A1,"0000\/00\/00")

    Format as Date

    Note that the dates will be analyzed and parsed according to your local date
    format.


    --ron

  4. #4
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    If you want the answer to be in a date format and the string is in A1 one of the following will work. The date functions parameters are year, month, day so it depends if you are displaying european or american dates.

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

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

    If you format the date as dd-mmm-yyyy to start with, to check you have selected the right formula, then use dd/mm/yyyy or mm/dd/yyyy are appropriate

    Regards

    Dav

  5. #5
    Pete
    Guest

    Re: how to convert 19900301 to 03/01/1990

    Another way:

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

    and format as date.

    Hope this helps.

    Pete


+ 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