Excel将TEXT(2017年4月28日)转换为DATE [英] Excel convert TEXT (28th April 2017) TO DATE
本文介绍了Excel将TEXT(2017年4月28日)转换为DATE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的excel电子表格中有一些日期,该日期的字符串中包含th,nd,st和rd,因此我目前正在努力将其转换为dd/mm/yyyy的日期格式.
I have some dates in my excel spreadsheet that have th,nd,st and rd in the string so I am currently struggling to convert them to a date format of dd/mm/yyyy.
如何使用公式执行此操作?2017年4月28日= 2017年4月28日
How would I be able to do this using a formula? 28th April 2017 = 28/04/2017
谢谢
推荐答案
使用公式:
=--(LEFT(A1,MIN(SEARCH({"th","st","nd","rd"},A1 & "thstndrd"))-1)&" " & MID(A1,MIN(SEARCH({"th","st","nd","rd"},A1 & "thstndrd"))+3,LEN(A1)))
这是一个数组公式,需要通过Ctrl-Shift-Enter确认.
This is an array formula and needs to be confirmed with Ctrl-Shift-Enter.
然后将格式设置为 dd/mm/yyyy
这篇关于Excel将TEXT(2017年4月28日)转换为DATE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文