+ Reply to Thread
Results 1 to 12 of 12

Dates turn into 5-digit number

  1. #1
    Registered User
    Join Date
    09-07-2015
    Location
    the Netherlands
    MS-Off Ver
    2010
    Posts
    21

    Dates turn into 5-digit number

    Hi everyone,

    I am having trouble with dates in excel 2010.
    I have two workbooks A and B. I connect the two workbooks so that I can copy the data in workbook A to workbook B.
    However, when I do this the dates show up as 5-digit numbers (when I click the cell it also shows a 5-digit number).

    Does anyone have a solution for this?

    Thanks in advance!
    Last edited by Wiggle12; 09-16-2015 at 09:12 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Dates turn into 5-digit number

    Dates are numbers in excel.

    1 is 1.1.1900
    2 is 2.1.1900
    etc

    You just need to format those numbers as a dates.

    Right click -> Format cells
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    11-27-2014
    Location
    Wolverhampton, England
    MS-Off Ver
    2013
    Posts
    49

    Re: Dates turn into 5-digit number

    Hi Wiggle12,

    Try changing the cell format to date, it's most likely set to number format.

    Thanks

    Owen

  4. #4
    Registered User
    Join Date
    09-07-2015
    Location
    the Netherlands
    MS-Off Ver
    2010
    Posts
    21

    Re: Dates turn into 5-digit number

    The cells are formatted as dates, that is the weird part about it..

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: Dates turn into 5-digit number

    Examples?
    Attach a sample spreadsheet, remove any sensitive data.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  6. #6
    Registered User
    Join Date
    09-07-2015
    Location
    the Netherlands
    MS-Off Ver
    2010
    Posts
    21

    Re: Dates turn into 5-digit number

    Hi Special-K,

    Attached a sample spreadsheet.Example.xlsm
    Attached Files Attached Files

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Dates turn into 5-digit number

    Those are not numbers.
    Those are text values.

    Click F2 on cell (for edit) and enter.
    Last edited by zbor; 09-16-2015 at 04:27 AM.

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Dates turn into 5-digit number

    Or select blank cell
    Copy

    Select D and E columns
    Right click -> Paste Spetial
    Add
    OK

    then format cells as Date

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dates turn into 5-digit number

    They're not really dates, but TEXT. Did you import the data from a CSV, or something? If so, check the way you did text to columns conversion. You can always coerce them into being recognised as dates by adding 0 to each one... = a22+0 will recognise the content of A22 as a number (and hence as a date if the cell is date-formatted).
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  10. #10
    Registered User
    Join Date
    09-07-2015
    Location
    the Netherlands
    MS-Off Ver
    2010
    Posts
    21

    Re: Dates turn into 5-digit number

    Thank you!! It works now

  11. #11
    Registered User
    Join Date
    09-07-2015
    Location
    the Netherlands
    MS-Off Ver
    2010
    Posts
    21

    Re: Dates turn into 5-digit number

    I used the F2 enter function in the original document now, which serves as a template, and now it copies into other workbooks just fine! I have no idea how the data became this way, but it's fine now so that's all that matters. Thank you guys for your help and quick replies!

  12. #12
    Registered User
    Join Date
    09-07-2015
    Location
    the Netherlands
    MS-Off Ver
    2010
    Posts
    21

    Re: Dates turn into 5-digit number

    I have one more question. I have gone through my entire document and used the F2 enter function to ensure that the dates are actual dates and not text. However, when I copy the text from workbook A to workbook B and the first rows are empty (because some options are not used), for some reason I get the 5-digit numbers again instead of the date. If I then use the F2 enter function again then it works, but is there a way to make sure that excel just gives me dates every time instead of the 5 numbers? Perhaps a macro or something?

+ 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. 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
  2. [SOLVED] Formatting to make 2 digit number show up at 3 digit number.
    By cadamhill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 06:58 PM
  3. dates show up as 5 digit number within concatenation
    By kamelkid2 in forum Excel General
    Replies: 2
    Last Post: 02-13-2012, 02:03 PM
  4. Replies: 4
    Last Post: 09-12-2011, 12:00 PM
  5. Replies: 1
    Last Post: 09-08-2011, 03:06 PM
  6. [SOLVED] how to identify only 3 digit permuted number from list of 4 digit number
    By bigcrap in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-10-2011, 11:30 AM
  7. Replies: 2
    Last Post: 06-17-2010, 08:36 PM

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