简体   繁体   English

Excel公式-转换文本的日期格式

[英]Excel formula - convert date format of text

I have the following column which is formatted as text and contains a date: 我有以下列,其格式为文本格式并包含日期:

`Wed Jul 12 23:59:05 PDT 2017`

How can I convert this into an actual date in the dd/mm/yyyy format? 如何将其转换为dd/mm/yyyy格式的实际日期? I tried =DATE(RIGHT(B4,4),MID(B4,5,3),MID(B4,9,2)) but without success. 我试过=DATE(RIGHT(B4,4),MID(B4,5,3),MID(B4,9,2))但没有成功。

Thanks 谢谢

Try this 尝试这个

=DATE(RIGHT(B4,4),MONTH(DATEVALUE(MID(B4,5,3)&1)),MID(B4,9,2))

See image for reference 参见图片以供参考

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM