Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sean
 
Posts: n/a
Default convert string to date

How can I convert a string as 08-MAR-06 to a date in an excel cell?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davesexcel
 
Posts: n/a
Default convert string to date


right click on mouse
select format cells
select numbers tab
select date
select the format you want


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=517994

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sean
 
Posts: n/a
Default convert string to date

I am sorry I did not make myself clear in the first post.

My cell's formular is
=CONCATENATE(MID(B3,6,2),"-",MID(B3,1,3),"-",MID(B3,10,2)), which is equal to
08-Mar-06, but it is a string. How can I make it to a date in the cell?

Thanks.

"davesexcel" wrote:


right click on mouse
select format cells
select numbers tab
select date
select the format you want


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=517994


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default convert string to date


Multiply your formula by 1.

=CONCATENATE(MID(B3,6,2),"-",MID(B3,1,3),"-",MID(B3,10,2))*1

HTH

Steve


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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sean
 
Posts: n/a
Default convert string to date

NICE. Thanks.

"SteveG" wrote:


Multiply your formula by 1.

=CONCATENATE(MID(B3,6,2),"-",MID(B3,1,3),"-",MID(B3,10,2))*1

HTH

Steve


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




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default convert string to date


No problem.


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

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
Is there a macro to convert times between 2 places dep. on date? Greg Excel Worksheet Functions 1 November 15th 05 09:33 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
How to convert string to a date galsaba Excel Worksheet Functions 3 March 4th 05 05:20 PM
How do I convert a number formated as a date to text in Excel? BrotherNov Excel Discussion (Misc queries) 5 March 2nd 05 03:51 PM
extract numbers, convert to date gkaspen Excel Discussion (Misc queries) 7 March 2nd 05 02:31 AM


All times are GMT +1. The time now is 05:19 AM.

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"