Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Convert General to Date

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi, I have in cells such as:
    20010228
    and i need to convert it to date format, such as:
    02/28/2001

    can anyone provide some advice?

    thanks,
    RRA

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sydney, Australia
    Posts
    2,940
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

    How about this?

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

    HTH,
    D

  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-14 11:09, RRA23 wrote:
    Hi, I have in cells such as:
    20010228
    and i need to convert it to date format, such as:
    02/28/2001
    1. After selecting the cells containing your values choose the Data | Text to Columns... menu command.
    2. Press [ Next > ] until you reach Step 3 of 3 where you'll click the 'Date' radio button and pick YMD from its drop down list.
    3. Press [ Finish ].

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •