Date Format in Excel

DWB82

New Member
Joined
Jun 4, 2015
Messages
18
Hi Everyone

I have a file with a date/Time format that I am having some issues with. I have tried correcting this using both of the formulas that work with dates.

The only way that I have found to work with it is to run text to columns and then build the date up from each of the columns that this splits in to.

I have also attempted a mixture of Left, Mid & Right however, this has not worked either.

I would like either a formula or a Macro that is able to reference the data and put it in to a format that I am able to work with. The date information that I am working with looks like this "6/27/2019 7:53:16 AM".

I have tried to attache a file however, have been unable to.

If anything is unclear drop me a line.

Thanks in advance
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
=LEFT(A1,FIND(" ",A1)-1)+0

+0 forces the result into a number which is an Excel date, without the +0 the result would just be a string of characters.

You can't attach files on this site.
 
Upvote 0
Your sample Date/Time is good and does not demonstrate a problem.

"...and put it in to a format that I am able to work with." How are you trying to work with the date/time serial number?
 
Upvote 0
You can convert the date/time into 2 columns, one date and one time using Data>Text to columns.

Use Fixed width, put a break between the date and time, use Date for the column data format for both columns and specify the MDY format for the date column.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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