For some silly reason the data I've been provided has dates in the following format: mmddyyyy but if the date is something beginning with zero (e.g. 03132010) then it shows up without the leading zero. I need to update all of these dates so that if they don't already have two mm fields they have a 0 added to the beginning.
|
feedback
|
|
You can highlight the cells concerned, right click then format cells. You can select how the cells will handle formats. Please see: http://support.microsoft.com/kb/81518 <-- You can do it using custom formats. | |||||||
feedback
|
|
The way I'd try it is somewhat convoluted, but I tested it and it works. Make a copy of your sheet. Add five columns after the date. In the first column of the new ones, use the formula To get the date in the fifth column, formatted as a date, use Actual formula names may vary, I backtranslated them from German. | |||
|
feedback
|
|
I got it to work with this formula in an extra column that pre-pends a zero. Some assumptions:
=IF(LEN(A2)<>8,"0"&A2,A2) Does this do what you want? | |||
|
feedback
|