![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 6
|
I have read all what is in the "Help" directory. I have a col of dates given in "CCYYMMDD" format and I want to insert a "/" between the year month and day but am only getting a whole row of "#####"'s. How do I get the date of 20021116 to read 2002/11/16 and format it all the way down the column. Sounds simple enough but I just cannot get it to work.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
This works to view your date, but won't change it to a date field:
0000"/"00"/"00
__________________
~Anne Troy |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
This will give you the date in another column:
=LEFT(A1,4)&"/"&MID(A1,5,2)&"/"&RIGHT(A1,2) You can then take those dates, copy, edit and paste special as values. Then do the *Times One Fix*. Put a 1 in any cell. Copy it. Select the *bad dates*, hit Edit-Paste Special-Multiply (returns date serial number). Then format the cells as dates however you like.
__________________
~Anne Troy |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
2. Press [ Next ] to 'til you reach Step 3 of 3. 3. Set the Column data format to Date: YMD and press [ Finish ]. 4. Format as yyyy/mm/dd |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|