+ Reply to Thread
Results 1 to 7 of 7

Formula to convert text to date not working properly

  1. #1
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    260

    Formula to convert text to date not working properly

    Hi all,

    after couple of days I have realized, that I have incorrect functon for text conversin to date.

    =DATE((RIGHT(E2,4)),(MID(E2,3,2)),(LEFT(E2,2)))

    I need to change text to date format as follow: D.M.YYYY.

    However, when I have text format as DD.MM.YYYY formla is working properly, on th eother way nope. DO you know, how to change the functoin?

    Thanks

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Formula to convert text to date not working properly

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

  3. #3
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    260

    Re: Formula to convert text to date not working properly

    ampe workbook added
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula to convert text to date not working properly

    Try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    01-24-2020
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    95

    Re: Formula to convert text to date not working properly

    it's a bit complex to locate 2 dots "." in the date to be converted. function is constructed as follows,
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Formula to convert text to date not working properly

    Or perhaps
    =DATEVALUE(SUBSTITUTE(A2,".","/"))

  7. #7
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    260

    Re: Formula to convert text to date not working properly

    thank you so much, working :-)

+ 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. Replies: 3
    Last Post: 03-09-2019, 12:04 PM
  2. [SOLVED] Macro not working properly for conversion of date format
    By abraham30 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2014, 10:46 AM
  3. Date Sort in Pivot Table - Not working properly
    By claudiocustodio in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-12-2013, 04:30 PM
  4. [SOLVED] Work Order tracker date code not working properly
    By Jeff up North in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-15-2013, 03:25 PM
  5. Formula to convert text to a date in a date format
    By mikeburg in forum Excel General
    Replies: 5
    Last Post: 08-24-2011, 09:15 AM
  6. Text macro not working properly
    By hunsnowboarder in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-25-2008, 08:28 AM
  7. Text wrap not working properly in Excel
    By Nige1962 in forum Excel General
    Replies: 1
    Last Post: 08-19-2006, 07:55 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