Convert MMDDYYYY String to MM/DD/YYYY

Bill Cannon

New Member
Joined
Jun 12, 2003
Messages
8
I'm using Excel 2000 and need to convert a column of dates in an Excel Spreadsheet into a csv file and then import it into another program. When I attempt to format the cells to the needed format it changes the dates. For example, the date 00/00/1914 when formated to date format changes to 2/23/4647. Any suggestions on how to change to the needed format?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
The problem I have is that the program I am transferring the data into will not recognize it as a date unless it is in date format (numerical and not text). I keep hitting a wall because formatting the data in Excel as dates creates these strange results such as ########## or some different date than the original entry.
 
Upvote 0
Since the data is is numeric format, you must re-build the date in date format. If the current format of your date won't allow you to use Text to Columns, then use the DATE function.

For example, if in cell A1, you have 1914, you can convert it to 1/1/1914 by using the formula:

=DATE(A1,1,1)

NOTE: The format of DATE is =DATE(year,month,day)
 
Upvote 0
Thanks but I finally figured out how to used the forumulas. Used formula to separate portions of cells and insert slashes. For example, I used =LEFT(A2,1)&"\"&MID(A2,2,2)&"\"&RIGHT(A2,4) to change the number 1011952 located in cell A2 to 1\01\1952.

I appreciate all the help.

:biggrin:
 
Upvote 0

Forum statistics

Threads
1,215,172
Messages
6,123,443
Members
449,100
Latest member
sktz

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