Converting a string into a particular Date Format

sahilmadan

New Member
Joined
Sep 6, 2013
Messages
7
I have a large no of strings(left hand side of arrow) and i need to convert them into Date format(right hand side of arrow) in Excel.

19,690,408 --->> 04/08/1969
19,610,419 --->> 04/19/1961
19,560,107 --->> 01/07/1956

Can anyone help me with this?
Thanks in advance.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
This will work for the data you posted, but what happens if the month number requires two digits (Oct-Dec)?
Excel Workbook
AB
119,690,40804/08/1969
219,610,41904/19/1961
319,560,10701/07/1956
BU1
 
Upvote 0
Thanks for the reply.
But for A1 , the above formula is returning "25301" , not " 04/08/1969"
04/08/1969" .
 
Upvote 0
Another way:

Code:
=--REPLACE(REPLACE(SUBSTITUTE(A1,",",""),5,0,"/"),8,0,"/")

PS: Format the cell like date.

Markmzz
 
Last edited:
Upvote 0
Here is another formula that should work...

=1*TEXT(A1,"0000-00-00")

Note: For this formula, and all the others your have received, you will need to use Format Cells (CTRL+1) to change the date serial number that to formulas are returning to the date display format that you want.
 
Upvote 0
The above formula is not working when i have "10" as the "mm" in the original format.
For ex,
19,791,021
19,851,025

When i apply that formula on values like above , it gives #Value Error
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,533
Messages
6,120,076
Members
448,943
Latest member
sharmarick

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