May 20 2017
02:41 AM
- last edited on
Jul 25 2018
09:35 AM
by
TechCommunityAP
May 20 2017
02:41 AM
- last edited on
Jul 25 2018
09:35 AM
by
TechCommunityAP
Hi,
I have a CSV imported file. In this file the date value is captured as 20170424 (representing 24th of April 2017). Excel date format is unable to use this as a date value. Can someone advise on how to change 20170424 to 24-04-2017 by using a formulae or macro?
Thanks and regards,
Jan
May 20 2017 04:49 AM
Hi Jan,
Try this formula =DATE(LEFT(C2,4),MID(C2,5,2),RIGHT(C2,2)); where C2 contains the text string 20170424. The formula should give you a numeric value. Format that numeric value as date.
Hope it works,
Thanks,
Mike
May 20 2017 11:03 AM
No macros!
No formulas!
Go to Data > Text to Columns, then go to step 3, select the following, and then press Finish.
After you finish this process, you can change the date format and make it as you want.
To learn more, please follow this link:
May 21 2017 01:12 PM
Thanks Mike, it worked!
Regards, Jan