Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mytpoet67
 
Posts: n/a
Default Convert '12-03 to 12-03 date

A co-worker created a spreadsheet with dates keyed in a column as text (e.g.,
'12-03 represents December 2003). I need to convert a very long column of
these "dates" to actual dates in the format MM-YY. Everything I try converts
it to the proper month, but year 05 (2005).

Your help is appreciated.
--
Mytpoet67
  #2   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default Convert '12-03 to 12-03 date

If your first entry is in A2, then
=DATE("20"&RIGHT(A2,2),LEFT(A2,FIND("-",A2)-1),1) will turn that into a date.
Autofill through the entire column.
HTH. --Bruce

"Mytpoet67" wrote:

A co-worker created a spreadsheet with dates keyed in a column as text (e.g.,
'12-03 represents December 2003). I need to convert a very long column of
these "dates" to actual dates in the format MM-YY. Everything I try converts
it to the proper month, but year 05 (2005).

Your help is appreciated.
--
Mytpoet67

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Convert '12-03 to 12-03 date

You could use a formula like:
=DATE(2000+MID(A1,FIND("-",A1)+1,2),LEFT(A1,FIND("-",A1)-1),1)
(format the result as a nice date)

It'll give the 1st of the month.

Excel is seeing your 12-03 as December 3rd for the current year.



Mytpoet67 wrote:

A co-worker created a spreadsheet with dates keyed in a column as text (e.g.,
'12-03 represents December 2003). I need to convert a very long column of
these "dates" to actual dates in the format MM-YY. Everything I try converts
it to the proper month, but year 05 (2005).

Your help is appreciated.
--
Mytpoet67


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
Sloth
 
Posts: n/a
Default Convert '12-03 to 12-03 date

When you delete the apostrophe it interprets the date as m/dd and attaches
the current year.
I think you will need to use a dummy column with the formula
=DATE("20"&RIGHT(A1,2),MID(A1,2,2),1)
this will convert '12-03 to Dec 1, 2003. You will then need to change the
format to something like mm/yy. Then you will need to copy and paste
special, and select value to the original column. Finally delete the dummy
column.

Save your work first. :)

"Mytpoet67" wrote:

A co-worker created a spreadsheet with dates keyed in a column as text (e.g.,
'12-03 represents December 2003). I need to convert a very long column of
these "dates" to actual dates in the format MM-YY. Everything I try converts
it to the proper month, but year 05 (2005).

Your help is appreciated.
--
Mytpoet67

  #5   Report Post  
Posted to microsoft.public.excel.misc
Mytpoet67
 
Posts: n/a
Default Convert '12-03 to 12-03 date

Bruce,
Thank you. That worked perfectly.
--
Mytpoet67


"bpeltzer" wrote:

If your first entry is in A2, then
=DATE("20"&RIGHT(A2,2),LEFT(A2,FIND("-",A2)-1),1) will turn that into a date.
Autofill through the entire column.
HTH. --Bruce

"Mytpoet67" wrote:

A co-worker created a spreadsheet with dates keyed in a column as text (e.g.,
'12-03 represents December 2003). I need to convert a very long column of
these "dates" to actual dates in the format MM-YY. Everything I try converts
it to the proper month, but year 05 (2005).

Your help is appreciated.
--
Mytpoet67

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
How do I convert a text string into a date? JJMCDD02 Excel Worksheet Functions 4 November 25th 05 12:35 PM
Date format not correct when you convert a CSV text file in Excel Scarab Excel Discussion (Misc queries) 2 November 16th 05 12:22 PM
Is there a macro to convert times between 2 places dep. on date? Greg Excel Worksheet Functions 1 November 15th 05 09:33 PM
How to convert DATE and TIME to text ice_pack Excel Worksheet Functions 3 August 15th 05 10:30 AM
Convert Date to MMYY Hudd Excel Discussion (Misc queries) 3 January 25th 05 09:15 PM


All times are GMT +1. The time now is 06:49 PM.

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"