• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Formatting using DATEDIF and EXTEXT

john8714

New Member
I am curious if it is possible to transform a six digit number with EXTEXT and DATEDIF into a birthday notation w/o using the cell formating?

Example: 870601 --> 1987-06-01
 
Last edited:
Perhaps

=LEFT(A1,2)+0+IF(LEFT(A1,2)+0>19,1900,2000)&"-"&MID(A1,3,2)&"-"&RIGHT(A1,2)
 
Maybe,

1] Assume your data located in A1

2] Select A1 >> Text to Columns >> Delimited >> Next >> Next >> In step 3 of 3, click "Date", and choose " YMD" >> Finish.


upload_2017-12-5_12-57-2.png

Regards
Bosco
 
Hi John , please confirm that do you have your data in correct form because if the number will like this 143211 in which 32 does not belongs to any date for month.
 
Back
Top