I have a data report that has a date/timestamp like this "Sep 11 2021 5:45AM" and excel doesn't recognize this as a date and timestamp. How can I quickly convert this column to be a proper date/timestamp?
I have a data report that has a date/timestamp like this "Sep 11 2021 5:45AM" and excel doesn't recognize this as a date and timestamp. How can I quickly convert this column to be a proper date/timestamp?
Find & Replace all
[space]2021
to
,[space]2021
and
AM
to
[space]AM
and
PM
to
[space]PM
Where I used [space] is just a space. I spelled it out to make it clearer what is there.
As a side-note, be sure you don't have other text within the sheet that might contain the letters "am" in the text that would be affected by find and replace. That would certainly be annoying to have to fix! haha
If that is a possibility for the OP, then he should click the "Options>>" button in the dialog and put a checkmark in the Match case" checkbox.
Sounds like these are all in one column so you can select the column first, then the Find & Replace will apply only to that column.
Maybe more slower.
=DATE(MID(A1,8,4),(FIND(LEFT(A1,3),A1)+2)/3,MID(A1,5,2))+TIME(TRIM(MID(A1,12,2)),MID(A1,15,2),0)+IF(RIGHT(A1,2)="PM",TIME(12,0,0),0)
Regards.
My English is very poor, so please be patient >_<"
My Dynamic Related Dropdown post:
https://www.excelforum.com/excel-for...ml#post5657376
https://www.excelforum.com/excel-for...ml#post5655711
https://www.excelforum.com/excel-for...ml#post5655762
Since the OP lives in the US, this formula should work...
Formula:Please Login or Register to view this content.
Where is this data coming from in the first place? Is it possible to address it at the source?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks