Date formatting

Bingo58

New Member
Joined
Mar 20, 2002
Messages
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.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
This works to view your date, but won't change it to a date field:

0000"/"00"/"00
 
Upvote 0
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.
 
Upvote 0
On 2002-04-05 03:43, Bingo58 wrote:
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.

1. After selecting your values choose the Data | Text to Columns... menu command
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
 
Upvote 0

Forum statistics

Threads
1,213,524
Messages
6,114,117
Members
448,549
Latest member
brianhfield

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top