Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default mySQL timestamp to readable format

How would I go about doing this? The format is 20070112130325, so
basically YYYYMMDDhhmmss. Does Excel have anything built in to convert
this to a readable format or do I have to parse it to format it?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default mySQL timestamp to readable format

You have to parse it.

Assume 20070112130325 is in A1.

=LEFT(A1,4) = 2007
=MID(A1,5,2) = 01 -- repeat this formula, increasing the 5 by the number of
characters, from left to right, you want to start at for each additional
extraction. The 2 is the number of characters you want to extract.

If you have a lot of these numbers, then just copy the formulas down as
necessary

Dave
--
Brevity is the soul of wit.


" wrote:

How would I go about doing this? The format is 20070112130325, so
basically YYYYMMDDhhmmss. Does Excel have anything built in to convert
this to a readable format or do I have to parse it to format it?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default mySQL timestamp to readable format

You could do it by
=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))and format as dd/mm/yyyy hh:mm:ss or as you wish.--David wrote in ooglegroups.com... How would I go about doing this? The format is 20070112130325, so basically YYYYMMDDhhmmss. Does Excel have anything built in to convert this to a readable format or do I have to parse it to format it?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format 2 digit year to 4 digit RealGomer Excel Discussion (Misc queries) 5 December 14th 06 01:45 PM
Convert Unix timestamp to Readable Date/time Emily Excel Worksheet Functions 2 January 26th 06 11:59 PM
Conditonal Format with a date format Kevin Excel Discussion (Misc queries) 2 April 27th 05 10:20 PM
Office2000: Conditional format behaves strangely Arvi Laanemets Excel Discussion (Misc queries) 1 April 7th 05 08:47 AM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM


All times are GMT +1. The time now is 07:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"