0

I have Excel doc that contains date column, but it was writtn as 19920504 the real date is 04-05-1992 is there any method or formula to fix it? (rather than manully because I have huge data)

mona
  • 53
  • 1
  • 1
  • 7

2 Answers2

3

If H5 contains 19920504 then this formula returns an Excel date: (in the UK it returns 04/05/1992 )

=DATE(LEFT(H5,4),MID(H5,5,2),RIGHT(H5,2))
Charles Williams
  • 23,121
  • 5
  • 38
  • 38
2

Select the column with the dates in it and go to Data | Text to Columns. Skip the first couple of screens, and in the next screen set the date format to YMD.

Tom Sharpe
  • 30,727
  • 5
  • 24
  • 37