+ Reply to Thread
Results 1 to 11 of 11

Date time format issue

  1. #1
    Registered User
    Join Date
    06-24-2012
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    15

    Date time format issue

    Monthly I have to take my teams metrics and I'm having a problem with the date time format.
    When the date comes like
    Please Login or Register  to view this content.
    I have no problem. Excel will convert it to
    Please Login or Register  to view this content.
    But when the date is over 12, like
    Please Login or Register  to view this content.
    , it stay the same.

    It's clearly a format issue. But I tried to change the format several times and nothing works.
    Is there anyway to set the location. This date are US format, but my excel is set for Argentina.

    Thanks

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Date time format issue

    Select Cells with the date Go to Format Cells.. Select Custom and type in mm/dd/yyyy h:mm AM/PM and click OK
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Date time format issue

    Do you mean 12 days?

    What is your usual date format?

    Is the 2nd date being recognised as a date?

    You can test for that with ISNUMBER, if it returns TRUE it's a real data, FALSE its' a 'text' date.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    06-24-2012
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Date time format issue

    I tried to format it with mm/dd/yyyy h:mm AM/PM but only recognize the dates before 07/12
    This is an extract from my spreadsheet.

    Please Login or Register  to view this content.
    I believe that it doesn't recognize all dates older than 07/12/2013

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Date time format issue

    Try this, select the colum with dates, goto Data>Text to columns..., on the 3rd step selecct MDY from the column data format dropdown and then hit Finish.

    Then try formatting the dates as you want.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Date time format issue

    I had no problem to convert them to the proper standard. What I did, I copied the cell that I previously formatted and pasted it over Special Format and it worked.

  7. #7
    Registered User
    Join Date
    06-24-2012
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Date time format issue

    Sorry, it didn't work.
    I even tried to remove the format. When I remove the format to the dates under 07/12 it shows numbers, but when I tried to remove the format from the dates over 07/12 it showed me the same cell without changes.

    I have attached an extract from the spreadsheet.
    DateTime.xlsx

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Date time format issue

    How about now. Check the attached file.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-24-2012
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Date time format issue

    excellent, but what did you do

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Date time format issue

    Try this.

    Insert a new column after column A, goto Data>Text to columns..., select Delimited, set Space as the delimiter, on the 3rd step select MDY and click Finish.

    The 'real' dates will be untouched but the problem dates will have the time date in one column and the time in another.

    Select all the times, copy them, select the dates without times, goto Paste>Paste Special and select Add in the operations section.

    You should now have all 'real' dates which you can format as you like.

    Repeat these steps for any other column with the problem.

  11. #11
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Date time format issue

    The dates were entered or copied as text. I just needed to convert them numbers.
    Select any empty cell and enter 1
    Copy that cell and Paste (Special Values and select Multiply) over the data. this will convert text to numbers. Then apply format.

    Please let me know if it worked for you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. modify date time cell to an excel format date time
    By rileyp in forum Excel General
    Replies: 12
    Last Post: 03-24-2013, 08:39 PM
  2. [SOLVED] How do I convert imported date/time data to date/time format?
    By andykent99 in forum Excel General
    Replies: 4
    Last Post: 01-03-2013, 07:47 AM
  3. Date Picker Date Format issue
    By AndyE in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2012, 06:43 PM
  4. [SOLVED] Issue - international date and time format
    By zbor in forum Suggestions for Improvement
    Replies: 1
    Last Post: 04-05-2012, 08:04 AM
  5. Format issue (Date and Time)
    By Petitboeuf in forum Excel General
    Replies: 3
    Last Post: 12-11-2008, 07:30 AM

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