蜡笔小丸子
发表于 2021-11-14 04:36:50
=(MID(A1,FIND("/",A1,4)+1,4)&"/"&LEFT(A1,FIND("/",A1,4)-1))+MID(A1,FIND(" ",A1)+1,LEN(A1)-FIND(" ",A1)-2)+(RIGHT(A1,2)="PM")/2
又臭又长,位数一致的可缩
林海生涯
发表于 2021-11-14 15:14:59
谢谢回复。
原有的是文本格式,不是日期格式。。还要考虑AM PM.
蕾丝夲姓杜
发表于 2021-11-17 03:26:00
看我的,更长:
=((DATE(RIGHT(MID(N3,1,FIND(" ",N3,1)-1),4),SUBSTITUTE(LEFT(MID(N3,1,FIND(" ",N3,1)-1),2),"/",""),SUBSTITUTE(MID(N3,FIND("/",N3,1)+1,2),"/",""))+SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(MID(N3,FIND(" ",N3,1)+1,20)," ",""),"AM",""),"PM","")*1+IF(IFERROR(FIND("PM",N3,1),0)>0,0.5,0)))
哈哈。
卓闻君
发表于 2021-11-18 13:24:09
=TEXT(MID(A1,7,4)&"/"&REPLACE(A1,6,5,),"e/m/d h:m:ss")
唔亦烦呐
发表于 2021-11-23 18:55:20
=MID(A1,7,4)&"/"&LEFT(A1,5)&" "&RIGHT(A1,10)还是文本格式的话就更简单了。。。如需转换成时间 =--(MID(A1,7,4)&"/"&LEFT(A1,5)&" "&RIGHT(A1,10)) 再设置单元格格式显示即可!
再或者=TEXT((MID(A1,7,4)&"/"&LEFT(A1,5))+RIGHT(A1,10),"e/m/d h:m:ss AM/PM")
打工蛙
发表于 2021-11-28 22:54:41
上传了个样本,请试试
一生一世只爱你
发表于 2021-12-10 17:15:52
上传了个样本,请试试
你笑了
发表于 2021-12-11 17:25:29
=(MID(A2,FIND("/",A2,4)+1,4)&"/"&REPLACE(LEFT(A2,LEN(A2)-3),FIND("/",A2,4),5,))+(RIGHT(A2,2)="PM")/2
结合一剑大佬思路改下,略短一点点
聽海的歌
发表于 2021-12-24 22:28:13
=TEXT((MID(A1,7,4)&"/"&LEFT(A1,5))+RIGHT(A1,10),"e/m/d h:m:ss")
李桂云
发表于 2021-12-26 14:17:26
=(MID(A1,FIND("/",A1,4)+1,4)&"/"&LEFT(A1,FIND("/",A1,4)-1))+MID(A1,FIND(" ",A1)+1,LEN(A1)-FIND(" ",A1)-2)+(RIGHT(A1,2)="PM")/2
又臭又长,位数一致的可缩