+ Reply to Thread
Results 1 to 14 of 14

Problem in date format in excel

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    7

    Problem in date format in excel

    Hi,

    I have just downloaded the excel file from one of the tool. Its strange that excel is picking up different date formats while exporting.
    Have tried to format the cells but its not working.
    Can you please help me to get format as dd/mm/yyyy hh:mm.

    Somewhere its showing AM, PM, somewhere just date with time stamp.

    Attaching the excel that I am working on.

    Thanks in Advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Problem in date format in excel

    Hi

    I'd be inclined to use a helper column given that your download is not consistent, sometimes being a date/time number and sometimes text.
    In E2, (formatted as dd/mm/yy hh:mm) and copied down enter

    =VALUE(IF(ISNUMBER(D2),D2,LEFT(D2,14)))
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Problem in date format in excel

    Try this
    Select Column D
    Data > Text to columns ...

    Delimited > Next > Next ... Column data format:= Select the radio button "Date" and DMY from the drop-down > Click "Finish"

    Does that solve your problem?
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    07-05-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Problem in date format in excel

    Thansk Richard,but its not working,
    I am getting:-

    S no Record Type Status Open Time
    1 REQUEST Work in Progress 26/01/12 17:43:28 #VALUE!
    2 REQUEST Work in Progress 29/03/12 11:12:59 #VALUE!
    3 REQUEST Work in Progress 28/05/12 14:33:18 #VALUE!
    4 REQUEST Work in Progress 06/07/12 15:03 41096.62715
    5 REQUEST Work in Progress 26/06/12 16:21:01 #VALUE!
    6 REQUEST Work in Progress 26/06/12 16:29:00 #VALUE!
    7 REQUEST Work in Progress 28/06/12 11:57:00 #VALUE!
    8 REQUEST Work in Progress 28/06/12 12:08:51 #VALUE!
    9 REQUEST Work in Progress 28/06/12 12:35:10 #VALUE!
    10 REQUEST Work in Progress 29/06/12 18:52:48 #VALUE!
    11 REQUEST Work in Progress 07/04/12 12:09 41006.50644
    12 REQUEST Work in Progress 07/05/12 12:26 41036.51861
    13 REQUEST Work in Progress 07/05/12 14:36 41036.60899
    14 REQUEST Work in Progress 07/05/12 14:47 41036.61661

  5. #5
    Registered User
    Join Date
    07-05-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Problem in date format in excel

    Thanks Marcol, I tried this earlier , but its not changing the format.
    I have attached the excel file on which I am working. Is it working for you?

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Problem in date format in excel

    Don't know why you get that since you're picking up column C which is not mentioned in my formula.

    Marcol's solution is more efficient but if you still want to see why the formula isn't working see the attached.
    Attached Files Attached Files
    Last edited by Richard Buttrey; 07-05-2012 at 09:34 AM.

  7. #7
    Registered User
    Join Date
    07-05-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Problem in date format in excel

    Dear Richard, I uploaded the workbook with my first post. Are you able to find it or should I upload it again?

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Problem in date format in excel

    We've just crosses in the aether. See my attachment in post #6

    Marcol's solution also works so I'm not clear why you couldn't get it to do so.

  9. #9
    Registered User
    Join Date
    07-05-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Problem in date format in excel

    Dear Richard,
    Please find attached the file. I just copy pasted, but its asking for value
    Kindly let me know what I am doing wrong. I have chosen column D
    Attached Files Attached Files

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Problem in date format in excel

    Not sure what you mean by 'its asking for value'. What's 'it' mean?

    I can see that column E has '##########' but that's only because the column isn't wide enough. Is that what you mean?

  11. #11
    Registered User
    Join Date
    07-05-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Problem in date format in excel

    please see below for the output.

    1 REQUEST Work in Progress 26/01/12 17:43:28 #VALUE!
    2 REQUEST Work in Progress 29/03/12 11:12:59 #VALUE!
    3 REQUEST Work in Progress 28/05/12 14:33:18 #VALUE!

    By Value I meant #VALUE!

    Is this because I am using excel 2003 and not the higher version?

  12. #12
    Registered User
    Join Date
    07-05-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Problem in date format in excel

    please see below for the output.

    1 REQUEST Work in Progress 26/01/12 17:43:28 #VALUE!
    2 REQUEST Work in Progress 29/03/12 11:12:59 #VALUE!
    3 REQUEST Work in Progress 28/05/12 14:33:18 #VALUE!

    By Value I meant #VALUE!

    Is this because I am using excel 2003 and not the higher version?

  13. #13
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Problem in date format in excel

    The only thing I can see is that the result is not showing seconds, but then you did ask this
    Can you please help me to get format as dd/mm/yyyy hh:mm.
    What do you mean by this? Where does it happen in the sample provided?
    Somewhere its showing AM, PM, somewhere just date with time stamp.
    If you have text values like "06/07/2012 15:03:06 PM" the suggested methods will fail

    Try in E2
    Please Login or Register  to view this content.
    Drag/Fill Down

    P.S. If there are no strings with AM or PM this should work.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Marcol; 07-05-2012 at 10:26 AM. Reason: Added to the attachment with some possible causes of errors

  14. #14
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Problem in date format in excel

    Sorry, still can't see that. I'm using the file you attached to post #9 and it shows the dates & times in column E as expected in 2003, 2007 & 2010.

+ 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