Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default 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
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default 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



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
how to convert date type to text type Steffen Excel Discussion (Misc queries) 3 July 17th 07 11:32 AM
I type in 1-2, how can I keep that from defaulting to a date? nickiann18 Excel Discussion (Misc queries) 2 December 7th 05 05:59 AM
Problems with DATE data type dmplacebo New Users to Excel 0 July 12th 05 08:40 AM
How do you add one date to another? I type in 1/31/05 in A1 and I. JPreeshl Excel Worksheet Functions 2 February 23rd 05 01:03 AM
Why can't I type in a date? No Spam Please Excel Discussion (Misc queries) 4 December 10th 04 12:20 AM


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

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"