Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I convert a text string into a date? | Excel Worksheet Functions | |||
Date format not correct when you convert a CSV text file in Excel | Excel Discussion (Misc queries) | |||
Is there a macro to convert times between 2 places dep. on date? | Excel Worksheet Functions | |||
How to convert DATE and TIME to text | Excel Worksheet Functions | |||
Convert Date to MMYY | Excel Discussion (Misc queries) |