Extract Date and Time

kmonkmol

Board Regular
Joined
Mar 13, 2014
Messages
50
Hello
I have a Sales Data Sheet, I need Extract my date and time in separate column from a text range. i attached my file please reply me.

Here is the link
 
Here is the corrected version:

mr excel questions 21.xlsm
BKL
153/31/2023 12:42:49 AM2023-03-3112:42:49 AM
163/31/2023 12:44:39 AM2023-03-3112:44:39 AM
173/31/2023 12:45:34 AM2023-03-3112:45:34 AM
183/31/2023 12:46:35 AM2023-03-3112:46:35 AM
193/31/2023 12:47:02 AM2023-03-3112:47:02 AM
203/31/2023 12:47:50 AM2023-03-3112:47:50 AM
213/31/2023 9:13:39 PM2023-03-3109:13:39 PM
kmonkmol
Cell Formulas
RangeFormula
K15:K21K15=DATE(RIGHT(LEFT(B15,FIND(" ",B15)-1),4),LEFT(B15,FIND("/",B15)-1),MID(B15,FIND("/",B15)+1,FIND("/",B15,FIND("/",B15)+1)-(FIND("/",B15)+1)))
L15:L21L15=TIMEVALUE(MID(B15,FIND(" ",B15)+1,FIND(":",B15)-(FIND(" ",B15)+1))&":"&MID(B15,FIND(":",B15)+1,FIND(":",B15,FIND(":",B15)+1)-(FIND(":",B15)+1))&":"&LEFT(RIGHT(B15,5),2)& " " & RIGHT(B15,2))
 
Upvote 0
Solution

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Here is the corrected version:

mr excel questions 21.xlsm
BKL
153/31/2023 12:42:49 AM2023-03-3112:42:49 AM
163/31/2023 12:44:39 AM2023-03-3112:44:39 AM
173/31/2023 12:45:34 AM2023-03-3112:45:34 AM
183/31/2023 12:46:35 AM2023-03-3112:46:35 AM
193/31/2023 12:47:02 AM2023-03-3112:47:02 AM
203/31/2023 12:47:50 AM2023-03-3112:47:50 AM
213/31/2023 9:13:39 PM2023-03-3109:13:39 PM
kmonkmol
Cell Formulas
RangeFormula
K15:K21K15=DATE(RIGHT(LEFT(B15,FIND(" ",B15)-1),4),LEFT(B15,FIND("/",B15)-1),MID(B15,FIND("/",B15)+1,FIND("/",B15,FIND("/",B15)+1)-(FIND("/",B15)+1)))
L15:L21L15=TIMEVALUE(MID(B15,FIND(" ",B15)+1,FIND(":",B15)-(FIND(" ",B15)+1))&":"&MID(B15,FIND(":",B15)+1,FIND(":",B15,FIND(":",B15)+1)-(FIND(":",B15)+1))&":"&LEFT(RIGHT(B15,5),2)& " " & RIGHT(B15,2))
thank you
 
Upvote 0
Happy to help you find a solution.

Another suggestion, is to please update your profile here with the version of excel that you use. That way, with future questions you can get faster and appropriate answers to your questions.

Best Wishes!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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