Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Convert text to dates

Hi there,

I ahve the following problem:-

I currently have a spreadsheet that has a load of dates stored as text in
the following format:- 01.01.2008

I want to change it so that it sorts to 01/01/2008 but I cannot seem to do
it!! Changing the format to date makes no difference!!

Any help would be much appreciated.
thanks
Chris
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Convert text to dates

Assuming your date is in A1, try this in an adjacent column.

=DATE(VALUE(RIGHT(A1,4)),VALUE(LEFT(A1,2)),VALUE(M ID(A1,4,2)))

You can then sort on this column.
--
HTH,
Barb Reinhardt



"Chris AM" wrote:

Hi there,

I ahve the following problem:-

I currently have a spreadsheet that has a load of dates stored as text in
the following format:- 01.01.2008

I want to change it so that it sorts to 01/01/2008 but I cannot seem to do
it!! Changing the format to date makes no difference!!

Any help would be much appreciated.
thanks
Chris

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Convert text to dates

Try Data Text to Columns to convert it to real dates ..
Select the col of "dates", click Data Text to Columns. Click Next Next.
In step 3 of the wiz., check "Date" under Col data format, then select the
date format from the droplist, eg: MDY. Click Finish. That should convert it
all at one go to real dates recognized by Excel. Now you can sort the col,
format further to desired date format, etc.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Chris AM" wrote:
Hi there,

I ahve the following problem:-

I currently have a spreadsheet that has a load of dates stored as text in
the following format:- 01.01.2008

I want to change it so that it sorts to 01/01/2008 but I cannot seem to do
it!! Changing the format to date makes no difference!!

Any help would be much appreciated.
thanks
Chris

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Convert text to dates

I didn't realize that worked with dates formatted this way. I've done it
when dates are seen as text though. I've learned something today.

Thanks,
Barb


"Max" wrote:

Try Data Text to Columns to convert it to real dates ..
Select the col of "dates", click Data Text to Columns. Click Next Next.
In step 3 of the wiz., check "Date" under Col data format, then select the
date format from the droplist, eg: MDY. Click Finish. That should convert it
all at one go to real dates recognized by Excel. Now you can sort the col,
format further to desired date format, etc.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Chris AM" wrote:
Hi there,

I ahve the following problem:-

I currently have a spreadsheet that has a load of dates stored as text in
the following format:- 01.01.2008

I want to change it so that it sorts to 01/01/2008 but I cannot seem to do
it!! Changing the format to date makes no difference!!

Any help would be much appreciated.
thanks
Chris

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Convert text to dates

Hi Chris,

You can try the following simple steps as well.

Select all the dates entered in the format 01.01.08.

Goto - Edit
Click - Replace
Enter . in Find what?
Enter / in Replace with
Click - Replace All

That's it. all your dates text format would get changed to date
format. Hope it is the easiest shortcut,

regards,

Rajendran M






On Mar 4, 6:06 pm, Barb Reinhardt
wrote:
I didn't realize that worked with dates formatted this way. I've done it
when dates are seen as text though. I've learned something today.

Thanks,
Barb

"Max" wrote:
Try Data Text to Columns to convert it to real dates ..
Select the col of "dates", click Data Text to Columns. Click Next Next.
In step 3 of the wiz., check "Date" under Col data format, then select the
date format from the droplist, eg: MDY. Click Finish. That should convert it
all at one go to real dates recognized by Excel. Now you can sort the col,
format further to desired date format, etc.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Chris AM" wrote:
Hi there,


I ahve the following problem:-


I currently have a spreadsheet that has a load of dates stored as text in
the following format:- 01.01.2008


I want to change it so that it sorts to 01/01/2008 but I cannot seem to do
it!! Changing the format to date makes no difference!!


Any help would be much appreciated.
thanks
Chris




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 do I convert dates stored as dates to text? diamunds Excel Discussion (Misc queries) 5 September 7th 07 05:38 PM
Convert text dates AmyGG Excel Discussion (Misc queries) 4 October 20th 06 03:35 PM
convert text to dates Ben Excel Discussion (Misc queries) 2 October 16th 06 12:04 PM
Convert Dates to text lmullenjr Excel Discussion (Misc queries) 3 August 18th 06 03:12 PM
Convert text to dates Ket Excel Worksheet Functions 5 November 4th 04 08:03 PM


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