+ Reply to Thread
Results 1 to 13 of 13

Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

  1. #1
    Registered User
    Join Date
    12-29-2009
    Location
    Milwaukee, US
    MS-Off Ver
    Excel 2007
    Posts
    25

    Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    I have an Excel report that I import from IBM Clear Quest tool (Web App). A field, 'Submit_date' in this report has data in the following format:

    'Jan 12, 2012 12:00:00 AM'

    If I double-click in the cell the cursor is after the AM. When I click outside of the cell, the date time stamp changes to 1/12/2012.

    My question is, how to change the entire column so that all data gets converted to short date (mm/dd/yyyy) and thereby making it a data sortable field.

    Appreciate your help very much!

  2. #2
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Standard cell formatting should work on this. Click on the column label(not a cell), then right-click inside the selected column and choose format cells. Select whatever formatting you want.

  3. #3
    Registered User
    Join Date
    12-29-2009
    Location
    Milwaukee, US
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Hi Dennis, I tried your suggested route but, it didn't work. FYI - When the excel is imported, the field has 'General' formatting.

  4. #4
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Try multiplying each cell by 1 (e.g., =A2*1), and then make sure it is formatted as a date. You can multiply it by 1 in another column and then copy/paste special/values back to the original column

  5. #5
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Actually, if you have single quotes around both sides of the date, try this instead:
    =(LEFT(A2,LEN(A2)-1))*1

    Then, copy/paste special/values back into the original column.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,786

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Try using Text to columns

    Select columns of dates then Data > Text to columns > OK

    That should convert all dates - now format as required
    Audere est facere

  7. #7
    Registered User
    Join Date
    12-29-2009
    Location
    Milwaukee, US
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Hi ATLGator, your suggested solution (multiplying by 1) did work for me.

    One question - Do you know why the 'Format Cells' doesn't change such 'General' data..?

  8. #8
    Registered User
    Join Date
    12-29-2009
    Location
    Milwaukee, US
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Hi daddylonglegs, your suggested solution is also very helpful! Thanks!

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,786

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Quote Originally Posted by harsh2209 View Post
    Do you know why the 'Format Cells' doesn't change such 'General' data..?
    Your dates are formatted as text - you can only use formatting to change the appearance of numeric data (like real dates) - formatting can't change text-formatted values to numbers or vice versa

  10. #10
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Do you still need any help?

  11. #11
    Registered User
    Join Date
    01-22-2013
    Location
    Indai
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    It is not working for me 9/27/2012 12:00:00 AM this needs to be converted in dd/mm/yyyy format. I tried above solution but not successful.

  12. #12
    Registered User
    Join Date
    01-22-2013
    Location
    Indai
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Hi,

    Need to convert 9/27/2012 12:00:00 AM in dd/mm/yyyy format....tried text to column, format cells, formula =(LEFT(A2,LEN(A2)-1))*1 but not working....

  13. #13
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Convert MMM DD, YYYY hh:mm:ss to Short date in excel 2007

    Mangesh,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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