Converting Text dates to date values

ExcelUserZero

New Member
Joined
Jan 18, 2018
Messages
6
Good morning,

I have a set of data that I imported into Excel. The date and time comes in one cell, but in the format: Sep 19 2017 10:08AM. I used the =Right and =Left functions to separate the date from the time, but now I am stuck with how to convert these to actual values. I have tried messing around with =datevalue and =timevalue.

Thank you in advance for your help!
 
Do you want your result to be one valid date/time value, and do you need/want one for date and one for time?

Hey @Joe4, yes - I would like one date/time value - 9/19/2017 10:08

My end goal is to use these times to extract elapsed time between two events, but I already have formula that performs that task - as long as the times and dates are in the format above.

Again, thank you so much for your help - I have really learned a lot today!
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Did you try Tetra201's formula back in post 10?
It looks like that should do what you want.
 
Last edited:
Upvote 0
Thank you! I will try that one in the morning - have not used the substitute function often, so was a bit nervous about using it.

Have a great night!
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,038
Members
448,940
Latest member
mdusw

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