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.
 
The above formula is not working when i have "10" as the "dd" in the original format.
For ex,
19,791,021
19,851,025

When i apply that formula on values like above , it give #Value Error
When you have several responses like in this thread, you cannot just say "that formula doesn't work"... we do not know which formula you are talking about. If you used "Replying With Quote" instead of "Reply", then the message with the formula would be shown and we would know which formula you were talking about.

Now, with that said, I am pretty sure my formula (shown in Message #8) will work with those numbers as well as your original ones.
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
With data in A1, in B1 enter:

=DATE(LEFT(A1,2) & MID(A1,4,2),MID(A1,6,1) & MID(A1,8,1),RIGHT(A1,2))


​and format B1 as Date
The above formula is not generating the correct values.
For ex . In case of "19,690,408" it is generating output as "12/8/1993".
Could you please look at the formula again?
C
 
Upvote 0
My formula assumed that the commas were actually part of the data.
You are seeing errors because in your sheet the commas are only formatting.
 
Upvote 0
When you have several responses like in this thread, you cannot just say "that formula doesn't work"... we do not know which formula you are talking about. If you used "Replying With Quote" instead of "Reply", then the message with the formula would be shown and we would know which formula you were talking about.

Now, with that said, I am pretty sure my formula (shown in Message #8) will work with those numbers as well as your original ones.
Sorry about that. Thank you for your help.
 
Upvote 0
Thank you. I had the same issue and your formula helped me.

What does the "0" do (beginning after the first parenthesis)? I can't figure it out.
 
Upvote 0

Forum statistics

Threads
1,215,268
Messages
6,123,970
Members
449,137
Latest member
yeti1016

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