+ Reply to Thread
Results 1 to 15 of 15

Change text date 22OCT2013 to actual date

  1. #1
    Registered User
    Join Date
    12-18-2013
    Location
    s
    MS-Off Ver
    Excel 2010
    Posts
    7

    Change text date 22OCT2013 to actual date

    Hi Everyone,

    I have several hundreds of text dates that are formatted like this; "22OCT2013". I have tried date(Left);MID();right()) but it does not work. I have even tried datevalue which I am sure is thr wrong way of doing this and I got #VALUE. Even used the search and replace function to replace OCT with 11 but it does not work to format it to date.

    How do I convert 22OCT2013 to an actual date of DD-MM-YYYY?

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Change text date 22OCT2013 to actual date

    Try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    12-18-2013
    Location
    s
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Change text date 22OCT2013 to actual date

    it returned #VALUE!

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Change text date 22OCT2013 to actual date

    Is the numberformat of the cells text, or is it a custom date format?

    Maybe attach a workbook, so I can see the cell numberformat.

  5. #5
    Registered User
    Join Date
    12-18-2013
    Location
    s
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Change text date 22OCT2013 to actual date

    Not sure how to upload on here the workbook but the format is "General".

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Change text date 22OCT2013 to actual date

    From the rules:

    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.
    I'm keen to see your workbook, as the formula I posted works for me, with 22OCT2013 entered as text or as a date...

  7. #7
    Registered User
    Join Date
    12-18-2013
    Location
    s
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Change text date 22OCT2013 to actual date

    Hi,

    thanks for sharing how to upload file on here.

    Attached is the file.
    Attached Files Attached Files

  8. #8
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Change text date 22OCT2013 to actual date

    Yes, formula works for me in your workbook, with no #VALUE error; in cell B1, enter:

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


    Copy down, and format column B as Date.


    Sorry, I can't add attachments from this computer (company system policies prevent it) to demonstrate, but that formula works for me.

  9. #9
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Change text date 22OCT2013 to actual date

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    works for me, in your workbook...

  10. #10
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Change text date 22OCT2013 to actual date

    One more approach..

    =A1+0
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  11. #11
    Registered User
    Join Date
    12-18-2013
    Location
    s
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Change text date 22OCT2013 to actual date

    That is real odd. It did not work.

    I have the Swedish version so we use ";" instead od ",". I tried putting " between the date format;dd-mm-yyyy but it didnt work. When I dont put the ", then I get #NAME.

    Thank you for your help. At least you tried helping me. Really appreciated:=)

  12. #12
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Change text date 22OCT2013 to actual date

    Quote Originally Posted by grattis View Post
    That is real odd. It did not work.

    I have the Swedish version so we use ";" instead od ",". I tried putting " between the date format;dd-mm-yyyy but it didnt work. When I dont put the ", then I get #NAME.

    Thank you for your help. At least you tried helping me. Really appreciated:=)

    May have been helpful to mention Swedish from the start...

    OCT is English. Think you'll find Swedish is OKT. If your locale settings are set to Swedish, it won't recognise OCT as a month.

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

  13. #13
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Change text date 22OCT2013 to actual date

    Oh, you may also find you need to enter formulae in Swedish.

    DATEVALUE would then become DATUMVÄRDE...
    SUBSTITUTE becomes BYT.UT...

  14. #14
    Registered User
    Join Date
    12-18-2013
    Location
    s
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Change text date 22OCT2013 to actual date

    Quote Originally Posted by OllyXLS View Post
    Oh, you may also find you need to enter formulae in Swedish.

    DATEVALUE would then become DATUMVÄRDE...
    SUBSTITUTE becomes BYT.UT...


    hej,

    it was originially in Swedish but I had it changed to English. The only difference is that I still have to type semicolon instead of comma :=)

  15. #15
    Registered User
    Join Date
    12-18-2013
    Location
    s
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Change text date 22OCT2013 to actual date

    I got it to work. I replaced OCT with -10- and then used date function with right,mid and left.

    I had a question.

    How do I handle date like this

    Please Login or Register  to view this content.
    I was able to convert the dates but when I had a single digit day, it did not work. Do you any ideas as to how convert it?

    Thank you

+ 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: 9
    Last Post: 06-14-2013, 04:38 AM
  2. Color Code Actual Date versus Due Date ( Red, Yellow, Green )
    By Bfisher74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2013, 10:10 AM
  3. Change date serial to actual date numbers
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2012, 12:47 PM
  4. Converting Text Date to Actual Date using VBA
    By reggie1000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2010, 12:20 PM
  5. Convert date as text to actual date
    By andysurtees in forum Excel General
    Replies: 4
    Last Post: 01-23-2009, 03:22 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