Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I change a date in 19950428 to 4/28/1995 in excel?

I have a data as show below in excel with column F having a different date format yyyymmdd as text.

enter image description here

For example 19900216. I need it to be in this format 2/16/1990

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Any help I could would be appreciated.

>Solution :

Depends if you want it converting to a date value (so you can base other cell formulas on it) or just as a text string.

Text String:
=RIGHT(A1, 2) & "/" & MID(A1, 5, 2) & "/" & LEFT(A1, 4)

Date Value:
=DATE(LEFT(A1, 4), MID(A1, 5, 2), RIGHT(A1, 2)) then change the cell number formatting to get the desired date format.

(where A1 is the cell to be converted)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading