Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Convert Text to Date format

I have a file with text as follows:
31-Jul-2007 05:07:48 PM PDT

Is there some way for excel to convert this to a standard date?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Convert Text to Date format

Assuming that the date is A1:

=DATEVALUE(LEFT(A1,11))

The LEFT function extracts the first 11 characters on the left side of the
entry and the DATEVALUE function converts the text to a valid date serial
number. You'll have to format the cell for the date format of your choice
--
Kevin Backmann


"Fellow Wanderer" wrote:

I have a file with text as follows:
31-Jul-2007 05:07:48 PM PDT

Is there some way for excel to convert this to a standard date?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Convert Text to Date format

Assume this is in one column and you only need the date?
If you want to keep the time make sure there is an empty column to the
right,
select the column, do datatext to columns, select fixed width and click
next, make sure one line is right after the year and double click the other
lines and click next, if you want to remove what's to the right of the date
select the column to the right and select don not import (skip) then click
finish
If you want to keep what's to the right just click finish in step 2 after
setting the lines


--


Regards,


Peo Sjoblom



"Fellow Wanderer" wrote in
message ...
I have a file with text as follows:
31-Jul-2007 05:07:48 PM PDT

Is there some way for excel to convert this to a standard date?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Convert Text to Date format

Thank you to both of you! Both were great suggestions and I really
appreciate it.

"Fellow Wanderer" wrote:

I have a file with text as follows:
31-Jul-2007 05:07:48 PM PDT

Is there some way for excel to convert this to a standard date?

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
Convert date from text format to date format Anita Excel Discussion (Misc queries) 3 June 4th 07 11:57 AM
Convert date + time text format to date format Paul Ho Excel Worksheet Functions 2 May 22nd 07 05:47 PM
How to convert text into date format? Eric Excel Discussion (Misc queries) 6 January 24th 07 03:27 PM
How to convert text into date format? Eric Excel Worksheet Functions 4 January 24th 07 02:37 PM
Help: How do I convert a text date into a real date format japorms Excel Worksheet Functions 4 August 2nd 06 06:36 PM


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