Translating serial numbers into date codes

Occasional Contributor

I have an excel file with a column with dates in the format In some of the cells, there are more than one date or commas and semi commas. I want only to have ten digits counted from the left in the cell ( I used the left function (LEFT(A2;10)). The 10 digits dates appear in the next column and most of the dates appear in the format as planned but some of them appear as a serial number (For example: instead of 13.08.2007 I get 39307).


2 Replies

Better to use =VALUE(LEFT(A2;10)) and apply date format to your target column (I assume is your default date format)




I suggest to use the below formula to extract each part of the date and format it in the desired format:



Hope that helps