Converting month in text format to date format

N

Naomi

Hello

I have a group of cells that has been copied from an HTML page. These cells contain dates such as Jun 20 2002 8:56 AM. How can I convert these cells to a Date format where they can be sorted? I've tried changing the format but that doesn't seem to work. Thank you!
 
D

Dave R.

One way;

=--(TEXT(--(LEFT(A1,6)),"mm/dd/")&RIGHT(LEFT(A1,11),4))

you can format that as date and should do the trick.


Naomi said:
Hello,

I have a group of cells that has been copied from an HTML page. These
cells contain dates such as Jun 20 2002 8:56 AM. How can I convert these
cells to a Date format where they can be sorted? I've tried changing the
format but that doesn't seem to work. Thank you!
 

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

Top