#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default Text to date

Hi Arun,

One way is to obtain the date say in c3
=CONCATENATE(VALUE(RIGHT(LEFT(b3,12),2))," ",RIGHT(LEFT(b3,8),3),"
",RIGHT(LEFT(b3,18),4)) giving 20 Sep 2006
then the time say in d3
=RIGHT(b3,5) giving 14:16

The date can be converted to a serial number say in e3
= datevalue(c3) giving 09/20/2006 (format mm/dd/yyyy)

The time as well say in f3
=timevalue(d3) giving 14:16 (format hh:mm)

Then the serial numbers can be added say in g3
=e3+f3 giving 09/20/2006 14:16 (format mm/dd/yyyy hh:mm)

Some of the formats may need to be added as Custom if not already available

HTH
Anthony

"Arun2902" wrote:

Hi,

Hope someone can help me with this. I am trying to convert "Wed. Sep. 20,
2006 14:16" into a format recognized by excel (9/30/06 14:16). Have tried to
extract and collate the data using
"=CONCATENATE(VALUE(RIGHT(LEFT(B3,12),2))," ",RIGHT(LEFT(B3,8),3),"
",RIGHT(LEFT(B3,18),4)," ",RIGHT(B3,5))", but all my efforts are in vain when
I try to convert it to a date and time format recognized by excel. The lenght
of the text that I'm trying to convert is exactly 24 characters.

Hope someone can help me with this.

Thanks

Arun

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
turn off convert text to date (i.e. 4-9 to April 9, 2006) [email protected] Excel Worksheet Functions 4 June 13th 06 04:25 PM
How do I grab the date from a text string? [email protected] Excel Worksheet Functions 4 June 6th 06 07:55 AM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
Macro to convert text to date Nortos Excel Worksheet Functions 2 May 11th 05 10:42 AM
EXTRACT TEXT FROM A DATE Ronbo Excel Worksheet Functions 5 February 1st 05 07:39 AM


All times are GMT +1. The time now is 07:24 PM.

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

About Us

"It's about Microsoft Excel"