+ Reply to Thread
Results 1 to 12 of 12

Turn Text (numbers) to Date

  1. #1
    Forum Contributor
    Join Date
    12-14-2005
    Location
    US
    MS-Off Ver
    Excel 2019, Excel 365, Excel Mobile (Android)
    Posts
    191

    Turn Text (numbers) to Date

    I have the follow text numbers 31925. I need a formula or step process that will turn these numbers into the date: 3/19/25. I dont care so much for the format, for example it could be written as 03.19.2025 or some other variation. I just need those numbers to be dates.
    Thanks for any help offered.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,290

    Re: Turn Text (numbers) to Date

    Are all the examples 5 digits?
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,290

    Re: Turn Text (numbers) to Date

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,936

    Re: Turn Text (numbers) to Date

    If you had 11125, would that be 1st November or 11th January?

    BSB

  5. #5
    Forum Contributor
    Join Date
    12-14-2005
    Location
    US
    MS-Off Ver
    Excel 2019, Excel 365, Excel Mobile (Android)
    Posts
    191

    Re: Turn Text (numbers) to Date

    that would be 01/11/25

  6. #6
    Forum Contributor
    Join Date
    12-14-2005
    Location
    US
    MS-Off Ver
    Excel 2019, Excel 365, Excel Mobile (Android)
    Posts
    191

    Re: Turn Text (numbers) to Date

    Not sure as I just started working with this type of report. However, I suspect that when we hit a double digit month 10,11,12 that the txt will be something like 100125

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,396

    Re: Turn Text (numbers) to Date

    In order to avoid such ambiguities, I would be inclined to coerce the data to be entered as 6 digit text strings. 31925 would generate a warning until the user entered 031925 or 110125 or 011125 or whatever. Then something like what TMS provided (would no longer need the TEXT() functions) would work to convert the text string to a real date serial number.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,290

    Re: Turn Text (numbers) to Date

    Quote Originally Posted by Frick View Post
    that would be 01/11/25
    By that, you mean January 11th.

    My formula will cope with both 5 and 6 digit numbers.

  9. #9
    Forum Contributor
    Join Date
    12-14-2005
    Location
    US
    MS-Off Ver
    Excel 2019, Excel 365, Excel Mobile (Android)
    Posts
    191

    Re: Turn Text (numbers) to Date

    As usual you nailed it. Thank you again.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,290

    Re: Turn Text (numbers) to Date

    You're welcome. Thanks for the rep.

  11. #11
    Registered User
    Join Date
    01-11-2021
    Location
    CANADA
    MS-Off Ver
    Excel 365
    Posts
    42

    Re: Turn Text (numbers) to Date

    =text(a2,"0\/00\/00")+0

  12. #12
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,416

    Re: Turn Text (numbers) to Date

    No formulas
    Text to Columns-->Delimeted-->Next-->Next-->Date--MDY--Finish
    Attached Files Attached Files

+ 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] Text will not turn into date
    By excelhelpguy123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-08-2016, 07:53 PM
  2. Turn text into numbers
    By gones in forum Excel General
    Replies: 2
    Last Post: 05-26-2016, 03:48 AM
  3. Turn numbers into text
    By Jordans121 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2010, 04:34 PM
  4. turn text into numbers
    By Jive1 in forum Excel General
    Replies: 6
    Last Post: 12-24-2008, 11:10 AM
  5. Replies: 5
    Last Post: 02-23-2007, 12:11 PM
  6. [SOLVED] turn off convert text to date (i.e. 4-9 to April 9, 2006)
    By jjj912@yahoo.com in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-13-2006, 11:30 AM
  7. Replies: 2
    Last Post: 03-08-2005, 02:06 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