Split combined date and time cell to two separate cells and format accordingly vba?

robdav

New Member
Joined
Dec 1, 2017
Messages
15
Hi

I have a report which exports the date and time in one cell (column A). I would like to be able to split these via a macro into two cells and then change the date value so it is recognised as a date. Currently the date is delimited by dots and not recognised by Excel.

I would like the date to remain in column A with a newly inserted column B containing the time (there is existing data in column B).

The existing data looks like below with Date & Time in column A and Record ID in column B.

I have hopefully shared a link to some sample data.

Any help would be appreciated.

Thanks

Rob

Date & TimeRecord ID
2019.02.04 11:36:3411048383
2019.02.07 11:34:1111214207
2019.02.07 11:40:4211214748
2019.02.07 11:40:4311214749
2019.02.07 11:44:5911215079

<tbody>
</tbody>

https://drive.google.com/file/d/1-_Rx0JLW1mH6ILupMSmo1yCpk-58nwou/view?usp=sharing
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

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