• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

How to Change 5 Digit General Numbers to Date Format in Excel

How to Change 5 Digit General Numbers to Date Format in Excel

It sometimes happens that we type or copy/paste date formats from sheets in Excel, but it displays as number. Let’s convert those 5-digits general numbers to date format with 2 easy steps using default date formatting function.

For example, we copied date from external source or wrote date in the cell but it displays in 5 digit number format as shown in the below screenshot:

convert-date-5

Follow 2 easy steps to change 5 digit number format to date format.

Select the 5 digits numbers and click Number format box in Home Tab. Now select Short Date as shown below:

convert-date-2

All selected 5 digits numbers converted to dates with default date formatting as shown below:

convert-date-3

If you have any queries or suggestions, feel free to comment below. I will be happy to reply you.

Filed Under: Microsoft Excel

You are Here: Home / Basic Excel Functions / How to Change 5 Digit General Numbers to Date Format in Excel

About Shabbir Bhimani

I have worked in Excel and like to share functional excel templates at ExcelDataPro.

Comments

  1. Michele H says

    June 13, 2017 at 3:40 pm

    This is exactly the problem with an Excel spreadsheet I am using. The numbers spontaneously appeared in place of standard date format m/dd/yyyy a couple of months ago. I do not recall changing any settings on the spreadsheet. The posted 2-step solution did not work. Anything else to try?
    Using Microsoft Excel non-commercial in WIndows 10.
    Thank you.

    Reply
    • Fahim Lashkaria says

      June 14, 2017 at 7:03 am

      Hi Michele, Reason for this could be either virus or any program file missing from your PC. Please get your system checked. Email the file to me and I will check if there is any issue in internal settings.

      Reply
      • Mikel says

        March 25, 2022 at 9:47 pm

        Thank you soooo much!

        Reply
    • Christina Mellor says

      May 30, 2018 at 3:55 pm

      Try clicking on file, options, advanced. Go down to display options for this spreadsheet and make sure that “Show formulas in cells instead of their calculated result” is unchecked. This was the only thing that would solve my issue with the date.

      Reply
      • Fahim Lashkaria says

        June 4, 2018 at 7:36 pm

        Christina, It sometimes happens. THe options given in my article are a general change of digit to Date. But when internal settings are set differently this might happen. Will include this in my new post as a solution to this problem. Thanks

        Reply
      • Jan says

        November 20, 2018 at 10:30 am

        This worked for me. Thanks for the extremely helpful post.

        Reply
        • Fahim Lashkaria says

          November 23, 2018 at 9:09 pm

          Glad To Hear that. Share it with your friends so that it helps others too. Thanks in advance.

          Reply
      • Sam Sparrow says

        March 19, 2019 at 10:19 am

        Thank you Christina Mellor. Only thing that would work for me also.

        Reply
      • Jon Brooke says

        January 29, 2020 at 2:48 pm

        Thanks Christine I inherited a file where I couldn’t get the date to format correctly and unchecking this option finally fixed it – big thanks

        Reply
      • Dave says

        March 4, 2020 at 2:18 am

        Thank You for that tip Christina Mellor; your suggestion worked!!!

        Reply
  2. Peter says

    June 22, 2017 at 6:08 am

    This is not a virus or missing file. With all respect, the offered solution does not work. The five digit number remains even after formatting the cell.

    Reply
    • Fahim Lashkaria says

      June 22, 2017 at 6:38 am

      Hi Peter. Click on the Windows logo on your excel file > Click on Excel Options> Go to Add-ins tab > Check if Analysis tool pack is active or not.I think that it might be some setting or installation issue. If still the problem persists then email the file to me and I will check if there is any issue in internal settings.

      Reply
  3. JB says

    March 17, 2018 at 4:02 pm

    Hi. I am working from a MacBook. I have formatted column A as m/dd/yy. The dates in Column A are still showing in Serial format (e.g. A1 is showing “41276”) even though, when I click on A1, the formula bar above shows “1/3/2017”.
    This is a spreadsheet my mother-in-law is using. She asked me for help because she did something and, it appears, lost all of her formatting; number formats, column widths, etc. Is there some hot-key stroke or something that causes the entire sheet to show everything in “raw” formatting? Thank you kindly.

    Reply
    • Fahim Lashkaria says

      March 17, 2018 at 4:10 pm

      Hi, On Mac Book, what software are you using? Is it Microsoft Excel or Apple Numbers? If it is excel you need to select the cells for which you wish to change the format and change it to date format from the above menu in home tab. For Apple Numbers, you need to go to format bar on the top right corner and select the text tab and in that change the data format to date.

      Reply
      • JB says

        March 17, 2018 at 4:12 pm

        I am using Excel:mac 2008

        Reply
    • JB says

      March 17, 2018 at 4:11 pm

      Addendum:
      Similarly, I just tried to format a column as “$”. Again, the numbers showing in the sheet did not change to a currency format, just simple number (e.g. cell E74 shows as 26.2, rather than $26.20)
      The workbook appears to be immune to cell formatting.

      Reply
      • Daniel says

        June 18, 2018 at 4:14 pm

        Hi
        Maybe this can help;
        Go to: Formulas > Show formulas.
        Un-highlight this sub menu (Show Formulas), if it is highlighted. I did this and all my dates returned to normal, including any calculations that were linked to them.

        Reply
        • Fahim Lashkaria says

          June 19, 2018 at 8:27 am

          That’s great. Thanks for your input.

          Reply
  4. JB says

    March 17, 2018 at 5:16 pm

    Aha! I found a post elsewhere that suggested pressing Control+` (The accent grave, the key above the “tab” key) in order to get out of the “display formulas” preference. That worked. My mother-in-law must have hit Ctrl+` by mistake at some point. (She’s using a Windows PC).
    I would like to know where in Preferences I could have found that “Display Formulas” was toggled, but at least this Hot Key toggled it back.
    Muchas gracias!

    Reply
    • Cristina says

      April 10, 2018 at 12:56 pm

      Thank you JB this worked for me!! OP did not fix the problem but this did!! 🙂

      Reply
  5. Vasil says

    November 21, 2020 at 3:55 pm

    Hello, my date is also in this type of format – 5 digit number. When I format it to date it is ok – it shows the accurate date. I want to use YEAR or MONTH formula but the problem is that it shows the last numbers of the 5 digit number which are very different form the year that appears when i format the cell as date. Also if i want to use other software using date data it shows it again as the 5 digit format – in values. How can I make the date as dd.mm.yyyy value?

    Reply
    • Fahim Lashkaria says

      November 23, 2020 at 7:33 pm

      Hey Vasil, Please send your query to using the contact form here with screenshots because I am unable to understand your query.

      Reply
  6. RUPENDER says

    February 8, 2021 at 12:39 pm

    819000677 this the code in excel which i have got. i need to create a formula to find the year from this number.
    for an example the two digits from the left of three digit is the year that is 19 is the year . i want it to like 2019.

    Reply
    • admin says

      February 13, 2021 at 1:16 pm

      That has to be done using the scripting. Are you aware of it?

      Reply
  7. Rob H says

    February 3, 2022 at 8:21 pm

    The formatting worked, but it seems the year is way off. “19758” was formatted to 2/3/1954 when its actually 2/3/2022. Any idea why that could be happening?

    Reply
    • admin says

      February 5, 2022 at 7:26 am

      How do you know it is 2/3/2022 that number?

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

ExcelDataPro

Free Excel Pro Templates

  • Glossary
    • Accounting Glossary
    • HR & Payroll Glossary
    • Tax Glossary
  • Templates
    • Accounting
      • Financial Analysis
      • Financial Statement
    • Educational
    • Taxation
      • Federal Income Tax
      • GST
      • UAE VAT
      • UK VAT
    • Human Resources
      • HR & Payroll
      • HR Metrics
    • School Management
    • Social Media
    • Sales-Marketing
    • Personal Finance
    • Other
      • Health & Fitness
  • Functions
  • Calculators
  • Home
  • Contact
  • Privacy
  • Terms

© ExcelDataPro 2025. Content Licensed Under Creative Commons with Attribution Required

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT