Convert UT time to PST

mun_kut

New Member
Joined
Apr 9, 2009
Messages
48
Hi

I am trying to convert Universal Time in "Text" format to PST in Date & Time format. Is there a smart way of doing it?

Column A has text value "20090118170152UT" and this should be converted to a date value of 01/18/2009 09:01:52 in Column B.

Thanks for your help.

MK
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID(A1,9,2),MID(A1,11,2),MID(A1,13,2))
 
Upvote 0
If that is a consistent format...Try

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TEXT(MID(A1,9,6),"00\:00\:00")

Format the formula cell as custom
yyyy/mm/dd hh:mm:ss

Hope that helps.
 
Upvote 0
Try

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID(A1,9,2),MID(A1,11,2),MID(A1,13,2))-TIME(7,0,0)
 
Upvote 0
OH, so we just need to subtract 8 hours...

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TEXT(MID(A1,9,6),"00\:00\:00")-"08:00:00"
 
Upvote 0
Brilliant. It may be a problem with the settings...but I am not getting the "seconds" value in the output...
 
Upvote 0
=text(left(a1,8),"00\/00\/00")+(text(right(a1,6),"00\:00\:00")-1/3)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,259
Members
452,901
Latest member
LisaGo

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