Hi all
I download data that comes in csv format with date/time like this:
1/11/2015 16:00
I need to change this to 11/01/2015 16:00 when pasted into an .xlsx file but the format cells function does not change it for me.
Cheers
hammer
Hi all
I download data that comes in csv format with date/time like this:
1/11/2015 16:00
I need to change this to 11/01/2015 16:00 when pasted into an .xlsx file but the format cells function does not change it for me.
Cheers
hammer
Try this
=text(trim(1/11/2015 16:00),"mm/dd/yyyy h:mm")
Formula:Please Login or Register to view this content.
Punnam
Use Text to Columns to split the date/time using a space as the delimiter and output to two "spare" columns. In the dialogue, select the first column and format it as DMY. Then, in a third column, add the date and time columns and format as you wish.
Then, copy the third column and Paste Special | values and number formats over the original.
Now you can delete the three helper columns.
Probably sounds more complicated than it is
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Thanks to you both
You're welcome. Thanks for the rep.
Hi hammer2
Thank for the reputation points
Punnam
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks