Turn Text into Date and Time

Kingnight

New Member
Joined
Feb 5, 2011
Messages
38
Hey,

Thanks a lot for your time. I have one text 20110912, how could i turn that into this ( I want time to be exact 1:00:00pm)

09/12/2011 1:00:00 pm.


Thanks :confused::confused::confused:
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try

=DATE(LEFT(A1,4),RIGHT(A1,2),MID(A1,5,2))+"13:00:00"

Format the result cell as desired.
 
Upvote 0
Say your text is in cell A1, then use this formula and format with the appropriate date/time option:

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))+13/24
 
Upvote 0
Hey,

Thanks a lot for your time. I have one text 20110912, how could i turn that into this ( I want time to be exact 1:00:00pm)

09/12/2011 1:00:00 pm.


Thanks :confused::confused::confused:
Try this...

=TEXT(A1,"0000-00-00")+TIME(13,0,0)

Format as mm/dd/yyyy h:mm:ss AM/PM
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,317
Members
452,905
Latest member
deadwings

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