如何在Excel中将文本转换为日期格式 [英] How to convert the text to date format in excel
本文介绍了如何在Excel中将文本转换为日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-
如何将以下文本转换为当前格式的
的日期格式,如果我尝试将文本转换为日期右边的文本是一般的
点击单元格并选择格式单元格iam不能
转换。
How to convert the below text to a date format the current format of the text is general if i try convert the text to date by right clicking the cell and selecting the format cells iam not able to convert.
我的文字是2015年3月10日1:05:34 GMT + 05:30我想将
这个文本转换为日期格式为excel。
My text is "March 10, 2015 1:05:34 PM GMT+05:30" i want to convert this text to date format in excel.
推荐答案
尝试
=DATEVALUE(TRIM(LEFT(SUBSTITUTE(A2, " ", REPT(" ", 99)), 299)))+TIMEVALUE(LEFT(RIGHT(A2,21), 12))
如果您正在尝试恢复UTC,则需要进一步解析UTC差异。
If you are trying to recover the UTC, then some further parsing of the UTC differential would be necessary.
这篇关于如何在Excel中将文本转换为日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文