Excel 2013日期格式转换。 30 Jan,15 18:02:05 to 30.01.2015 [英] Excel 2013 date format conversion. 30 Jan, 15 18:02:05 to 30.01.2015

查看:436
本文介绍了Excel 2013日期格式转换。 30 Jan,15 18:02:05 to 30.01.2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在MS Excel 2013中,我导入CSV文件,无论是使用分隔符还是任何其他选项进行格式化,结果都是一样的。我在Excel中的日期如下:单个单元格中的30 Jan,15 18:02:05所有我需要的是将它转换为例如30.01.2015的日期格式。我有一列,需要一次转换值。 (我尝试了TEXT,DATE,MID,DATEVALUE,MONTH,DATEVALUE ...),但没有一个能够转换日期格式。也没关系,如果我用格式单元格转换...到目前为止它总是显示相同ie 30 Jan,15 18:02:05

In MS Excel 2013 I import a CSV file, no matter if I format it using the delimined or any other option the results are the same. My date in Excel looks like: 30 Jan, 15 18:02:05 in a single cell. All I need is to convert it to a date format 30.01.2015 for example. I have a column of these and need to convert the values at once. (I tried TEXT, DATE, MID, DATEVALUE, MONTH, DATEVALUE...) but none of them are able to convert the date format. Also it does not matter if I convert it with format cells...to date it always displays the same i.e. 30 Jan, 15 18:02:05

不知道什么我做错了有点令人沮丧,谢谢任何建议。

Not sure what I am doing wrong. Getting a bit frustrating, thanks for any advice. Most of the above give a #VALUE error.

推荐答案

A1 中的数据 B1 输入:

=DATEVALUE(LEFT(A1,FIND(" ",A1)-1) & "-" & MID(A1,FIND(" ",A1)+1,3) & "-20" & MID(A1,FIND(",",A1)+2,2))

并将 B1 格式化为 dd.mm.yyyy 例如:

这篇关于Excel 2013日期格式转换。 30 Jan,15 18:02:05 to 30.01.2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆