Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default text to date conversion

I'm trying to convert the following text 20061230.1437 to

12/30/06 14:37
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default text to date conversion

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID (A1,10,2),RIGHT(A1,2),0)
and format as Custom m/d/yyyy hh:mm
--
Gary''s Student - gsnu200738


"samuel" wrote:

I'm trying to convert the following text 20061230.1437 to

12/30/06 14:37

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default text to date conversion

I was using the & " " & instead of the +

Can you tell me why mine wouldn't work?

"Gary''s Student" wrote:

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID (A1,10,2),RIGHT(A1,2),0)
and format as Custom m/d/yyyy hh:mm
--
Gary''s Student - gsnu200738


"samuel" wrote:

I'm trying to convert the following text 20061230.1437 to

12/30/06 14:37

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default text to date conversion

By using the + we are making a value. The integer part of the value is the
date and the decimal part of the value is the time.
--
Gary''s Student - gsnu200738


"samuel" wrote:

I was using the & " " & instead of the +

Can you tell me why mine wouldn't work?

"Gary''s Student" wrote:

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID (A1,10,2),RIGHT(A1,2),0)
and format as Custom m/d/yyyy hh:mm
--
Gary''s Student - gsnu200738


"samuel" wrote:

I'm trying to convert the following text 20061230.1437 to

12/30/06 14:37

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
Date Conversion Kelli Excel Discussion (Misc queries) 2 June 20th 07 04:14 PM
Text Date Conversion CPodd Excel Discussion (Misc queries) 9 May 9th 07 04:39 AM
import /paste -stop automatic conversion of text 05-12345 to date artech Excel Discussion (Misc queries) 1 August 20th 06 09:09 PM
Date Conversion - sorry DTTODGG New Users to Excel 5 December 13th 05 07:36 PM
Date Conversion Jesse Excel Worksheet Functions 2 April 20th 05 06:57 PM


All times are GMT +1. The time now is 02:08 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"