ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   This date 20071017072917 into this type of date 10/17/2007 29:17 (https://www.excelbanter.com/excel-discussion-misc-queries/162455-date-20071017072917-into-type-date-10-17-2007-29-17-a.html)

Micro

This date 20071017072917 into this type of date 10/17/2007 29:17
 
How to convert This date 20071017072917 into this type of date 10/17/2007 29:17

JE McGimpsey

This date 20071017072917 into this type of date 10/17/2007 29:17
 
One way (assuming you really wanted 10/17/2007 07:29:17 rather than what
you posted):

=--TEXT(A1,"0000\/00\/00 00\:00\:00")

Format as mm/dd/yyyy hh:mm:ss

t

In article ,
Micro wrote:

How to convert This date 20071017072917 into this type of date 10/17/2007
29:17


Ron Rosenfeld

This date 20071017072917 into this type of date 10/17/2007 29:17
 
On Wed, 17 Oct 2007 09:38:04 -0700, Micro
wrote:

How to convert This date 20071017072917 into this type of date 10/17/2007 29:17


The formula:

=TEXT(A1,"0000\/00\/00 00\:00\:00")

will convert it to a date representation Excel can understand, but it will be
different than what you request:

2007/10/17 07:29:17


Also, this is a text string.

To convert this to a Excel date/time value, and then display it without showing
the hours, you could:

C1: =--B1 (assumes above formula is in B1)
or
B1: =--TEXT(A1,"0000\/00\/00 00\:00\:00")
Format/Cells/Number/Custom Type: mm/dd/yyyy mm:ss

OR you could use the formula:

=TEXT(TEXT(A1,"0000\/00\/00 00\:00\:00"),"mm/dd/yy mm:ss")

If you really want the hours to be displayed, and your request excluding them
was a typo, merely add hh: prior to the mm:ss

=TEXT(TEXT(A1,"0000\/00\/00 00\:00\:00"),"mm/dd/yy hh:mm:ss")


--ron

Peo Sjoblom

This date 20071017072917 into this type of date 10/17/2007 29:17
 
Shouldn't it be 10/17/2007 07:29:17?

If so you can use


=TEXT(LEFT(A1,8),"0000-00-00")+TEXT(RIGHT(A1,6),"00\:00\:00")

that will give you 39372.3120023148


which is the serial date and the decimal time value so then you need to
format the result as

mm/dd/yyyy hh:mm:ss which will return 10/17/2007 07:29:17



--


Regards,


Peo Sjoblom


"Micro" wrote in message
...
How to convert This date 20071017072917 into this type of date 10/17/2007
29:17





All times are GMT +1. The time now is 06:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com