Strange Date Format 11/4/14, 1:09 PM will not convert to Excel Date Time due to comma placement

Rx_

Board Regular
Joined
May 24, 2011
Messages
52
A popular product has an Export to Excel with a single column for Date / Time.
The format shown has the date [comma] Time.
It won't convert to a Date date type due to the comma.

A popular software tool takes this data off of the internet and converts it to this text string.

I can manually use the Text to Columns to split this using the comma as the delimiter.
I am able to write a macro to remove the comma among other options.

I have failed to find a "custom" format that could convert this format to a Date Time.
The problem is: I want to enable people who don't have much Excel Skills to download and convert this column to a Date/Time field.

What would be the most simple way to remove the comma from this Date, Time string?


Code:
[TABLE="width: 123"]
<tbody>[TR]
[TD]Date / Time[/TD]
[/TR]
[TR]
[TD]11/4/14, 1:09 PM[/TD]
[/TR]
[TR]
[TD]11/4/14, 1:26 PM[/TD]
[/TR]
[TR]
[TD]11/4/14, 1:26 PM[/TD]
[/TR]
[TR]
[TD]11/4/15, 1:28 PM[/TD]
[/TR]
[TR]
[TD]11/4/16, 1:28 PM[/TD]
[/TR]
[TR]
[TD]11/4/17, 1:44 PM[/TD]
[/TR]
</tbody>[/TABLE]

<tbody> </tbody>

This worked - Select Column - used Find And Replace - for Find enter a comma, for replace put in one space.
It replaced all of the columns. And now they become Time Date data types.

if anyone else has a better suggestion, please let me know.
 
Last edited:

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Select the column then use find-replace. Put , in the find box and leave the replace box blank (obviously match entire cell contents needs to be unchecked).
 
Upvote 0

Forum statistics

Threads
1,215,773
Messages
6,126,821
Members
449,340
Latest member
hpm23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top