formating dates..


Posted by Zack Stephen on December 10, 2001 6:43 AM

I have a column of dates of the following form:
1999-12-14
1999-12-14
1999-12-14

In order to do time series analysis in minitab i need
them in a standard form like:
12/14/99
12/14/99
12/14/99

However, when i highlight the column and try to format
it to the date format, nothing happens. However, when
i edit the cell and then press enter, it formats it!
ie; f2 then enter without changing anything

My question is do i need to write a macro to do this
( i ahve 5000 rows) or is there a simplier method ?

Thanks for quick reply :)
zack

Posted by raj on December 10, 2001 6:54 AM

looks like your default system date format is not Y-M-D . I've had problems when the system date format is different from the date format in a col. so you could change the default date format as y-m-d.
alternatively, save the spreadsheet as text and open it in excel again, this time select the date column and specify the format as y-m-d.

Posted by Mark W. on December 10, 2001 7:50 AM

Your dates are most likely text values. You don't
need a macro to convert them. Simply do the following:

1. Select the cells containing the text representation
of date values.
2. Choose the Data | Text to Columns... menu command.
3. At Step 1 of 3 press [ Next> ].
4. At Step 2 of 3 press [ Next> ].
5. At Step 3 of 3 choose the "Date" column format
radio button, select "MDY" from the date drop down
list, and press [ Finish ].



Posted by Kevin Mac on December 10, 2001 12:49 PM

Here is a strange fix for you on these dates, and to make this work, you could probably just record a macro, but I found that just double-click the cell with the formatted date 1999-12-14, exit the cell, and it corrects the date to the format of 12-14-1999. I know if sounds flaky, but it accomplishes the same thing as going through and using the "text to columns" steps. I am just assuming that these dates were copied and pasted into excel, that is the only common variable I have experienced when I have encountered this problem.