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]
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]
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.
Hi!
without Square brackets
OK - see post #2.
Last edited by AliGW; 08-02-2023 at 09:09 AM. Reason: Workbook added.
Outstanding! A thousand thanks for the quick feedback. I will try this and write again ...
Unfortunately, I got an error message. From German to English:Attachment 838397
Ins Deutsche übersetzt:
=DATWERT(TEXTBEFORE(O2;" ";3))+ZEITWERT(TEXTAFTER(O2;" ";4))
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!
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks