Forum Discussion
Nina_SC
Jun 07, 2019Copper Contributor
Convert Text to Date Format
Hello everyone, I'm just an excel newbie and I've been finding ways on how to convert a date text string to date format. I find it peculiar that after transferring all my CSV files through a flas...
- Jun 07, 2019
Hi Nina,
you can use this macro, see attached file to convert dates. It converts all dates in selection to real date.
Sub KonvertDate()
Dim rngCell As Range
For Each rngCell In Selection
rngCell.Value = CDate(rngCell.Value)
Next rngCell
End SubBest regards from germany
Bernd
http://www.vba-tanker.com
Nina_SC
Jul 03, 2019Copper Contributor
Hi Sergei,
Thank you for your reply. I did what you have instructed but still no visible change though. Is there another workaround I could do?
Nina
Wyn Hopkins
Jul 03, 2019MVP
Your issue is common when going from data in one date format e.g. US to another e.g. UK / Australian
I did a video on it here on how Power Query in Excel can fix it
- Wyn HopkinsJul 03, 2019MVP
There's also a long formula solution attached..