Date Conversion

M

MIchel Khennafi

Good morning Gurus

I have a cell into which the following string is entered "14FEB2005"... This
is a value extracted from a file. This is currently being handled as a text
by Excel. What could be the formula I need to transform this value into a
date like "14-feb-2005" and have it treated like a real date?

I tried to use Date (mid(),mid(),mid()).. but got an error for the month
conversion... Any other suggestion?

Thanks a lot

Michel
 
G

Guest

Try this:

With
A1: 14FEB2005
B1: =--A1

OR...you can use Text-to-Columns and set that cell's data type to Date: DMY

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 
S

SteveG

Michel,

If your text is in A1 then

=VALUE(A1)

Format as Custom dd-mmm-yyyy.

HTH

Stev
 
S

Scoops

MIchel said:
Good morning Gurus

I have a cell into which the following string is entered "14FEB2005"... This
is a value extracted from a file. This is currently being handled as a text
by Excel. What could be the formula I need to transform this value into a
date like "14-feb-2005" and have it treated like a real date?

I tried to use Date (mid(),mid(),mid()).. but got an error for the month
conversion... Any other suggestion?

Thanks a lot

Michel

Hi Michel

Not that it's any better than the other posts but also:

=DATEVALUE(D3)

Regards

Steve
 

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