#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Date Conversion

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Date Conversion

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


"MIchel Khennafi" wrote:

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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Date Conversion


Michel,

If your text is in A1 then

=VALUE(A1)

Format as Custom dd-mmm-yyyy.

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=563359

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 108
Default Date Conversion


MIchel Khennafi wrote:
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

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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
date conversion after pasting DC Gringo Excel Worksheet Functions 2 February 16th 06 06:05 PM
Calculate 1st of month date from existing date. Jim15 Excel Discussion (Misc queries) 1 January 9th 06 10:05 PM
Date Conversion jdmcleod Excel Discussion (Misc queries) 2 March 20th 05 12:12 AM
unwanted number to date conversion while pasting data from web Jacek Excel Worksheet Functions 1 February 24th 05 02:59 PM


All times are GMT +1. The time now is 07:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"