+ Reply to Thread
Results 1 to 7 of 7

Issue with date formatting

  1. #1
    Registered User
    Join Date
    01-17-2017
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    42

    Question Issue with date formatting

    Please see the attached workbook, that contains a list of UK-style dates.

    I want all of the rows to be of format Long Date but when I select the column and change it, only some change (the rest show Short Date).

    Can anyone help explain why?
    Attached Files Attached Files

  2. #2
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    177

    Re: Issue with date formatting

    It's because you have them as "Text".
    You can prove this by after Selecting "Long Date" and double clicking on the "wrong" cells + Enter,
    that it corrects the format.

    Cheers!
    John.

    "I excel at jumping to conclusions"

  3. #3
    Registered User
    Join Date
    01-17-2017
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Issue with date formatting

    Quote Originally Posted by jomaor1 View Post
    It's because you have them as "Text".
    You can prove this by after Selecting "Long Date" and double clicking on the "wrong" cells + Enter,
    that it corrects the format.

    Cheers!
    The thing is, I have selected the whole column, changed it to something else (such as Percentage) then back to Long Date but some are still wrong.

    Shouldn't changing them to Percentage have reset them all to the same format (in this case, Percentage)? Do I need to double-click on each one?

  4. #4
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    177

    Re: Issue with date formatting

    you can also use the "NUMBERVALUE" function, and then change to Long Date
    like in the attachment

    Cheers!
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Issue with date formatting

    Quote Originally Posted by King Mustard View Post
    The thing is, I have selected the whole column, changed it to something else (such as Percentage) then back to Long Date but some are still wrong.

    Shouldn't changing them to Percentage have reset them all to the same format (in this case, Percentage)? Do I need to double-click on each one?
    If you have a "date" formatted as text, changing the format will not change anything - all formatting does (other than text) is change the cosmetic appearance of the cell, not the underlying contents.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    01-17-2017
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    42

    Question Re: Issue with date formatting

    Quote Originally Posted by FDibbins View Post
    If you have a "date" formatted as text, changing the format will not change anything - all formatting does (other than text) is change the cosmetic appearance of the cell, not the underlying contents.
    Surely if I select all of column A (which contain only dates) and change the cell type to Short Date, Excel should make them no longer be formatted as Text but as Short Dates?

    However, this does not happen until, as jomaor1 said, I double-click in each cell and press Enter.

    Sounds like a bug to me.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Issue with date formatting

    Nope, not a bug, it's just how excel works...like I said, formatting does not change underlying cell contents, only the cells appearance.

+ 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. [SOLVED] DATE formatting issue
    By KirbyKat in forum Excel General
    Replies: 11
    Last Post: 04-13-2018, 03:41 PM
  2. [SOLVED] Date formatting issue
    By Frejo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2017, 02:16 PM
  3. Date Formatting Issue
    By Helpme77 in forum Excel General
    Replies: 3
    Last Post: 10-02-2015, 05:25 PM
  4. Date formatting issue
    By semantics in forum Excel General
    Replies: 1
    Last Post: 09-17-2013, 04:32 PM
  5. date formatting issue
    By MP3265 in forum Excel General
    Replies: 6
    Last Post: 02-06-2013, 03:13 PM
  6. Date Formatting Issue
    By hey_ray in forum Excel General
    Replies: 3
    Last Post: 02-02-2012, 02:59 PM
  7. Another date formatting issue
    By machepap in forum Excel General
    Replies: 2
    Last Post: 11-22-2011, 11:14 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