+ Reply to Thread
Results 1 to 9 of 9

Converting textstring into date/time-format?

  1. #1
    Registered User
    Join Date
    08-02-2023
    Location
    Switzerland
    MS-Off Ver
    Office 365, Version 2307
    Posts
    5

    Converting textstring into date/time-format?

    A friendly hello to the round with my first post! I'm quite a beginner in Excel and would really appreciate your help!

    How can I convert a text string like the one below into a date/time format? Thanks for any help!
    [2 Aug 2023 at 14:08]

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Converting textstring into date/time-format?

    Welcome to the forum.

    Is the text with or without the square brackets?

    Try this if without:

    =DATEVALUE(TEXTBEFORE(O2," ",3))+TIMEVALUE(TEXTAFTER(O2," ",4))

    where O2 contains the text string.

    For your Swiss locale (Swiss French?):

    =DATEVAL(TEXTBEFORE(O2;" ";3))+TEMPSVAL(TEXTAFTER(O2;" ";4))
    Last edited by AliGW; 08-02-2023 at 09:07 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-02-2023
    Location
    Switzerland
    MS-Off Ver
    Office 365, Version 2307
    Posts
    5

    Re: Converting textstring into date/time-format?

    Hi!
    without Square brackets

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Converting textstring into date/time-format?

    OK - see post #2.
    Attached Files Attached Files
    Last edited by AliGW; 08-02-2023 at 09:09 AM. Reason: Workbook added.

  5. #5
    Registered User
    Join Date
    08-02-2023
    Location
    Switzerland
    MS-Off Ver
    Office 365, Version 2307
    Posts
    5

    Re: Converting textstring into date/time-format?

    Outstanding! A thousand thanks for the quick feedback. I will try this and write again ...

  6. #6
    Registered User
    Join Date
    08-02-2023
    Location
    Switzerland
    MS-Off Ver
    Office 365, Version 2307
    Posts
    5

    Re: Converting textstring into date/time-format?

    Unfortunately, I got an error message. From German to English:Attachment 838397

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Converting textstring into date/time-format?

    Ins Deutsche übersetzt:

    =DATWERT(TEXTBEFORE(O2;" ";3))+ZEITWERT(TEXTAFTER(O2;" ";4))

  8. #8
    Registered User
    Join Date
    08-02-2023
    Location
    Switzerland
    MS-Off Ver
    Office 365, Version 2307
    Posts
    5

    Re: Converting textstring into date/time-format?

    Now it works! I have copied the formula from your Excel file and now it works wonderfully. I am overjoyed! Thank you very much for the quick and perfect help!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Converting textstring into date/time-format?

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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] Converting format of date and time
    By JohnJRambo in forum Excel General
    Replies: 2
    Last Post: 09-05-2019, 10:11 AM
  2. [SOLVED] Converting Unusable Time / Date Format To Usable Time / Date Format
    By Gtrtim112 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2019, 11:25 AM
  3. [SOLVED] Converting Date & Time (General format) to Date (Date format)
    By supremenuts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2017, 12:55 PM
  4. [SOLVED] converting binary date to date/time format
    By a2424 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2014, 01:15 AM
  5. Replies: 4
    Last Post: 05-10-2014, 10:45 AM
  6. [SOLVED] Converting Text to Military Date Time Group Format
    By ET1CARNES in forum Excel General
    Replies: 9
    Last Post: 04-12-2014, 08:51 AM
  7. Replies: 6
    Last Post: 03-19-2010, 12:26 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