轻灵剑客 |
2015-05-18 09:33 |
方法一:
- =TEXT(YEAR(A1),"0000")&TEXT(MONTH(A1),"00")&TEXT(DAY(A1),"00") 或=TEXT(YEAR(A1),"0000")&"-"&TEXT(MONTH(A1),"00")&"-"&TEXT(DAY(A1),"00")
方法二:
如果你的数据在A列,那么你在B1中输入公式如下 =TEXT(A1,"yymmdd") 向下拉,再复制B列--右键--在原地选择性粘贴--数值---再把格式设为文本---最后删除A列即可 |
|