Date of Birth to proper date format

jschrock

New Member
Joined
Oct 5, 2011
Messages
47
Hello!

I have data formatted like this:

[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl66, width: 64"]51767[/TD]
[/TR]
[TR]
[TD="class: xl66"]72236[/TD]
[/TR]
[TR]
[TD="class: xl66"]112380[/TD]
[/TR]
[TR]
[TD="class: xl66"]100886[/TD]
[/TR]
[TR]
[TD="class: xl66"]42466[/TD]
[/TR]
[TR]
[TD="class: xl66"]100665[/TD]
[/TR]
</tbody>[/TABLE]

The problem is that these are Dates of Birth and I need them to look like:

05/17/67
07/22/36
11/23/80
10/08/86
04/24/66
10/06/65

Any help would be great!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Here is one formula that will do that (for an entry in cell A1):
Code:
=DATE(RIGHT(A1,2),LEFT(A1,LEN(A1)-4),LEFT(RIGHT(A1,4),2))
and then just use the "mm/dd/yy" custom date format.
 
Last edited:
Upvote 0
A shorter way:

=TEXT(A1,"00\/00\/00")+0

Format as date.


Excel 2010
AB
1517675/17/1967
2722367/22/1936
311238011/23/1980
410088610/8/1986
5424664/24/1966
610066510/6/1965
Sheet1
Cell Formulas
RangeFormula
B1=TEXT(A1,"00\/00\/00")+0
B2=TEXT(A2,"00\/00\/00")+0
B3=TEXT(A3,"00\/00\/00")+0
B4=TEXT(A4,"00\/00\/00")+0
B5=TEXT(A5,"00\/00\/00")+0
B6=TEXT(A6,"00\/00\/00")+0
 
Last edited:
Upvote 0
It's using the text function to force it into a 6 digit format separated by /. The \ tells the text format to take the next character literally. But this returns a text string, adding 0 to it coerces it back into a number.
 
Upvote 0
Last question.

Why does this function want to change on of the DOBs from:

70629 to 7/06/2029? How can I get it to do 1929?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

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