Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Jun 2002
    Location
    vancouver, BC, Br. Columbia
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Convert poorly formed text dates into XL dates (Excel 97)

    I have several thousand rows of dates mostly all entered in "MMMM DD/YY" format. They are not stored as dates, but as text strings. I've tried the DATEVALUE function with no joy. Does anyone know of a way to convert these into "real" dates. I could do it in Excel 97 or Access 97, which is the ultimate destination of this data.

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Convert poorly formed text dates into XL dates (Excel 97)

    find - replace the "/" with ", 19" or ", 20" and they should convert themselves

    Steve

  3. #3
    2 Star Lounger
    Join Date
    Jun 2002
    Location
    vancouver, BC, Br. Columbia
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Convert poorly formed text dates into XL dates (Excel 97)

    Thank you Steve. I'll try it. Am also having good luck with using the VBA DateValue function. I inserted a column to the right of my column of mal-formed dates and used: activecell.value = DateValue(activecell.offset(0,-1).value).

  4. #4
    Lounger
    Join Date
    Apr 2002
    Location
    Los Angeles, California, USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Convert poorly formed text dates into XL dates (Excel 97)

    Had a similar situation with inconsistent user input...

    I put the columns, I had multiple, through the old analog machine first.

    Sorted the columns and looked at the extremes; that old chaff and wheat thing.

    A quick look at the top and bottom and some quick Find & Replace saved a lot of headaches and time.

    Good Luck,

    <img src=/S/cool.gif border=0 alt=cool width=15 height=15>

Posting Permissions

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