[英]How to convert a text name format to excel date?
I have a column that has a name date: Friday, December 25, 2015 and I want to convert it to a date format: 12/25/2015 , that way I can perform other date functions. 我有一列名称为日期的列: 2015年12月25日,星期五,我想将其转换为日期格式: 12/25/2015 ,这样我就可以执行其他日期功能。
I have unsuccessfully tried both changing the format directly and using the =DATEVAL() function. 我尝试直接更改格式和使用= DATEVAL()函数均未成功。
Any direction would be great. 任何方向都很好。 thanks 谢谢
First remove the day names 首先删除日期名称
Ctrl+f and just replace "Friday," or "Saturday," or other days with "" now your columns should be formatted like "December 25, 2015" Ctrl + f,只需将“星期五”或“星期六”或其他日期替换为“”,现在您的列应采用“ 2015年12月25日”的格式
Now use the dateval function like =DATEVALUE("December 25, 2015") 现在,使用dateval函数,例如= DATEVALUE(“ 2015年12月25日”)
Now select date from formatting and you should be good. 现在从格式化中选择日期,您应该会很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.