Google Sheets – Change Date Format from YYYYMMDD to MM/DD/YYYY

formulasgoogle sheetsgoogle-sheets-dates

I generated a report that formats date as 20160509 and my Google Sheets locale is already set to United States. I've played around with various options within Format > Number > Date Format but I can't change the dates to MM/DD/YYYY format without doing a simple find and replace. How do I accomplish this?

enter image description here

Best Answer

Assuming your string is in cell A1, this formula will convert it to a date. You can then format the date however you prefer.

=date(left(A1,4),mid(A1,5,2),right(A1,2))

Or, take the leftmost four characters as the year, the rightmost two characters as the day, and two characters in the middle starting at position 5 as the month, and convert it to a date.

19961210

turns into

12/10/1996

(standard American date format)


From Google Support: