#1   Report Post  
AmyTaylor
 
Posts: n/a
Default text to dates?


Hi everyone, I have a problem with this following query:

I have a list of cells in the text format: 01.01.05 which relates to
1st Jan 2005 is there a way to change this so that it becomes a
date..?

whe
01.01.05 (text) would become 01/01/2005 (dd/mm/yyyy date format)
05.10.05 (text) would become 05/10/2005 (dd/mm/yyyy date format).

Thank you for all your help.
love Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile: http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=401411

  #2   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

Suppose your text string is in A1, then use:

=DATE(YEAR(RIGHT(A1,2)),MONTH(MID(A1,4,2)),DAY(LEF T(A1,2)))


Mangesh




"AmyTaylor" wrote
in message ...

Hi everyone, I have a problem with this following query:

I have a list of cells in the text format: 01.01.05 which relates to
1st Jan 2005 is there a way to change this so that it becomes a
date..?

whe
01.01.05 (text) would become 01/01/2005 (dd/mm/yyyy date format)
05.10.05 (text) would become 05/10/2005 (dd/mm/yyyy date format).

Thank you for all your help.
love Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile:

http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=401411



  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 2 Sep 2005 04:22:55 -0500, AmyTaylor
wrote:


Hi everyone, I have a problem with this following query:

I have a list of cells in the text format: 01.01.05 which relates to
1st Jan 2005 is there a way to change this so that it becomes a
date..?

whe
01.01.05 (text) would become 01/01/2005 (dd/mm/yyyy date format)
05.10.05 (text) would become 05/10/2005 (dd/mm/yyyy date format).

Thank you for all your help.
love Amy xx


If your dates are in columns:

Select the dates.

Data/Text-to-Columns Fixed Width (i.e. don't separate them)
Next
Next
Column Data Format/Date: DMY
Finish


--ron
  #4   Report Post  
KL
 
Posts: n/a
Default

how about: =--SUBSTITUTE(A1,".","/") and format the cell as date.

Regards,
KL


"AmyTaylor" wrote
in message ...

Hi everyone, I have a problem with this following query:

I have a list of cells in the text format: 01.01.05 which relates to
1st Jan 2005 is there a way to change this so that it becomes a
date..?

whe
01.01.05 (text) would become 01/01/2005 (dd/mm/yyyy date format)
05.10.05 (text) would become 05/10/2005 (dd/mm/yyyy date format).

Thank you for all your help.
love Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile:
http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=401411



  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

With my windows short date set for mm/dd/yyyy, I got May 10, 2005.

But I think (untested) if the short date format matched (dmy), then the formula
would work fine.



KL wrote:

how about: =--SUBSTITUTE(A1,".","/") and format the cell as date.

Regards,
KL

"AmyTaylor" wrote
in message ...

Hi everyone, I have a problem with this following query:

I have a list of cells in the text format: 01.01.05 which relates to
1st Jan 2005 is there a way to change this so that it becomes a
date..?

whe
01.01.05 (text) would become 01/01/2005 (dd/mm/yyyy date format)
05.10.05 (text) would become 05/10/2005 (dd/mm/yyyy date format).

Thank you for all your help.
love Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile:
http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=401411


--

Dave Peterson


  #6   Report Post  
KL
 
Posts: n/a
Default

Yup, that was exactly the idea as the OP appears to be using the European
notation.

Regards,
KL


"Dave Peterson" wrote in message
...
With my windows short date set for mm/dd/yyyy, I got May 10, 2005.

But I think (untested) if the short date format matched (dmy), then the
formula
would work fine.



KL wrote:

how about: =--SUBSTITUTE(A1,".","/") and format the cell as date.

Regards,
KL

"AmyTaylor"
wrote
in message ...

Hi everyone, I have a problem with this following query:

I have a list of cells in the text format: 01.01.05 which relates to
1st Jan 2005 is there a way to change this so that it becomes a
date..?

whe
01.01.05 (text) would become 01/01/2005 (dd/mm/yyyy date format)
05.10.05 (text) would become 05/10/2005 (dd/mm/yyyy date format).

Thank you for all your help.
love Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile:
http://www.excelforum.com/member.php...o&userid=20970
View this thread:
http://www.excelforum.com/showthread...hreadid=401411


--

Dave Peterson



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 change dimensions of data label text box in pie chart? Gouden Willem Charts and Charting in Excel 3 March 7th 06 12:11 PM
Converting Text months to sortable Numbers or Dates Greg Excel Discussion (Misc queries) 6 May 1st 05 03:32 AM
Converting text to dates Jack Excel Discussion (Misc queries) 2 April 25th 05 07:36 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 07:53 PM


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