Serial number to timestamp in excel -


i have numbers 20160715082219000000000 , want convert timestamp 2016-07-15 08:22:19 , delete remaining 0's.please suggest how conversion in excel?

use following formula number in cell a1

=date(left(a1*10^-9&"",4),mid(a1*10^-9&"",5,2),mid(a1*10^-9&"",7,2))+time(mid(a1*10^-9&"",9,2),mid(a1*10^-9&"",11,2),mid(a1*10^-9&"",13,2)) 

this output number represents date , time, 20160715082219 represented 42566.34883. apply custom formatting cell (right click>format cells>custom) , type following string in type: field

yyyy-mm-dd hh:mm:ss 

and result:

2016-07-15 08:22:19 

as required


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -