+ Reply to Thread
Results 1 to 18 of 18

Stop defaulting to 5-digit dates

  1. #1
    Registered User
    Join Date
    02-01-2022
    Location
    Courtenay, Canada
    MS-Off Ver
    365
    Posts
    6

    Stop defaulting to 5-digit dates

    My Excel (365 64-bit) is constantly defaulting to 5-digit dates.

    I already know how to change the date format of selected cells from 5-digits to a normal-looking date. But how do I stop it from defaulting to 5-digit dates in the first place? It happens under all sorts of circumstances... I'll change some data then update a table, and blam, all the dates that I had already changed to normal-looking dates have reset to 5-digit dates.

    I have two colleagues who use copies of the exact same spreadsheets and pivots as me, yet their dates are always normal - their dates are never switched to 5-digit dates.

    I've done piles of searches for a solution, but they all just explain how to convert the dates using Format Cells... but I don't want to have to do this 50 times/day (I'm not exaggerating). I want it to stop defaulting to 5-digit dates altogether.

    Would greatly appreciate a solution!

    Thanks,

    Wayne

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Stop defaulting to 5-digit dates

    mabe change system format date to dd/mm/yyyy or whatever you want

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Stop defaulting to 5-digit dates

    Can you be more specific about what you want and don't want? If I understand correctly, you are having some kind of problem with Excel's date serial number system (the number 44189 corresponds to 15 Sep 2022, for example). What problem are you having with the date serial numbers? You could conceivable store the dates as text strings instead of numbers, but then they become meaningless to Excel for calendaring or other analysis you might want to perform on these dates. It is usually best to let Excel store dates as serial numbers and then control the appearance of the date using number formatting.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    02-01-2022
    Location
    Courtenay, Canada
    MS-Off Ver
    365
    Posts
    6

    Re: Stop defaulting to 5-digit dates

    Thanks, I'll see if that changes anything. My System Date setting was on M/d/yyyy, and now I've changed it to MM/dd/yyyy. Fingers crossed! Will let you know if it works.

  5. #5
    Registered User
    Join Date
    02-01-2022
    Location
    Courtenay, Canada
    MS-Off Ver
    365
    Posts
    6

    Re: Stop defaulting to 5-digit dates

    Specifically what I want is to stop seeing 5 digit dates without having to change the formatting every single time. I've been using Excel on many different computers over the past 20+ years, and this is the first system I've ever used that defaults to 5-digit dates.

    For example: I'm using conditional formatting to highlight cells containing dates between July 1, 2021 and June 30, 2022. So I entered those dates into the Conditional Formatting box. But now when I go back and look at my Conditional Formatting Rules, the dates are presented as 5 digit numbers. I certainly didn't write in 5-digit numbers, so Excel converted them on it's own.

    Another example: I have a spreadsheet where you enter client ID #'s, refresh the table, and the client's details appear, include Start and End dates for the program they're in. I've changed the date format of the Start and End date columns to MM/DD/YYYY. But when I enter new client ID #'s and refresh the table, it gives the dates as 5-digit numbers again.

    Please note that I'm not looking for specific solutions to these specific examples. I'm looking for a global solution that will stop Excel from giving me 5-digit numbers instead of dates across ALL my spreadsheets and pivots (unless of course I specifically ask it to do so).

    Thanks for everyone's efforts! I fear this is a hopeless case though, as I've just had an Excel expert in my office spend time looking at it and even he can't figure it out. Maybe my Excel is corrupted.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Stop defaulting to 5-digit dates

    I can't speak to your personal experience, but, as far as I know, Excel (and other spreadsheets) have been using this same serial number system for storing dates since spreadsheets starting in the '80s. I can only assume that, for whatever reason, you have never had cause until now to "see" behind the curtain how spreadsheets store dates as serial numbers.

    If you need to be able to test for "between two dates" or anything similar, you want your spreadsheet to store the dates as serial numbers. Dates stored as text will create all kinds of difficulties when testing for "between" or other date/calendar related operations.

    If the problem is mostly about being unfamiliar with the serial number calendaring system, I might suggest that you become familiar. I don't know if this is the best tutorial, but I refer to it frequently: http://www.cpearson.com/Excel/datetime.htm

    What difficulty are you having with these serial numbers (other than that they don't make immediate sense when you see them)?

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Stop defaulting to 5-digit dates

    try Styles -> right click on Normal -> Modify -> Format -> Date then choose from existing or choose appropriate Locale

  8. #8
    Registered User
    Join Date
    02-01-2022
    Location
    Courtenay, Canada
    MS-Off Ver
    365
    Posts
    6

    Re: Stop defaulting to 5-digit dates

    I understand what you're saying about how Excel *stores* the dates (in serial form, counting the number of days since January 1, 1900). What I'm asking about is how Excel is *presenting* the dates. As you said, I don't need to see what's behind the curtain; I want to see dates in date format by default. My entire life using Excel, I see dates in date format on my spreadsheets, yet only on this computer, my dates show as serial numbers.

    Here's a snip of my spreadsheet before changing the Client ID inputs:
    Attachment 796449

    Now here's a snip of my spreadsheet after entering new Client ID's and refreshing the table:
    Attachment 796450

    When my colleagues in the same office refresh the table, they see dates. Only on my computer do we get serial numbers.

    This is only one example of one table. I know how to fix it by selecting the columns and manually changing the date format, but I'm trying to avoid having to change the date format every single time I refresh this table (which happens dozens of times per day). I want to make a global change so that Excel always presents dates in all my tables as dates, not as serial numbers. My colleagues' systems, and every system I've ever used in my life, default to refreshing dates to appear as dates; mine defaults to refreshing as serial numbers.

    I think the reason I'm having trouble explaining this is because it's so unusual. I sit next to an Excel expert (a data analyst who programs complex spreadsheets all day and used to work for IBM) and even he can't figure out why Excel keeps switching my dates to serial format rather than a normal date format. So I think I'm just going to accept that this is an unsolvable problem (short of changing computers). But I really appreciate everyone's time trying to help!

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Stop defaulting to 5-digit dates

    your attachments doesn't work

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Stop defaulting to 5-digit dates

    Your screenshots (or whatever you attached) failed to attach. See if I understand. You have a spreadsheet that has column(s)/field(s) that contain dates as serial numbers formatted with an appropriate date format. You then do something (refresh? like a pivot table? data query?), and Excel clears the number formatting from this/these date column(s)/field(s). The real questions are -- why is Excel clearing number formats from this/these column(s) when you perform this task, and how to get these number formats to "stick"? Am I understanding correctly?

    I'm not sure what to recommend. While I have limited experience with dates, I have a lot of experience with other number formats, and I don't recall any situations where Excel just cleared number formats like you are describing. It sounds like this is your first experience with Excel "randomly" clearing number formats from these cells.

    Just to check -- are there any event procedures (VBA or other macro language) running on your machine that could possibly be doing this?

    I would be tempted to take a copy of your file to another computer with Excel and see if this behavior moves with the file or is specific to your computer/installation. If you make a suitable "dummy" file that exhibits the problem and upload it here, I'm sure some of us would be able to test it on our machines to see if it follows the file or is specific to your installation. A sample file uploaded to the forum would also allow our users to test any ideas we might have to replicate the behavior you describe.

    In the end, I agree with your historical observation and your colleague's confusion. This doesn't seem like "normal" behavior for Excel. Until we can come up with some idea what is causing Excel to clear number formats during this refresh operation, I'm not sure we can make any recommendations.

  11. #11
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: Stop defaulting to 5-digit dates

    [.... withdrawn ....]
    Last edited by curiouscat408; 09-15-2022 at 07:28 PM.

  12. #12
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: Stop defaulting to 5-digit dates

    Quote Originally Posted by MrShorty View Post
    I have a lot of experience with other number formats, and I don't recall any situations where Excel just cleared number formats like you are describing.
    That happens to me "all the time" with some financial functions (PV, PMT, FV).

    It does not "clear" the format (I think you mean set it to General).

    Instead, it changes my truly Currency format to something that Excel calls Currency, but it is a custom format that is similar to Accounting.

    Unfortunately, when I try to create a simple example, Excel behaves itself. So, presumably the misbehavior depends on context.

    Sadly, I cannot find an example of the misbehavior right now. It just happened to me in the last day or so. But I don't remember which Excel file I was working on. Sigh.

  13. #13
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Stop defaulting to 5-digit dates

    Can you be more specific about when it is happening please?

    - You mentioned it happens when you update a table. Is this a PivotTable? I have had issues with these where you change the format of some cells but it does not persist when you refresh the table. I haven't come across it for a while but recall that it was somewhat inconsistent when edited in cell. The solution I use is to go to Field Settings and change the format of the field.

    - You also mentioned conditional formatting, but I think this is normal behaviour, at least it's how I've seen it behave before. There are workarounds if you want the date to be easier to interpret.

    This might not be the solution for you, but like I said, a little more detail of when it happens might help.

    PS if you want to add an attachment (image or workbook), click "Go Advanced" and then "Manage Attachments", then it should work.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Stop defaulting to 5-digit dates

    @Wayne

    I am certain this must have something to do with the settings on your computer - maybe related to your locale. It does seem as if Excel is getting confused in some way.

    Usually, when Excel detects a date serial number (5-digits), it will change it to a date. Can you share a simple workbook that misbehaves for you, but does not for your colleagues?

    What are your system and Excel settings for date and time?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  15. #15
    Registered User
    Join Date
    02-01-2022
    Location
    Courtenay, Canada
    MS-Off Ver
    365
    Posts
    6

    Re: Stop defaulting to 5-digit dates

    I've attached a simple spreadsheet demonstrating my issue.

    In column A, I entered some random dates.
    5-Jan-23
    12-Mar-21
    23-Feb-19
    3-Apr-22
    16-Dec-20

    Then in cell G1, I entered "=A1:A5". Here's what it did:
    5-Jan-23
    44267
    43519
    44654
    44181

    It's easy enough for me to select the last 4 cells and convert to date format.
    But I want Excel to stop presenting the numbers in serial format in the first place.
    Not just in this example, but in the many other ways & places Excel is presenting my dates as serial numbers instead of normal dates.

    I super-appreciate everyone's input on this, and apologize if I'm not explaining properly - most of my life, I've been a low-end Excel user; only recently have I been in a role that requires serious Excel-ing.

    Thanks,

    Wayne
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    02-01-2022
    Location
    Courtenay, Canada
    MS-Off Ver
    365
    Posts
    6

    Re: Stop defaulting to 5-digit dates

    sandy666: This solution (modifying Styles) may have worked. It worked on my simple spreadsheet... I'm going to spend some time working on my more complex sheets using this solution, and will let you know (might be early next week, as we're closed for the next 3 days).

    Thank you!

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Stop defaulting to 5-digit dates

    you are welcome, hope it will help
    have a nice day
    Last edited by AliGW; 09-17-2022 at 02:09 AM. Reason: Please DON'T quote unnecessarily!

  18. #18
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Stop defaulting to 5-digit dates

    In this case, I can reproduce, and it is a "feature" of dynamic arrays. Normally if you do a formula that is just equal to another cell, e.g. =A1, then Excel will try to match the formatting. But with a dynamic array, it only does it for the cell which you actually type the formula into. So in this case it does it for G1, but not for the other cells. If you type in =A1 into G1, and then either copy down or manually type =A2 into G2, and so on, then it should format correctly. Does this happen? If so, do you have other cases where it is an issue (not using dynamic arrays), or are dynamic arrays essential to your sheet?

+ 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] Extract 1, 2 or 3-digit Numbers from Text String but Ignore 4-Digit Dates
    By S_Rycroft in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2020, 12:03 PM
  2. Replies: 1
    Last Post: 01-05-2020, 07:32 PM
  3. Macro to identify 3-digit and 4-digit numbers as valid dates
    By gojakie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2015, 08:16 AM
  4. Replies: 2
    Last Post: 12-31-2011, 12:16 PM
  5. stop combobox lookup defaulting values
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2010, 06:12 PM
  6. How to stop email defaulting
    By boylejob in forum Excel General
    Replies: 2
    Last Post: 07-11-2009, 10:05 PM
  7. 20 digit wont stop ending in zeros
    By bumble78 in forum Excel General
    Replies: 3
    Last Post: 08-17-2006, 08:00 PM

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