excel中a1:2012-10-1,b1:2:23:21如何能在c1合并成2012-10-1 2:23:21

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 21:49:39
excel中a1:2012-10-1,b1:2:23:21如何能在c1合并成2012-10-12:23:21excel中a1:2012-10-1,b1:2:23:21如何能在c1合并成2012-10-

excel中a1:2012-10-1,b1:2:23:21如何能在c1合并成2012-10-1 2:23:21
excel中a1:2012-10-1,b1:2:23:21如何能在c1合并成2012-10-1 2:23:21

excel中a1:2012-10-1,b1:2:23:21如何能在c1合并成2012-10-1 2:23:21
C1输入:
=text(a1+b1,"yyyy-m-d h:mm:ss")

C1处输入C1=A1&" "&B1

=TEXT(A1,"YYYY-M-D")&“ ”&TEXT(B1,"H:MM:SS")
一开始没仔细看,要先把单元格格式定义下,不然结果会显示不正确