text to dates?

  • Thread starter Thread starter AmyTaylor
  • Start date Start date
A

AmyTaylor

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..?

where:
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
 
Suppose your text string is in A1, then use:

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


Mangesh
 
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..?

where:
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
 
how about: =--SUBSTITUTE(A1,".","/") and format the cell as date.

Regards,
KL
 
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.
 
Yup, that was exactly the idea as the OP appears to be using the European
notation.

Regards,
KL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top