+ Reply to Thread
Results 1 to 4 of 4

Date Conversion

  1. #1
    MIchel Khennafi
    Guest

    Date Conversion

    Good morning Gurus

    I have a cell into which the following string is entered "14FEB2005"... This
    is a value extracted from a file. This is currently being handled as a text
    by Excel. What could be the formula I need to transform this value into a
    date like "14-feb-2005" and have it treated like a real date?

    I tried to use Date (mid(),mid(),mid()).. but got an error for the month
    conversion... Any other suggestion?

    Thanks a lot

    Michel



  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Michel,

    If your text is in A1 then

    =VALUE(A1)

    Format as Custom dd-mmm-yyyy.

    HTH

    Steve

  3. #3
    Ron Coderre
    Guest

    RE: Date Conversion

    Try this:

    With
    A1: 14FEB2005
    B1: =--A1

    OR...you can use Text-to-Columns and set that cell's data type to Date: DMY

    Does that help?
    ***********
    Regards,
    Ron

    XL2002, WinXP


    "MIchel Khennafi" wrote:

    > Good morning Gurus
    >
    > I have a cell into which the following string is entered "14FEB2005"... This
    > is a value extracted from a file. This is currently being handled as a text
    > by Excel. What could be the formula I need to transform this value into a
    > date like "14-feb-2005" and have it treated like a real date?
    >
    > I tried to use Date (mid(),mid(),mid()).. but got an error for the month
    > conversion... Any other suggestion?
    >
    > Thanks a lot
    >
    > Michel
    >
    >
    >


  4. #4
    Scoops
    Guest

    Re: Date Conversion


    MIchel Khennafi wrote:
    > Good morning Gurus
    >
    > I have a cell into which the following string is entered "14FEB2005"... This
    > is a value extracted from a file. This is currently being handled as a text
    > by Excel. What could be the formula I need to transform this value into a
    > date like "14-feb-2005" and have it treated like a real date?
    >
    > I tried to use Date (mid(),mid(),mid()).. but got an error for the month
    > conversion... Any other suggestion?
    >
    > Thanks a lot
    >
    > Michel


    Hi Michel

    Not that it's any better than the other posts but also:

    =DATEVALUE(D3)

    Regards

    Steve


+ 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