Results 1 to 2 of 2

Modify Date and Time

Threaded View

  1. #1
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    Modify Date and Time

    Hi everyone. I really need some help with modifying stuff in excel

    Here's the situation: (please refer to attached picture)

    - Column B is a column for a Date. The format is YearMonthDay. For example, if I have 20000105 , the first 4 digits is the Year, the 2 digits after that is the Month and the last 2 digits is the Day. So that would be January 5, 2000. I need to change 20000105 to this format: 1/5/2000 or to some other regular date format so that sorting can be done by date. This has to be done for all cells in Column B.

    - Column C is a column for Hour(or Time) . The format is HourMinuteSeconds . The hour is military time. For example, if I have 150018 , the first 2 digits is Hour, the next 2 digits is Minute and the last 2 digits is Seconds. So that would be 3:00:18 or Three o'clock 18 seconds. I need to change 150018 to this format: 3:00:18 or some other regular time format so that sorting can be done by time. This has to be done for all cells in Column C.

    Note that time can also appear as something like 94936 wherein only the first digit is the hour. So this would be 9:49:36 or Nine forty nine and 36 seconds.

    If anyone can suggest a macro for this it would be much appreciated. Thank you.
    Attached Images Attached Images
    Last edited by uberathlete; 07-11-2007 at 12:07 PM.

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