+ Reply to Thread
Results 1 to 2 of 2

Need help with dates

  1. #1
    Registered User
    Join Date
    07-11-2005
    Posts
    38

    Exclamation Need help with dates

    Hi,

    My worksheet extracts data from another source, but the dates are in a weird format. For example, 20050607. This means 06/07/2005. I have tried several ways to try to fix this number to look like a date, but I can't seem to do it. How can I format numbers like 19990509 into a date format like 05/09/1999? Please help!! Thanks in advance

  2. #2
    Tom Ogilvy
    Guest

    Re: Need help with dates

    for each cell in selection
    cell.value = Mid(cell,5,2) & "/" & right(cell,2) & "/" & Left(cell,4)
    Next

    You might need to format the cell as date as well.
    You dates are ambiguous, so I don't know whether you are a mm/dd/yyyy or
    dd/mm/yyyy kind of person.
    --
    Regards,
    Tom Ogilvy

    "Sethaholic" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi,
    >
    > My worksheet extracts data from another source, but the dates are in a
    > weird format. For example, 20050607. This means 06/07/2005. I have
    > tried several ways to try to fix this number to look like a date, but I
    > can't seem to do it. How can I format numbers like 19990509 into a date
    > format like 05/09/1999? Please help!! Thanks in advance
    >
    >
    > --
    > Sethaholic
    > ------------------------------------------------------------------------
    > Sethaholic's Profile:

    http://www.excelforum.com/member.php...o&userid=25113
    > View this thread: http://www.excelforum.com/showthread...hreadid=386236
    >




+ 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